fix(ui): 调整角色控制器和技能槽的布局位置与缩放

- 将技能槽的Y坐标统一上移20像素,改善视觉间距
- 调整角色控制器节点的位置、缩放和锚点,优化界面适配
- 禁用部分UI组件并更新布局约束,修复显示错位问题
This commit is contained in:
panw
2026-04-07 11:04:18 +08:00
parent 686e47b26c
commit 756d05f402
2 changed files with 24 additions and 24 deletions

View File

@@ -476,8 +476,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -286.28, "x": -302.546,
"y": 1110.85, "y": 1155.37,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -489,8 +489,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 0.7,
"y": 1, "y": 0.7,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -530,7 +530,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": -50, "y": 0,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -576,7 +576,7 @@
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0.5,
"y": 0 "y": 0.5
}, },
"_id": "" "_id": ""
}, },
@@ -640,7 +640,7 @@
"node": { "node": {
"__id__": 16 "__id__": 16
}, },
"_enabled": true, "_enabled": false,
"__prefab": { "__prefab": {
"__id__": 22 "__id__": 22
}, },
@@ -648,8 +648,8 @@
"_target": null, "_target": null,
"_left": 15.5, "_left": 15.5,
"_right": 15.5, "_right": 15.5,
"_top": -40, "_top": -20,
"_bottom": 0, "_bottom": -20,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
@@ -708,7 +708,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 4, "y": 3.9,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -991,11 +991,11 @@
"__prefab": { "__prefab": {
"__id__": 38 "__id__": 38
}, },
"_alignFlags": 33, "_alignFlags": 9,
"_target": null, "_target": null,
"_left": 495.695, "_left": -16.045999999999992,
"_right": 541.28, "_right": 584.502,
"_top": 119.1500000000002, "_top": 89.63,
"_bottom": 1159.929, "_bottom": 1159.929,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,

View File

@@ -24,16 +24,16 @@ export class MissSkillsComp extends CCComp {
private skill_box: Prefab = null; private skill_box: Prefab = null;
private slots: SkillBoxSlot[] = [ private slots: SkillBoxSlot[] = [
{ x: -320, y: 220, used: false, node: null }, { x: -320, y: 240, used: false, node: null },
{ x: -240, y: 220, used: false, node: null }, { x: -240, y: 240, used: false, node: null },
{ x: -160, y: 220, used: false, node: null }, { x: -160, y: 240, used: false, node: null },
{ x: -80, y: 220, used: false, node: null }, { x: -80, y: 240, used: false, node: null },
{ x: 0, y: 220, used: false, node: null }, { x: 0, y: 240, used: false, node: null },
{ x: -320, y: 300, used: false, node: null }, { x: -320, y: 320, used: false, node: null },
{ x: -240, y: 300, used: false, node: null }, { x: -240, y: 320, used: false, node: null },
{ x: -160, y: 300, used: false, node: null }, { x: -160, y: 320, used: false, node: null },
{ x: -80, y: 300, used: false, node: null }, { x: -80, y: 320, used: false, node: null },
{ x: 0, y: 300, used: false, node: null }, { x: 0, y: 320, used: false, node: null },
]; ];
onLoad() { onLoad() {