fix(gui/角色控制): 调整角色控制器激活状态及英雄位置参数

修复角色控制器中部分元素的激活状态错误,并优化英雄位置坐标和缩放参数,使其更符合游戏设计需求
This commit is contained in:
walkpan
2026-01-15 00:06:42 +08:00
parent 9ba2efbe17
commit 5b8ab90c6f
2 changed files with 10 additions and 10 deletions

View File

@@ -97,7 +97,7 @@
"__id__": 505 "__id__": 505
} }
], ],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 761 "__id__": 761
@@ -16796,7 +16796,7 @@
"__id__": 1419 "__id__": 1419
} }
], ],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 1688 "__id__": 1688
@@ -16909,7 +16909,7 @@
"__id__": 773 "__id__": 773
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 775 "__id__": 775

View File

@@ -27,13 +27,13 @@ export class HInfoComp extends CCComp {
// 英雄位置定义 // 英雄位置定义
hero_pos:any={ hero_pos:any={
0:v3(500,-30,0), // 不在屏幕内 0:v3(500,0,0), // 不在屏幕内
1:v3(500,100,0), 1:v3(500,0,0),
2:v3(250,30,0), 2:v3(250,0,0),
3:v3(0,-30,0), 3:v3(0,-30,0),
4:v3(-300,40,0), 4:v3(-250,0,0),
5:v3(-500,100,0), 5:v3(-500,0,0),
6:v3(-500,-30,0), // 不在屏幕内 6:v3(-500,0,0), // 不在屏幕内
} }
// 动画锁定标志:防止快速点击导致的动画冲突 // 动画锁定标志:防止快速点击导致的动画冲突
@@ -57,7 +57,7 @@ export class HInfoComp extends CCComp {
case 4: case 4:
return v3(-2.2, 2.2, 1); // 2、4位置1.5倍缩放 return v3(-2.2, 2.2, 1); // 2、4位置1.5倍缩放
case 3: case 3:
return v3(-2.9, 2.9, 1); // 3位置中心1.5倍缩放 return v3(-2.5, 2.5, 1); // 3位置中心1.5倍缩放
default: default:
return v3(-2.2, 2.2, 1); // 其他位置1.8倍缩放 return v3(-2.2, 2.2, 1); // 其他位置1.8倍缩放
} }