mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交开宝箱
This commit is contained in:
@@ -10,6 +10,8 @@ import { Label } from 'cc';
|
||||
import TimeUtil from '../../../../../extensions/ngame/assets/ngame/util/TimeUtil';
|
||||
import { ResourceType } from '../../../data/ResourceData';
|
||||
import JComponent from '../../../../../extensions/ngame/assets/ngame/util/components/JComponent';
|
||||
import { Button } from 'cc';
|
||||
import { EventTouch } from 'cc';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
|
||||
@@ -102,6 +104,20 @@ export class MainForgingBench extends JComponent {
|
||||
await PetEquipData.getIns().upForgingBench();
|
||||
}
|
||||
|
||||
//打开指定装备
|
||||
onClickEquip(event: EventTouch){
|
||||
|
||||
let equip = PetEquipData.getIns().getPetEquip(event.target.getSiblingIndex() + 1);
|
||||
|
||||
if(!equip){
|
||||
app.layer.Open(GUI.Tips,{text:"快锻造装备吧~"});
|
||||
return;
|
||||
}
|
||||
|
||||
app.layer.Open(GUI.PetEquipForgingPopupView,equip)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user