fix(ui/skillBox): 修复技能选择框布局与文本问题

调整了技能框预制体的节点位置、尺寸、字体大小,新增了标题文本"选择战斗技能",修正了资源引用id和布局偏移量,优化界面显示效果
This commit is contained in:
panFD
2026-06-19 15:02:59 +08:00
parent 18c873999b
commit 2d4bc1fd05
5 changed files with 3710 additions and 1701 deletions

View File

@@ -28,17 +28,17 @@
"_active": true,
"_components": [
{
"__id__": 541
"__id__": 547
},
{
"__id__": 543
"__id__": 549
},
{
"__id__": 545
"__id__": 551
}
],
"_prefab": {
"__id__": 547
"__id__": 553
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -270,25 +270,28 @@
},
{
"__id__": 488
},
{
"__id__": 532
}
],
"_active": true,
"_components": [
{
"__id__": 532
},
{
"__id__": 534
},
{
"__id__": 536
},
{
"__id__": 538
},
{
"__id__": 540
},
{
"__id__": 542
},
{
"__id__": 544
}
],
"_prefab": {
"__id__": 540
"__id__": 546
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -347,7 +350,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": 57.432,
"z": 0
},
"_lrot": {
@@ -477,7 +480,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@ec552",
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@a7b3a",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
@@ -9437,7 +9440,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -135,
"x": -115,
"y": 0,
"z": 0
},
@@ -9488,7 +9491,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 5,
"y": 2,
"z": 0
},
"_lrot": {
@@ -9528,7 +9531,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 84,
"width": 64,
"height": 54.4
},
"_anchorPoint": {
@@ -9567,8 +9570,8 @@
"_string": "刷新",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_actualFontSize": 30,
"_fontSize": 30,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
@@ -9646,7 +9649,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 67.671,
"x": 42.303,
"y": 4.061,
"z": 0
},
@@ -9796,8 +9799,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 240,
"height": 100
"width": 200,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -9971,7 +9974,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 135,
"x": 115,
"y": 0,
"z": 0
},
@@ -10022,7 +10025,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 5,
"y": 2,
"z": 0
},
"_lrot": {
@@ -10062,7 +10065,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 84,
"width": 64,
"height": 54.4
},
"_anchorPoint": {
@@ -10101,8 +10104,8 @@
"_string": "刷新",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_actualFontSize": 30,
"_fontSize": 30,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
@@ -10171,8 +10174,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 240,
"height": 100
"width": 200,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -10330,7 +10333,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 570,
"width": 490,
"height": 100
},
"_anchorPoint": {
@@ -10431,6 +10434,165 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 533
},
{
"__id__": 535
}
],
"_prefab": {
"__id__": 537
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 374.286,
"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__": 532
},
"_enabled": true,
"__prefab": {
"__id__": 534
},
"_contentSize": {
"__type__": "cc.Size",
"width": 154,
"height": 54.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6dPcXbJ6ZLMKFX/I08po7c"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 532
},
"_enabled": true,
"__prefab": {
"__id__": 536
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "选择战斗技能",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 25,
"_fontSize": 25,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_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.CompPrefabInfo",
"fileId": "a4wLRAtmNJSbx288TRTutC"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "23Txmi98VPPbg3RNDrGNXJ",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -10441,7 +10603,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 533
"__id__": 539
},
"_contentSize": {
"__type__": "cc.Size",
@@ -10469,7 +10631,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 535
"__id__": 541
},
"_alignFlags": 42,
"_target": null,
@@ -10505,7 +10667,7 @@
},
"_enabled": false,
"__prefab": {
"__id__": 537
"__id__": 543
},
"_resizeMode": 1,
"_layoutType": 1,
@@ -10543,7 +10705,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 539
"__id__": 545
},
"_id": ""
},
@@ -10574,7 +10736,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 542
"__id__": 548
},
"_contentSize": {
"__type__": "cc.Size",
@@ -10602,7 +10764,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 544
"__id__": 550
},
"_alignFlags": 45,
"_target": null,
@@ -10638,7 +10800,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 546
"__id__": 552
},
"_id": ""
},
@@ -10657,15 +10819,6 @@
"fileId": "d0FqR3MNdHHKbJYj7BXmc4",
"instance": null,
"targetOverrides": [
{
"__id__": 548
},
{
"__id__": 550
},
{
"__id__": 552
},
{
"__id__": 554
},
@@ -10710,6 +10863,15 @@
},
{
"__id__": 582
},
{
"__id__": 584
},
{
"__id__": 586
},
{
"__id__": 588
}
],
"nestedPrefabInstanceRoots": [
@@ -10737,7 +10899,7 @@
"__id__": 25
},
"targetInfo": {
"__id__": 549
"__id__": 555
}
},
{
@@ -10759,7 +10921,7 @@
"__id__": 25
},
"targetInfo": {
"__id__": 551
"__id__": 557
}
},
{
@@ -10781,7 +10943,7 @@
"__id__": 25
},
"targetInfo": {
"__id__": 553
"__id__": 559
}
},
{
@@ -10803,7 +10965,7 @@
"__id__": 25
},
"targetInfo": {
"__id__": 555
"__id__": 561
}
},
{
@@ -10825,7 +10987,7 @@
"__id__": 25
},
"targetInfo": {
"__id__": 557
"__id__": 563
}
},
{
@@ -10846,72 +11008,6 @@
"target": {
"__id__": 25
},
"targetInfo": {
"__id__": 559
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"c6fA+I52NLy7nwIG/TAXFX"
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 191
},
"sourceInfo": null,
"propertyPath": [
"BG_node"
],
"target": {
"__id__": 184
},
"targetInfo": {
"__id__": 561
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"40n0LdBjNFe5UPFihdLgY/"
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 191
},
"sourceInfo": null,
"propertyPath": [
"icon_node"
],
"target": {
"__id__": 184
},
"targetInfo": {
"__id__": 563
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"08p7XmUnpCJKHgFSs+XBKi"
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 191
},
"sourceInfo": null,
"propertyPath": [
"name_node"
],
"target": {
"__id__": 184
},
"targetInfo": {
"__id__": 565
}
@@ -10929,7 +11025,7 @@
},
"sourceInfo": null,
"propertyPath": [
"cost_node"
"BG_node"
],
"target": {
"__id__": 184
@@ -10938,6 +11034,72 @@
"__id__": 567
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"40n0LdBjNFe5UPFihdLgY/"
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 191
},
"sourceInfo": null,
"propertyPath": [
"icon_node"
],
"target": {
"__id__": 184
},
"targetInfo": {
"__id__": 569
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"08p7XmUnpCJKHgFSs+XBKi"
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 191
},
"sourceInfo": null,
"propertyPath": [
"name_node"
],
"target": {
"__id__": 184
},
"targetInfo": {
"__id__": 571
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"c6fA+I52NLy7nwIG/TAXFX"
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 191
},
"sourceInfo": null,
"propertyPath": [
"cost_node"
],
"target": {
"__id__": 184
},
"targetInfo": {
"__id__": 573
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
@@ -10957,7 +11119,7 @@
"__id__": 184
},
"targetInfo": {
"__id__": 569
"__id__": 575
}
},
{
@@ -10979,7 +11141,7 @@
"__id__": 184
},
"targetInfo": {
"__id__": 571
"__id__": 577
}
},
{
@@ -11001,7 +11163,7 @@
"__id__": 336
},
"targetInfo": {
"__id__": 573
"__id__": 579
}
},
{
@@ -11023,7 +11185,7 @@
"__id__": 336
},
"targetInfo": {
"__id__": 575
"__id__": 581
}
},
{
@@ -11045,7 +11207,7 @@
"__id__": 336
},
"targetInfo": {
"__id__": 577
"__id__": 583
}
},
{
@@ -11067,7 +11229,7 @@
"__id__": 336
},
"targetInfo": {
"__id__": 579
"__id__": 585
}
},
{
@@ -11089,7 +11251,7 @@
"__id__": 336
},
"targetInfo": {
"__id__": 581
"__id__": 587
}
},
{
@@ -11111,7 +11273,7 @@
"__id__": 336
},
"targetInfo": {
"__id__": 583
"__id__": 589
}
},
{

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB