fix(mission): 处理英雄全灭时自动结束战斗并优化UI显示

- 在 MissionComp 中新增 handleHeroWipe 方法,当英雄数量为0且处于战斗状态时自动结束战斗
- 修复 MissionCardComp 中卡池等级UI显示逻辑,简化激活条件判断
- 调整 role_controller.prefab 中多个UI元素的布局参数,优化界面显示效果
This commit is contained in:
walkpan
2026-03-28 18:39:00 +08:00
parent ddce1208ee
commit 99ee713a1f
3 changed files with 68 additions and 44 deletions

View File

@@ -2962,7 +2962,7 @@
"__prefab": {
"__id__": 125
},
"_resizeMode": 1,
"_resizeMode": 0,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
@@ -2997,6 +2997,8 @@
"__id__": 0
},
"fileId": "33rSVysAVB1LO2v7wC2zZ1",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -3924,7 +3926,7 @@
"__prefab": {
"__id__": 167
},
"_resizeMode": 1,
"_resizeMode": 0,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
@@ -3943,7 +3945,7 @@
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": false,
"_isAlign": true,
"_id": ""
},
{
@@ -3959,6 +3961,8 @@
"__id__": 0
},
"fileId": "50nlTzRABGJ4vZYBkdXijK",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -4156,6 +4160,8 @@
"__id__": 0
},
"fileId": "ebDo8RYmhKJoLQcsDOvm6d",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -4191,7 +4197,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -44.229,
"x": -70,
"y": 0,
"z": 0
},
@@ -4741,7 +4747,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 10,
"x": -47.013,
"y": 0,
"z": 0
},
@@ -4787,7 +4793,7 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"x": 0,
"y": 0.5
},
"_id": ""
@@ -4819,7 +4825,7 @@
"a": 255
},
"_string": "{{0}}/{{1}}",
"_horizontalAlign": 1,
"_horizontalAlign": 0,
"_verticalAlign": 1,
"_actualFontSize": 25,
"_fontSize": 25,
@@ -5180,6 +5186,8 @@
"__id__": 0
},
"fileId": "35dr0lJV9CO5Ld8TLk7eCZ",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -5205,7 +5213,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -71.736,
"x": -70.3,
"y": 0,
"z": 0
},
@@ -5317,6 +5325,8 @@
"__id__": 0
},
"fileId": "e7dPNasr5IyqES0tbwxJX3",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -5345,7 +5355,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -49.32,
"x": -47.013,
"y": 0,
"z": 0
},
@@ -5501,6 +5511,8 @@
"__id__": 0
},
"fileId": "65zRY1wpZPNLTXws9hsdcE",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{