style(map,skill): 调整技能槽位坐标与预制体尺寸

调整了MissSkillsComp的技能槽位Y轴偏移与X轴间距,同时更新sbox.prefab的控件尺寸与布局参数,统一UI显示规格
This commit is contained in:
panFD
2026-08-03 00:31:54 +08:00
parent 85740b32ce
commit 6ec4838c57
2 changed files with 132 additions and 93 deletions

View File

@@ -25,23 +25,23 @@
"__id__": 116
},
{
"__id__": 156
"__id__": 158
},
{
"__id__": 164
"__id__": 166
}
],
"_active": true,
"_components": [
{
"__id__": 170
"__id__": 172
},
{
"__id__": 172
"__id__": 174
}
],
"_prefab": {
"__id__": 174
"__id__": 176
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -265,8 +265,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 208,
"height": 208
"width": 158,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -390,8 +390,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
"width": 300,
"height": 300
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -625,8 +625,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 208,
"height": 208
"width": 158,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -747,8 +747,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
"width": 300,
"height": 300
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -982,8 +982,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 208,
"height": 208
"width": 158,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1107,8 +1107,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
"width": 300,
"height": 300
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1342,8 +1342,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 208,
"height": 208
"width": 158,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1467,8 +1467,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
"width": 300,
"height": 300
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1702,8 +1702,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 208,
"height": 208
"width": 158,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1827,8 +1827,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 400
"width": 300,
"height": 300
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -2575,8 +2575,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -2654,20 +2654,17 @@
"__id__": 123
},
{
"__id__": 129
"__id__": 131
},
{
"__id__": 135
"__id__": 137
},
{
"__id__": 141
"__id__": 143
}
],
"_active": true,
"_components": [
{
"__id__": 147
},
{
"__id__": 149
},
@@ -2676,10 +2673,13 @@
},
{
"__id__": 153
},
{
"__id__": 155
}
],
"_prefab": {
"__id__": 155
"__id__": 157
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2862,10 +2862,13 @@
},
{
"__id__": 126
},
{
"__id__": 128
}
],
"_prefab": {
"__id__": 128
"__id__": 130
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2910,8 +2913,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 78,
"height": 78
"width": 55.55555555555556,
"height": 55.55555555555556
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -2969,6 +2972,42 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "7ekr/R70BLWL/gB7w5hxpx"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 123
},
"_enabled": true,
"__prefab": {
"__id__": 129
},
"_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": 78,
"_originalHeight": 78,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "adNh6YuLZEDqQM4/5x62ZG"
},
{
"__type__": "cc.PrefabInfo",
"root": {
@@ -2994,14 +3033,14 @@
"_active": false,
"_components": [
{
"__id__": 130
"__id__": 132
},
{
"__id__": 132
"__id__": 134
}
],
"_prefab": {
"__id__": 134
"__id__": 136
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3038,11 +3077,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 129
"__id__": 131
},
"_enabled": true,
"__prefab": {
"__id__": 131
"__id__": 133
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3066,11 +3105,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 129
"__id__": 131
},
"_enabled": true,
"__prefab": {
"__id__": 133
"__id__": 135
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3130,14 +3169,14 @@
"_active": false,
"_components": [
{
"__id__": 136
"__id__": 138
},
{
"__id__": 138
"__id__": 140
}
],
"_prefab": {
"__id__": 140
"__id__": 142
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3174,11 +3213,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 135
"__id__": 137
},
"_enabled": true,
"__prefab": {
"__id__": 137
"__id__": 139
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3202,11 +3241,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 135
"__id__": 137
},
"_enabled": true,
"__prefab": {
"__id__": 139
"__id__": 141
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3266,14 +3305,14 @@
"_active": false,
"_components": [
{
"__id__": 142
"__id__": 144
},
{
"__id__": 144
"__id__": 146
}
],
"_prefab": {
"__id__": 146
"__id__": 148
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3310,11 +3349,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 141
"__id__": 143
},
"_enabled": true,
"__prefab": {
"__id__": 143
"__id__": 145
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3338,11 +3377,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 141
"__id__": 143
},
"_enabled": true,
"__prefab": {
"__id__": 145
"__id__": 147
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3400,12 +3439,12 @@
},
"_enabled": true,
"__prefab": {
"__id__": 148
"__id__": 150
},
"_contentSize": {
"__type__": "cc.Size",
"width": 70,
"height": 70
"width": 50,
"height": 50
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -3428,7 +3467,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 150
"__id__": 152
},
"_type": 0,
"_inverted": false,
@@ -3450,7 +3489,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 152
"__id__": 154
},
"_alignFlags": 45,
"_target": null,
@@ -3486,7 +3525,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 154
"__id__": 156
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3546,18 +3585,18 @@
"_children": [],
"_active": false,
"_components": [
{
"__id__": 157
},
{
"__id__": 159
},
{
"__id__": 161
},
{
"__id__": 163
}
],
"_prefab": {
"__id__": 163
"__id__": 165
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3594,11 +3633,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 156
"__id__": 158
},
"_enabled": true,
"__prefab": {
"__id__": 158
"__id__": 160
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3622,11 +3661,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 156
"__id__": 158
},
"_enabled": true,
"__prefab": {
"__id__": 160
"__id__": 162
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3670,11 +3709,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 156
"__id__": 158
},
"_enabled": true,
"__prefab": {
"__id__": 162
"__id__": 164
},
"_alignFlags": 45,
"_target": null,
@@ -3725,14 +3764,14 @@
"_active": false,
"_components": [
{
"__id__": 165
"__id__": 167
},
{
"__id__": 167
"__id__": 169
}
],
"_prefab": {
"__id__": 169
"__id__": 171
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3769,11 +3808,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 164
"__id__": 166
},
"_enabled": true,
"__prefab": {
"__id__": 166
"__id__": 168
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3797,11 +3836,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 164
"__id__": 166
},
"_enabled": true,
"__prefab": {
"__id__": 168
"__id__": 170
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3882,12 +3921,12 @@
},
"_enabled": true,
"__prefab": {
"__id__": 171
"__id__": 173
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 80
"width": 60,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -3910,7 +3949,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 173
"__id__": 175
},
"icon_node": {
"__id__": 123
@@ -3919,10 +3958,10 @@
"__id__": 2
},
"num_label": {
"__id__": 167
"__id__": 169
},
"cd_mask": {
"__id__": 156
"__id__": 158
},
"iboxPrefab": {
"__uuid__": "348ec900-f7b9-440a-911e-75f9590254c7",

View File

@@ -65,12 +65,12 @@ export class MissSkillsComp extends CCComp {
* 预定义的 6 个槽位坐标(单行):
*/
private slots: SkillBoxSlot[] = [
{ x: -310, y: BoxSet.GAME_LINE+200, used: false, node: null },
{ x: -230, y: BoxSet.GAME_LINE+200, used: false, node: null },
{ x: -150, y: BoxSet.GAME_LINE+200, used: false, node: null },
{ x: -70, y: BoxSet.GAME_LINE+200, used: false, node: null },
{ x: 10, y: BoxSet.GAME_LINE+200, used: false, node: null },
{ x: 90, y: BoxSet.GAME_LINE+200, used: false, node: null },
{ x: -310, y: BoxSet.GAME_LINE+350, used: false, node: null },
{ x: -240, y: BoxSet.GAME_LINE+350, used: false, node: null },
{ x: -170, y: BoxSet.GAME_LINE+350, used: false, node: null },
{ x: -100, y: BoxSet.GAME_LINE+350, used: false, node: null },
{ x: -30, y: BoxSet.GAME_LINE+350, used: false, node: null },
{ x: 40, y: BoxSet.GAME_LINE+350, used: false, node: null },
];
/** 注册事件监听 */