fix: 修复战斗相关UI显示与技能配置问题

1. 调整RPG地图预制件与UI元素的激活状态,修复战斗面板显示异常
2. 移除技能卡片多余的t_times配置项,简化技能触发逻辑
3. 优化战斗结束后战斗框的显隐控制
This commit is contained in:
panFD
2026-06-20 17:53:04 +08:00
parent b634cf5383
commit 3056b61ced
4 changed files with 19 additions and 17 deletions

View File

@@ -196,10 +196,12 @@ export class MissionComp extends CCComp {
this.mission_start();
}, 0);
smc.map.MapView.scene.mapLayer.stopAnimations();
smc.map.MapView.scene.mapLayer.node.getChildByName("fight").getChildByName("fbox").active = true;
}
onDestroy() {
smc.map.MapView.scene.mapLayer.playAnimations()
smc.map.MapView.scene.mapLayer.node.getChildByName("fight").getChildByName("fbox").active = false;
super.onDestroy();
if (this.start_btn && this.start_btn.isValid) {
this.start_btn.off(NodeEventType.TOUCH_END, this.onStartFightBtnClick, this);