fix(ui): 调整角色控制器和技能槽的布局位置与缩放
- 将技能槽的Y坐标统一上移20像素,改善视觉间距 - 调整角色控制器节点的位置、缩放和锚点,优化界面适配 - 禁用部分UI组件并更新布局约束,修复显示错位问题
This commit is contained in:
@@ -476,8 +476,8 @@
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -286.28,
|
||||
"y": 1110.85,
|
||||
"x": -302.546,
|
||||
"y": 1155.37,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -489,8 +489,8 @@
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"x": 0.7,
|
||||
"y": 0.7,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
@@ -530,7 +530,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": -50,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -576,7 +576,7 @@
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
@@ -640,7 +640,7 @@
|
||||
"node": {
|
||||
"__id__": 16
|
||||
},
|
||||
"_enabled": true,
|
||||
"_enabled": false,
|
||||
"__prefab": {
|
||||
"__id__": 22
|
||||
},
|
||||
@@ -648,8 +648,8 @@
|
||||
"_target": null,
|
||||
"_left": 15.5,
|
||||
"_right": 15.5,
|
||||
"_top": -40,
|
||||
"_bottom": 0,
|
||||
"_top": -20,
|
||||
"_bottom": -20,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
@@ -708,7 +708,7 @@
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 4,
|
||||
"y": 3.9,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
@@ -991,11 +991,11 @@
|
||||
"__prefab": {
|
||||
"__id__": 38
|
||||
},
|
||||
"_alignFlags": 33,
|
||||
"_alignFlags": 9,
|
||||
"_target": null,
|
||||
"_left": 495.695,
|
||||
"_right": 541.28,
|
||||
"_top": 119.1500000000002,
|
||||
"_left": -16.045999999999992,
|
||||
"_right": 584.502,
|
||||
"_top": 89.63,
|
||||
"_bottom": 1159.929,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
|
||||
@@ -24,16 +24,16 @@ export class MissSkillsComp extends CCComp {
|
||||
private skill_box: Prefab = null;
|
||||
|
||||
private slots: SkillBoxSlot[] = [
|
||||
{ x: -320, y: 220, used: false, node: null },
|
||||
{ x: -240, y: 220, used: false, node: null },
|
||||
{ x: -160, y: 220, used: false, node: null },
|
||||
{ x: -80, y: 220, used: false, node: null },
|
||||
{ x: 0, y: 220, used: false, node: null },
|
||||
{ x: -320, y: 300, used: false, node: null },
|
||||
{ x: -240, y: 300, used: false, node: null },
|
||||
{ x: -160, y: 300, used: false, node: null },
|
||||
{ x: -80, y: 300, used: false, node: null },
|
||||
{ x: 0, y: 300, used: false, node: null },
|
||||
{ x: -320, y: 240, used: false, node: null },
|
||||
{ x: -240, y: 240, used: false, node: null },
|
||||
{ x: -160, y: 240, used: false, node: null },
|
||||
{ x: -80, y: 240, used: false, node: null },
|
||||
{ x: 0, y: 240, used: false, node: null },
|
||||
{ x: -320, y: 320, used: false, node: null },
|
||||
{ x: -240, y: 320, used: false, node: null },
|
||||
{ x: -160, y: 320, used: false, node: null },
|
||||
{ x: -80, y: 320, used: false, node: null },
|
||||
{ x: 0, y: 320, used: false, node: null },
|
||||
];
|
||||
|
||||
onLoad() {
|
||||
|
||||
Reference in New Issue
Block a user