refactor(HInfoComp): 简化节点路径查找逻辑

style(btn_yellow.prefab): 调整按钮位置和大小
docs(ubgs.plist.meta): 更新精灵帧元数据信息
This commit is contained in:
panw
2025-12-22 15:29:28 +08:00
parent ee1072c0dc
commit 366e72d72d
4 changed files with 3343 additions and 114 deletions

View File

@@ -18,8 +18,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 124, "trimX": 100,
"trimY": 1597, "trimY": 1596,
"width": 26, "width": 26,
"height": 18, "height": 18,
"rawWidth": 26, "rawWidth": 26,
@@ -110,8 +110,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 224, "trimX": 100,
"trimY": 1608, "trimY": 1616,
"width": 4, "width": 4,
"height": 18, "height": 18,
"rawWidth": 4, "rawWidth": 4,
@@ -156,8 +156,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 188, "trimX": 296,
"trimY": 1594, "trimY": 1559,
"width": 17, "width": 17,
"height": 16, "height": 16,
"rawWidth": 17, "rawWidth": 17,
@@ -191,6 +191,52 @@
], ],
"subMetas": {} "subMetas": {}
}, },
"68385": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@68385",
"displayName": "",
"id": "68385",
"name": "RibbonRedRight",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 39,
"trimY": 1596,
"width": 16,
"height": 24,
"rawWidth": 16,
"rawHeight": 24,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"99051": { "99051": {
"importer": "sprite-frame", "importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@99051", "uuid": "ab41374b-398e-499c-8501-75493c8ff83e@99051",
@@ -202,8 +248,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 206, "trimX": 314,
"trimY": 1594, "trimY": 1559,
"width": 17, "width": 17,
"height": 16, "height": 16,
"rawWidth": 17, "rawWidth": 17,
@@ -294,8 +340,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 441, "trimX": 260,
"trimY": 1537, "trimY": 1497,
"width": 60, "width": 60,
"height": 60, "height": 60,
"rawWidth": 60, "rawWidth": 60,
@@ -340,8 +386,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 503, "trimX": 322,
"trimY": 1537, "trimY": 1497,
"width": 60, "width": 60,
"height": 60, "height": 60,
"rawWidth": 60, "rawWidth": 60,
@@ -386,8 +432,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 385, "trimX": 384,
"trimY": 1561, "trimY": 1497,
"width": 54, "width": 54,
"height": 54, "height": 54,
"rawWidth": 54, "rawWidth": 54,
@@ -421,6 +467,282 @@
], ],
"subMetas": {} "subMetas": {}
}, },
"1e964": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@1e964",
"displayName": "",
"id": "1e964",
"name": "Corners3Gold",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 494,
"trimY": 1497,
"width": 46,
"height": 46,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"6e6a3": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@6e6a3",
"displayName": "",
"id": "6e6a3",
"name": "CornersGold",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 542,
"trimY": 1497,
"width": 46,
"height": 46,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f3352": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@f3352",
"displayName": "",
"id": "f3352",
"name": "CornersGold2",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 590,
"trimY": 1497,
"width": 46,
"height": 46,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"b50f2": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@b50f2",
"displayName": "",
"id": "b50f2",
"name": "CornersSilver",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 638,
"trimY": 1497,
"width": 46,
"height": 46,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"6f620": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@6f620",
"displayName": "",
"id": "6f620",
"name": "RibbonRedLeft",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 21,
"trimY": 1596,
"width": 16,
"height": 24,
"rawWidth": 16,
"rawHeight": 24,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"3aaf2": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@3aaf2",
"displayName": "",
"id": "3aaf2",
"name": "SkillSlot",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 510,
"trimY": 1545,
"width": 32,
"height": 32,
"rawWidth": 32,
"rawHeight": 32,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"dea8c": { "dea8c": {
"importer": "sprite-frame", "importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@dea8c", "uuid": "ab41374b-398e-499c-8501-75493c8ff83e@dea8c",
@@ -432,7 +754,7 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 595, "trimX": 118,
"trimY": 1497, "trimY": 1497,
"width": 140, "width": 140,
"height": 83, "height": 83,
@@ -475,11 +797,11 @@
"name": "Slider_BorderDeco_Tapered_01_BorderDeco", "name": "Slider_BorderDeco_Tapered_01_BorderDeco",
"userData": { "userData": {
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 546, "trimX": 384,
"trimY": 1497, "trimY": 1553,
"width": 36, "width": 36,
"height": 26, "height": 26,
"rawWidth": 36, "rawWidth": 36,
@@ -524,8 +846,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 153, "trimX": 422,
"trimY": 1567, "trimY": 1553,
"width": 25, "width": 25,
"height": 50, "height": 50,
"rawWidth": 25, "rawWidth": 25,
@@ -567,11 +889,11 @@
"name": "Slider_Border_Tapered_01_Fill_Orange", "name": "Slider_Border_Tapered_01_Fill_Orange",
"userData": { "userData": {
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 205, "trimX": 440,
"trimY": 1567, "trimY": 1497,
"width": 25, "width": 25,
"height": 50, "height": 50,
"rawWidth": 25, "rawWidth": 25,
@@ -613,11 +935,11 @@
"name": "Slider_Border_Tapered_01_Fill_Sky", "name": "Slider_Border_Tapered_01_Fill_Sky",
"userData": { "userData": {
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 305, "trimX": 467,
"trimY": 1537, "trimY": 1497,
"width": 25, "width": 25,
"height": 50, "height": 50,
"rawWidth": 25, "rawWidth": 25,
@@ -662,8 +984,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 1, "trimX": 642,
"trimY": 1537, "trimY": 1545,
"width": 150, "width": 150,
"height": 28, "height": 28,
"rawWidth": 150, "rawWidth": 150,
@@ -708,8 +1030,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 1, "trimX": 686,
"trimY": 1567, "trimY": 1497,
"width": 150, "width": 150,
"height": 28, "height": 28,
"rawWidth": 150, "rawWidth": 150,
@@ -751,11 +1073,11 @@
"name": "Slider_Border_Tapered_02_Fill_Yellow", "name": "Slider_Border_Tapered_02_Fill_Yellow",
"userData": { "userData": {
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 153, "trimX": 781,
"trimY": 1537, "trimY": 1113,
"width": 150, "width": 150,
"height": 28, "height": 28,
"rawWidth": 150, "rawWidth": 150,
@@ -797,11 +1119,11 @@
"name": "Slider_Border_Tapered_03_Border", "name": "Slider_Border_Tapered_03_Border",
"userData": { "userData": {
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 257, "trimX": 785,
"trimY": 1567, "trimY": 1575,
"width": 40, "width": 40,
"height": 36, "height": 36,
"rawWidth": 40, "rawWidth": 40,
@@ -843,11 +1165,11 @@
"name": "Slider_Border_Tapered_03_Fill", "name": "Slider_Border_Tapered_03_Fill",
"userData": { "userData": {
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 224, "trimX": 86,
"trimY": 1594, "trimY": 1596,
"width": 12, "width": 12,
"height": 22, "height": 22,
"rawWidth": 12, "rawWidth": 12,
@@ -892,8 +1214,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 357, "trimX": 57,
"trimY": 1537, "trimY": 1596,
"width": 27, "width": 27,
"height": 22, "height": 22,
"rawWidth": 27, "rawWidth": 27,
@@ -935,11 +1257,11 @@
"name": "Slider_Border_Tapered_03_InnerBorder", "name": "Slider_Border_Tapered_03_InnerBorder",
"userData": { "userData": {
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 514, "trimX": 474,
"trimY": 1497, "trimY": 1549,
"width": 34, "width": 34,
"height": 30, "height": 30,
"rawWidth": 34, "rawWidth": 34,
@@ -984,8 +1306,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 152, "trimX": 260,
"trimY": 1597, "trimY": 1559,
"width": 17, "width": 17,
"height": 16, "height": 16,
"rawWidth": 17, "rawWidth": 17,
@@ -1030,8 +1352,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 170, "trimX": 278,
"trimY": 1594, "trimY": 1559,
"width": 17, "width": 17,
"height": 16, "height": 16,
"rawWidth": 17, "rawWidth": 17,
@@ -1076,8 +1398,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 244, "trimX": 120,
"trimY": 1608, "trimY": 1616,
"width": 4, "width": 4,
"height": 18, "height": 18,
"rawWidth": 4, "rawWidth": 4,
@@ -1122,8 +1444,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 299, "trimX": 699,
"trimY": 1567, "trimY": 1575,
"width": 41, "width": 41,
"height": 44, "height": 44,
"rawWidth": 41, "rawWidth": 41,
@@ -1168,8 +1490,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 342, "trimX": 742,
"trimY": 1564, "trimY": 1575,
"width": 41, "width": 41,
"height": 44, "height": 44,
"rawWidth": 41, "rawWidth": 41,
@@ -1214,8 +1536,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 565, "trimX": 612,
"trimY": 1535, "trimY": 1545,
"width": 28, "width": 28,
"height": 29, "height": 29,
"rawWidth": 28, "rawWidth": 28,
@@ -1249,6 +1571,144 @@
], ],
"subMetas": {} "subMetas": {}
}, },
"983f3": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@983f3",
"displayName": "",
"id": "983f3",
"name": "TitleBarGoldBig",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 544,
"trimY": 1545,
"width": 32,
"height": 32,
"rawWidth": 32,
"rawHeight": 32,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"8e66b": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@8e66b",
"displayName": "",
"id": "8e66b",
"name": "WindowStroke",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 653,
"trimY": 1575,
"width": 44,
"height": 44,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"4e43e": {
"importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@4e43e",
"displayName": "",
"id": "4e43e",
"name": "WindowStroke2",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 578,
"trimY": 1545,
"width": 32,
"height": 32,
"rawWidth": 32,
"rawHeight": 32,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "82ba42b7-4bc5-4d63-9417-96dc6c255731@6c48a",
"atlasUuid": "ab41374b-398e-499c-8501-75493c8ff83e",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"fa049": { "fa049": {
"importer": "sprite-frame", "importer": "sprite-frame",
"uuid": "ab41374b-398e-499c-8501-75493c8ff83e@fa049", "uuid": "ab41374b-398e-499c-8501-75493c8ff83e@fa049",
@@ -1257,11 +1717,11 @@
"name": "bar1", "name": "bar1",
"userData": { "userData": {
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 1, "trimX": 1,
"trimY": 1597, "trimY": 1497,
"width": 121, "width": 121,
"height": 18, "height": 18,
"rawWidth": 121, "rawWidth": 121,
@@ -1306,8 +1766,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 1, "trimX": 140,
"trimY": 1497, "trimY": 1582,
"width": 511, "width": 511,
"height": 38, "height": 38,
"rawWidth": 511, "rawWidth": 511,
@@ -1398,7 +1858,7 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 313, "trimX": 469,
"trimY": 1113, "trimY": 1113,
"width": 154, "width": 154,
"height": 382, "height": 382,
@@ -1444,7 +1904,7 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 670, "trimX": 625,
"trimY": 1113, "trimY": 1113,
"width": 154, "width": 154,
"height": 382, "height": 382,
@@ -1490,7 +1950,7 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 737, "trimX": 21,
"trimY": 1497, "trimY": 1497,
"width": 95, "width": 95,
"height": 97, "height": 97,
@@ -1536,7 +1996,7 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 826, "trimX": 838,
"trimY": 1113, "trimY": 1113,
"width": 162, "width": 162,
"height": 240, "height": 240,
@@ -1582,7 +2042,7 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 826, "trimX": 838,
"trimY": 1277, "trimY": 1277,
"width": 162, "width": 162,
"height": 240, "height": 240,
@@ -1628,7 +2088,7 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 834, "trimX": 838,
"trimY": 1441, "trimY": 1441,
"width": 161, "width": 161,
"height": 237, "height": 237,
@@ -1674,7 +2134,7 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 514, "trimX": 157,
"trimY": 1113, "trimY": 1113,
"width": 154, "width": 154,
"height": 382, "height": 382,
@@ -1720,7 +2180,7 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 157, "trimX": 313,
"trimY": 1113, "trimY": 1113,
"width": 154, "width": 154,
"height": 382, "height": 382,

File diff suppressed because it is too large Load Diff

View File

@@ -22,28 +22,28 @@
"__id__": 2 "__id__": 2
}, },
{ {
"__id__": 8 "__id__": 10
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{
"__id__": 14
},
{ {
"__id__": 16 "__id__": 16
}, },
{ {
"__id__": 18 "__id__": 18
},
{
"__id__": 20
} }
], ],
"_prefab": { "_prefab": {
"__id__": 20 "__id__": 22
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 74.967, "y": -565.033,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -85,10 +85,13 @@
}, },
{ {
"__id__": 5 "__id__": 5
},
{
"__id__": 7
} }
], ],
"_prefab": { "_prefab": {
"__id__": 7 "__id__": 9
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -105,8 +108,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 5,
"y": 1, "y": 5,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -133,8 +136,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 214, "width": 40,
"height": 89 "height": 20.4
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -170,12 +173,12 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "deedea09-8f2b-400f-9803-4cfd38e45d1a@b5c7e", "__uuid__": "deedea09-8f2b-400f-9803-4cfd38e45d1a@f8ede",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 1,
"_fillType": 0, "_fillType": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
@@ -185,13 +188,52 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": null, "_atlas": {
"__uuid__": "deedea09-8f2b-400f-9803-4cfd38e45d1a",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "87x48JBkdLQ7whX1NTSH9o" "fileId": "87x48JBkdLQ7whX1NTSH9o"
}, },
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 16,
"_originalHeight": 16,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d0LIiKWbRKu7mXFOw4d4nr"
},
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
@@ -217,14 +259,14 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 11
}, },
{ {
"__id__": 11 "__id__": 13
} }
], ],
"_prefab": { "_prefab": {
"__id__": 13 "__id__": 15
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -261,11 +303,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 8 "__id__": 10
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 10 "__id__": 12
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@@ -289,11 +331,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 8 "__id__": 10
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 12 "__id__": 14
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
@@ -374,7 +416,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 17
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@@ -402,7 +444,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 17 "__id__": 19
}, },
"clickEvents": [], "clickEvents": [],
"_interactable": true, "_interactable": true,
@@ -435,10 +477,22 @@
"b": 124, "b": 124,
"a": 255 "a": 255
}, },
"_normalSprite": null, "_normalSprite": {
"_hoverSprite": null, "__uuid__": "deedea09-8f2b-400f-9803-4cfd38e45d1a@f8ede",
"_pressedSprite": null, "__expectedType__": "cc.SpriteFrame"
"_disabledSprite": null, },
"_hoverSprite": {
"__uuid__": "deedea09-8f2b-400f-9803-4cfd38e45d1a@3ca22",
"__expectedType__": "cc.SpriteFrame"
},
"_pressedSprite": {
"__uuid__": "deedea09-8f2b-400f-9803-4cfd38e45d1a@f2129",
"__expectedType__": "cc.SpriteFrame"
},
"_disabledSprite": {
"__uuid__": "deedea09-8f2b-400f-9803-4cfd38e45d1a@f2129",
"__expectedType__": "cc.SpriteFrame"
},
"_duration": 0.1, "_duration": 0.1,
"_zoomScale": 0.8, "_zoomScale": 0.8,
"_target": { "_target": {
@@ -460,7 +514,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 19 "__id__": 21
}, },
"_alignFlags": 4, "_alignFlags": 4,
"_target": null, "_target": null,
@@ -495,6 +549,7 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "24rlgXRJ9AHLGpMW+aYyEx", "fileId": "24rlgXRJ9AHLGpMW+aYyEx",
"instance": null,
"targetOverrides": null "targetOverrides": null
} }
] ]

View File

@@ -64,12 +64,12 @@ export class HInfoComp extends CCComp {
start() { start() {
this.name_node=this.node.getChildByName("hname").getChildByName("name") this.name_node=this.node.getChildByName("hname").getChildByName("name")
this.type_node=this.node.getChildByName("hname").getChildByName("type") this.type_node=this.node.getChildByName("hname").getChildByName("type")
this.hp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("hp").getChildByName("hp") this.hp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("hp")
this.mp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("mp").getChildByName("mp") this.mp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("mp")
this.ap_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("ap").getChildByName("ap").getChildByName("ap") this.ap_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("ap")
this.map_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("ap").getChildByName("ap").getChildByName("map") this.map_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("map")
this.def_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("def").getChildByName("def").getChildByName("def") this.def_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("def")
this.mdef_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("def").getChildByName("def").getChildByName("mdef") this.mdef_node=this.node.getChildByName("info").getChildByName("base").getChildByName("bgs").getChildByName("mdef")
this.h_uuid=smc.fight_hero this.h_uuid=smc.fight_hero
this.update_data(this.h_uuid) this.update_data(this.h_uuid)
this.load_all_hero(this.h_uuid) this.load_all_hero(this.h_uuid)