feat(gui): 添加新的GUI资源文件及调整英雄位置和缩放

添加多个GUI资源文件包括图片、plist和prefab
调整HInfoComp中英雄位置和中心位置的缩放比例
This commit is contained in:
walkpan
2025-12-21 22:31:37 +08:00
parent 6a0db764d7
commit 4dc3c0f4d5
22 changed files with 10920 additions and 1627 deletions

View File

@@ -26,11 +26,11 @@ export class HInfoComp extends CCComp {
// 英雄位置定义
hero_pos:any={
0:v3(500,-30,0), // 不在屏幕内
1:v3(320,-30,0),
2:v3(160,-30,0),
1:v3(500,100,0),
2:v3(250,30,0),
3:v3(0,-30,0),
4:v3(-160,-30,0),
5:v3(-320,-30,0),
4:v3(-300,40,0),
5:v3(-500,100,0),
6:v3(-500,-30,0), // 不在屏幕内
}
@@ -55,7 +55,7 @@ export class HInfoComp extends CCComp {
case 4:
return v3(-1.5, 1.5, 1); // 2、4位置1.5倍缩放
case 3:
return v3(-1.5, 1.5, 1); // 3位置中心1.5倍缩放
return v3(-3, 3, 1); // 3位置中心1.5倍缩放
default:
return v3(-1.5, 1.5, 1); // 其他位置1.8倍缩放
}