feat(地图): 在战斗阶段隐藏英雄出售按钮

在战斗阶段自动隐藏英雄信息面板上的出售按钮,避免玩家在战斗过程中误操作出售英雄。通过新增的 setBattlePhase 方法控制按钮显隐,并在任务卡组件中根据战斗状态同步更新所有英雄信息面板。
This commit is contained in:
walkpan
2026-04-23 22:16:22 +08:00
parent bb6e63756c
commit d97e3d8cb9
3 changed files with 32 additions and 6 deletions

View File

@@ -4834,7 +4834,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 67.5,
"y": -90,
"y": -96.599,
"z": 0
},
"_lrot": {
@@ -5033,7 +5033,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 129,
"width": 135,
"height": 40
},
"_anchorPoint": {
@@ -5181,10 +5181,10 @@
},
"_alignFlags": 44,
"_target": null,
"_left": 3,
"_right": 3,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": -35,
"_bottom": -41.599000000000004,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -5259,7 +5259,9 @@
"icon_node": {
"__id__": 10
},
"sell_node": null,
"sell_node": {
"__id__": 209
},
"NF_node": {
"__id__": 117
},