This commit is contained in:
PC-20230316NUNE\Administrator
2024-01-04 18:58:21 +08:00
parent a5195e3a6d
commit 0556449f0a
23 changed files with 4024 additions and 963 deletions

View File

@@ -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, //当前选择的阵法下标
});
}
//交换阵法