From 5b8ab90c6f35ba32d8010ac8162924aa6eaa7883 Mon Sep 17 00:00:00 2001 From: walkpan Date: Thu, 15 Jan 2026 00:06:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(gui/=E8=A7=92=E8=89=B2=E6=8E=A7=E5=88=B6):?= =?UTF-8?q?=20=E8=B0=83=E6=95=B4=E8=A7=92=E8=89=B2=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=99=A8=E6=BF=80=E6=B4=BB=E7=8A=B6=E6=80=81=E5=8F=8A=E8=8B=B1?= =?UTF-8?q?=E9=9B=84=E4=BD=8D=E7=BD=AE=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复角色控制器中部分元素的激活状态错误,并优化英雄位置坐标和缩放参数,使其更符合游戏设计需求 --- assets/resources/gui/role_controller.prefab | 6 +++--- assets/script/game/map/HInfoComp.ts | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index 1c889a39..2252b1ee 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -97,7 +97,7 @@ "__id__": 505 } ], - "_active": false, + "_active": true, "_components": [ { "__id__": 761 @@ -16796,7 +16796,7 @@ "__id__": 1419 } ], - "_active": true, + "_active": false, "_components": [ { "__id__": 1688 @@ -16909,7 +16909,7 @@ "__id__": 773 }, "_children": [], - "_active": true, + "_active": false, "_components": [ { "__id__": 775 diff --git a/assets/script/game/map/HInfoComp.ts b/assets/script/game/map/HInfoComp.ts index f6874e2a..8b869eab 100644 --- a/assets/script/game/map/HInfoComp.ts +++ b/assets/script/game/map/HInfoComp.ts @@ -27,13 +27,13 @@ export class HInfoComp extends CCComp { // 英雄位置定义 hero_pos:any={ - 0:v3(500,-30,0), // 不在屏幕内 - 1:v3(500,100,0), - 2:v3(250,30,0), + 0:v3(500,0,0), // 不在屏幕内 + 1:v3(500,0,0), + 2:v3(250,0,0), 3:v3(0,-30,0), - 4:v3(-300,40,0), - 5:v3(-500,100,0), - 6:v3(-500,-30,0), // 不在屏幕内 + 4:v3(-250,0,0), + 5:v3(-500,0,0), + 6:v3(-500,0,0), // 不在屏幕内 } // 动画锁定标志:防止快速点击导致的动画冲突 @@ -57,7 +57,7 @@ export class HInfoComp extends CCComp { case 4: return v3(-2.2, 2.2, 1); // 2、4位置:1.5倍缩放 case 3: - return v3(-2.9, 2.9, 1); // 3位置(中心):1.5倍缩放 + return v3(-2.5, 2.5, 1); // 3位置(中心):1.5倍缩放 default: return v3(-2.2, 2.2, 1); // 其他位置:1.8倍缩放 }