feat(ui): 添加战场英雄信息面板并增强主角召唤事件

扩展主角召唤事件,传递更多实体信息供UI系统使用。新增HInfoComp组件作为英雄信息面板基础,并在MissionCardComp中动态生成和管理英雄信息面板,实时显示英雄属性。同时调整相关预制体引用和布局配置。
This commit is contained in:
panw
2026-03-25 17:23:22 +08:00
parent 338394f6ff
commit de90dadaed
6 changed files with 209 additions and 28 deletions

View File

@@ -35,10 +35,13 @@
"_components": [
{
"__id__": 74
},
{
"__id__": 76
}
],
"_prefab": {
"__id__": 76
"__id__": 78
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1733,6 +1736,24 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "9c8CWaboJEQ4tagNhw+LQr"
},
{
"__type__": "a832fh9yR9LJK1kR+tZ1lin",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 77
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "11S1XoDG5Ndo+S7MbRH4us"
},
{
"__type__": "cc.PrefabInfo",
"root": {

View File

@@ -778,7 +778,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "8el1xtaIhFn4eJMCp78t65",
"fileId": "b1fQvsJE5Axp3W57Iu81HO",
"prefabRootNode": {
"__id__": 1
},
@@ -890,7 +890,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "f2Vo21jDdPfbsPEDATg/6w",
"fileId": "24ho6yMw5OyKqGnnlb1lZe",
"prefabRootNode": {
"__id__": 1
},
@@ -920,7 +920,7 @@
"propertyPath": [
"_name"
],
"value": "hnode-001"
"value": "hnode"
},
{
"__type__": "cc.TargetInfo",
@@ -1002,7 +1002,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "95i/033cdI1ar3RE/LeAFh",
"fileId": "bf9CO3VXpEapXp0MM4jeGj",
"prefabRootNode": {
"__id__": 1
},
@@ -1032,7 +1032,7 @@
"propertyPath": [
"_name"
],
"value": "hnode-002"
"value": "hnode"
},
{
"__type__": "cc.TargetInfo",
@@ -1114,7 +1114,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "96aOqwbNZC2554Tb3MVHAi",
"fileId": "cbhqcW/7BHOIfs5h+tuWvE",
"prefabRootNode": {
"__id__": 1
},
@@ -1144,7 +1144,7 @@
"propertyPath": [
"_name"
],
"value": "hnode-003"
"value": "hnode"
},
{
"__type__": "cc.TargetInfo",
@@ -1226,7 +1226,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "82lTFZokVJ1YXiKvnc7dBe",
"fileId": "f9xptjk/hA+IJ5/9k6XxMX",
"prefabRootNode": {
"__id__": 1
},
@@ -1256,7 +1256,7 @@
"propertyPath": [
"_name"
],
"value": "hnode-004"
"value": "hnode"
},
{
"__type__": "cc.TargetInfo",
@@ -1338,7 +1338,7 @@
},
{
"__type__": "cc.PrefabInstance",
"fileId": "27cEJ94ONNHKT7mJlaxtlG",
"fileId": "b9NtsF98ZKrpqsdLUl8ouf",
"prefabRootNode": {
"__id__": 1
},
@@ -1368,7 +1368,7 @@
"propertyPath": [
"_name"
],
"value": "hnode-005"
"value": "hnode"
},
{
"__type__": "cc.TargetInfo",
@@ -1517,7 +1517,7 @@
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": false,
"_isAlign": true,
"_id": ""
},
{
@@ -11461,7 +11461,10 @@
"hero_info_node": {
"__id__": 24
},
"hero_info_prefab": null,
"hero_info_prefab": {
"__uuid__": "46f1e2cb-6fa7-4e9e-b419-e424ba47fe68",
"__expectedType__": "cc.Prefab"
},
"_id": ""
},
{
@@ -11833,7 +11836,7 @@
"node": {
"__id__": 560
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 572
},
@@ -11847,10 +11850,7 @@
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "deedea09-8f2b-400f-9803-4cfd38e45d1a@58cb7",
"__expectedType__": "cc.SpriteFrame"
},
"_spriteFrame": null,
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
@@ -11863,10 +11863,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": {
"__uuid__": "deedea09-8f2b-400f-9803-4cfd38e45d1a",
"__expectedType__": "cc.SpriteAtlas"
},
"_atlas": null,
"_id": ""
},
{