refactor(heroInfo): 重构英雄信息UI展示逻辑

1. 移除废弃的fragment_node节点相关代码与引用
2. 调整英雄列表和卡片的布局尺寸与间距
3. 优化碎片数量显示的绑定方式
4. 删除无用的bak备份文件
This commit is contained in:
panFD
2026-09-18 11:53:15 +08:00
parent 287989b425
commit 16854ab1b8
6 changed files with 249 additions and 15509 deletions

View File

@@ -50,7 +50,7 @@
}
],
"_prefab": {
"__id__": 771
"__id__": 777
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -15419,9 +15419,7 @@
"upgrade_btn": {
"__id__": 636
},
"fragment_node": {
"__id__": 315
},
"fragment_node": null,
"chip_node": {
"__id__": 605
},
@@ -15439,7 +15437,7 @@
"__id__": 72
},
"fragment_label": {
"__id__": 590
"__id__": 771
},
"upgrade_info_label": {
"__id__": 596
@@ -15460,6 +15458,165 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "74nSIqyBJJwaVyNs9jfBQP"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 772
},
"_enabled": true,
"__prefab": {
"__id__": 776
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "99/99",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 17,
"_fontSize": 17,
"_fontFamily": "Arial",
"_lineHeight": 20,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": true,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "num",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 605
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 773
},
{
"__id__": 771
}
],
"_prefab": {
"__id__": 775
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 1,
"y": -23.919,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 772
},
"_enabled": true,
"__prefab": {
"__id__": 774
},
"_contentSize": {
"__type__": "cc.Size",
"width": 46.54150390625,
"height": 29.2
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "99GXVOOhxLv6HYFzXD8qI7"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "840izZ1o5N84e/O1jFl7Gl",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bckAjBBO9Ob5COKSUTDEcI"
},
{
"__type__": "cc.PrefabInfo",
"root": {
@@ -15470,7 +15627,11 @@
},
"fileId": "ee/zS1qmRJKKqnSQsZ3i2e",
"instance": null,
"targetOverrides": [],
"targetOverrides": [
{
"__id__": 778
}
],
"nestedPrefabInstanceRoots": [
{
"__id__": 636
@@ -15506,5 +15667,27 @@
"__id__": 2
}
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 769
},
"sourceInfo": null,
"propertyPath": [
"fragment_label"
],
"target": {
"__id__": 605
},
"targetInfo": {
"__id__": 779
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"bckAjBBO9Ob5COKSUTDEcI"
]
}
]