|
@@ -1,8 +1,9 @@
|
|
|
-import { _decorator, Component, Node, EventTouch, LayoutComponent, Vec2, Rect, Size, Vec3, loader, instantiate } from 'cc';
|
|
|
+import { _decorator, Component, Node, EventTouch, LayoutComponent, Vec2, Rect, Size, Vec3, loader, instantiate, assert } from 'cc';
|
|
|
import { BaseView } from '../../../engines/gui/BaseView';
|
|
|
import { GUIManager } from '../../../engines/gui/GUIManager';
|
|
|
import { GUIMediator } from '../../../engines/gui/GUIMediator';
|
|
|
import { DataModelEventType } from '../../../engines/models/DataModelEventType';
|
|
|
+import { NoticeManager } from '../../../engines/notices/NoticeManager';
|
|
|
import GameConfigManager from '../../models/GameConfigManager';
|
|
|
import { GameModel } from '../../models/GameModel';
|
|
|
import { GamePropertys } from '../../models/GamePropertys';
|
|
@@ -216,7 +217,11 @@ export class WeaponCellListView extends BaseView{
|
|
|
if(value<0.5){
|
|
|
GameModel.single.SynthesisWeapon(this.currentSelect.cellId,weaponCellScript.weaponCell.cellId);
|
|
|
}else{
|
|
|
- GUIManager.single.Show(UIConst.FREE_UPGRADE_UI,{a:this.currentSelect,b:weaponCellScript.weaponCell});
|
|
|
+ if(this.currentSelect.weaponId!=weaponCellScript.weaponCell.weaponId){
|
|
|
+ NoticeManager.ShowPrompt("不同的武器无法合成!");
|
|
|
+ }else{
|
|
|
+ GUIManager.single.Show(UIConst.FREE_UPGRADE_UI,{a:this.currentSelect,b:weaponCellScript.weaponCell});
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|