refactor(uiPrefab): 调整任务和英雄顶部UI的布局与组件配置

统一修改mission.prefab和top.prefab的节点激活状态、位置、尺寸,替换旧的精灵/文本组件为正确配置,清理冗余节点和组件,优化UI显示效果
This commit is contained in:
panFD
2026-07-20 22:26:28 +08:00
parent 76085c3ecd
commit cff7b4703f
3 changed files with 2311 additions and 2984 deletions

View File

@@ -37,11 +37,11 @@
"_active": true,
"_components": [
{
"__id__": 104
"__id__": 98
}
],
"_prefab": {
"__id__": 106
"__id__": 100
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -1805,27 +1805,24 @@
},
{
"__id__": 87
},
{
"__id__": 93
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 99
"__id__": 93
},
{
"__id__": 101
"__id__": 95
}
],
"_prefab": {
"__id__": 103
"__id__": 97
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 14.78,
"x": -26.182,
"y": -0.337,
"z": 0
},
"_lrot": {
@@ -1853,7 +1850,7 @@
},
{
"__type__": "cc.Node",
"_name": "lv1",
"_name": "Label_Flag_01_Single_Blue",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -1874,7 +1871,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -27,
"x": 0,
"y": 0,
"z": 0
},
@@ -1887,8 +1884,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"x": 0.2,
"y": 0.14,
"z": 1
},
"_mobility": 0,
@@ -1915,8 +1912,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 15,
"height": 15
"width": 52,
"height": 75
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1927,7 +1924,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e0fzAAgU5Ana+yMSJ8kW3S"
"fileId": "a63DzZmvxEvKGHs56RWbEy"
},
{
"__type__": "cc.Sprite",
@@ -1952,12 +1949,12 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@5599f",
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@5c7a0",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
@@ -1972,7 +1969,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "01JRJpjTFNULsk9C1ok6Sn"
"fileId": "569j93a6xMIrRxlzI33n0i"
},
{
"__type__": "cc.PrefabInfo",
@@ -1982,14 +1979,14 @@
"asset": {
"__id__": 0
},
"fileId": "71Em0LB4dL27DqYQ9OkFiQ",
"fileId": "c1FCc3phFGUq3G390z6qe1",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "lv2",
"_name": "Label",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -2051,8 +2048,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 15,
"height": 15
"width": 4.38,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -2063,10 +2060,10 @@
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "21FzPtdO5I5pUGPECHUDeL"
"fileId": "cd5P7lbVFAg70ze2pGxgkP"
},
{
"__type__": "cc.Sprite",
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
@@ -2087,164 +2084,54 @@
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@5599f",
"__expectedType__": "cc.SpriteFrame"
"_string": "1",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 15,
"_fontSize": 15,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": {
"__uuid__": "eca7fc51-87d0-4bb0-89e1-aa9c39411bc6",
"__expectedType__": "cc.BitmapFont"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ddFSRJWHlDIYzffFeulvvt"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "dfOByluMhG0ZeObswL8kPn",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "lv3",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 80
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 94
},
{
"__id__": 96
}
],
"_prefab": {
"__id__": 98
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 27,
"y": 0,
"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": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 93
},
"_enabled": true,
"__prefab": {
"__id__": 95
},
"_contentSize": {
"__type__": "cc.Size",
"width": 15,
"height": 15
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a14AlTLO5E5bIpLQVQ3hl/"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 93
},
"_enabled": true,
"__prefab": {
"__id__": 97
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"_isSystemFontUsed": false,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": true,
"_outlineColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@5599f",
"__expectedType__": "cc.SpriteFrame"
"_outlineWidth": 1,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"x": 2,
"y": 2
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0fB8B34hpFTKX8wY0yQ1Dd"
"fileId": "acRiOZGzFAqo50YQ9wJHmy"
},
{
"__type__": "cc.PrefabInfo",
@@ -2254,7 +2141,7 @@
"asset": {
"__id__": 0
},
"fileId": "70CJhUD51O/Yn7lWbJeuyp",
"fileId": "bdfy91W21F0omKxp2GjJM4",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@@ -2269,12 +2156,12 @@
},
"_enabled": true,
"__prefab": {
"__id__": 100
"__id__": 94
},
"_contentSize": {
"__type__": "cc.Size",
"width": 69,
"height": 15
"width": 10,
"height": 10
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -2295,9 +2182,9 @@
"node": {
"__id__": 80
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 102
"__id__": 96
},
"_resizeMode": 1,
"_layoutType": 1,
@@ -2348,7 +2235,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 105
"__id__": 99
},
"_contentSize": {
"__type__": "cc.Size",

File diff suppressed because it is too large Load Diff

View File

@@ -7106,7 +7106,7 @@
"__id__": 387
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 407
@@ -7180,7 +7180,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -226,
"x": -220,
"y": 0,
"z": 0
},
@@ -7274,8 +7274,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 190,
"height": 256
"width": 164,
"height": 220
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7538,8 +7538,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 196,
"height": 266
"width": 170,
"height": 230
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7731,8 +7731,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 190,
"height": 256
"width": 164,
"height": 220
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -7995,8 +7995,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 196,
"height": 266
"width": 170,
"height": 230
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -8094,7 +8094,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 226,
"x": 220,
"y": 0,
"z": 0
},
@@ -8188,8 +8188,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 190,
"height": 256
"width": 164,
"height": 220
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -8452,8 +8452,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 196,
"height": 266
"width": 170,
"height": 230
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -8992,7 +8992,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 648,
"width": 570,
"height": 300
},
"_anchorPoint": {
@@ -9020,8 +9020,8 @@
},
"_alignFlags": 42,
"_target": null,
"_left": 36,
"_right": 36,
"_left": 75,
"_right": 75,
"_top": -391.513,
"_bottom": 591.5129999999999,
"_horizontalCenter": 0,
@@ -9050,7 +9050,7 @@
"node": {
"__id__": 326
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 412
},