From 756d05f4026bec84f8789928b3fcf66213062f1c Mon Sep 17 00:00:00 2001 From: panw Date: Tue, 7 Apr 2026 11:04:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E8=B0=83=E6=95=B4=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=99=A8=E5=92=8C=E6=8A=80=E8=83=BD=E6=A7=BD?= =?UTF-8?q?=E7=9A=84=E5=B8=83=E5=B1=80=E4=BD=8D=E7=BD=AE=E4=B8=8E=E7=BC=A9?= =?UTF-8?q?=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将技能槽的Y坐标统一上移20像素,改善视觉间距 - 调整角色控制器节点的位置、缩放和锚点,优化界面适配 - 禁用部分UI组件并更新布局约束,修复显示错位问题 --- assets/resources/gui/role_controller.prefab | 28 ++++++++++----------- assets/script/game/map/MissSkillsComp.ts | 20 +++++++-------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index e9f7d9aa..47622716 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -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, diff --git a/assets/script/game/map/MissSkillsComp.ts b/assets/script/game/map/MissSkillsComp.ts index 701cb3a1..12d82833 100644 --- a/assets/script/game/map/MissSkillsComp.ts +++ b/assets/script/game/map/MissSkillsComp.ts @@ -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() {