mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -83,24 +83,26 @@ export class PlayerTacticalItem extends Component {
|
||||
//如果拖拽了则不生效点击事件
|
||||
if(this.drag.isMove) return;
|
||||
|
||||
//如果没有宠物则弹出选择宠物 负责 删除宠物
|
||||
if(this.petId){
|
||||
//移除宠物
|
||||
//提示是否移除宠物
|
||||
app.layer.Open(GUI.SelectionBox,{
|
||||
tigText:"是否移除宠物?",
|
||||
cancel:()=>{},
|
||||
confirm:async ()=>{
|
||||
//移除宠物 (0就是移除)
|
||||
await PlayerTacticalData.getIns().UpdateIndexTactical(this.index,0);
|
||||
}
|
||||
})
|
||||
}else{
|
||||
//选择宠物
|
||||
app.layer.Open(GUI.IntoBattleView,{
|
||||
index:this.index, //当前选择的阵法下标
|
||||
});
|
||||
}
|
||||
// //如果没有宠物则弹出选择宠物 负责 删除宠物
|
||||
// if(this.petId){
|
||||
// //移除宠物
|
||||
// //提示是否移除宠物
|
||||
// app.layer.Open(GUI.SelectionBox,{
|
||||
// tigText:"是否移除宠物?",
|
||||
// cancel:()=>{},
|
||||
// confirm:async ()=>{
|
||||
// //移除宠物 (0就是移除)
|
||||
// await PlayerTacticalData.getIns().UpdateIndexTactical(this.index,0);
|
||||
// }
|
||||
// })
|
||||
// }else{
|
||||
// }
|
||||
|
||||
//选择宠物
|
||||
app.layer.Open(GUI.IntoBattleView,{
|
||||
index:this.index, //当前选择的阵法下标
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//交换阵法
|
||||
|
Reference in New Issue
Block a user