fix(英雄): 调整英雄模型缩放、血条位置和颜色,优化顶部UI布局

- 调整多个英雄模型(mo1、mo2、ha1、hc1、hh1、hm1、hz1、hm2、mo3、hk1、mo4)的缩放比例(x轴从1改为0.7-0.8)和血条位置(y轴坐标)
- 为英雄阵营单位设置绿色血条(#2ECC71)以区分阵营
- 禁用物理调试绘制以提升性能
- 优化顶部UI(top.prefab)的布局:调整位置、缩放、尺寸,使血条和能量条更紧凑
- 调整hm2英雄的碰撞框尺寸和位置
- 移除mo3和hk1英雄中不必要的UI元素覆盖
- 为mo4英雄添加骷髅图标并调整顶部UI位置和缩放
This commit is contained in:
walkpan
2026-03-18 22:53:49 +08:00
parent b2595cd1b4
commit 8a55f7433b
14 changed files with 379 additions and 566 deletions

View File

@@ -12,7 +12,7 @@ const { ccclass, property } = _decorator;
@ccclass('Main')
export class Main extends Root {
start() {
PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb
// PhysicsSystem2D.instance.debugDrawFlags = EPhysics2DDrawFlags.Aabb
// |EPhysics2DDrawFlags.Pair
// |EPhysics2DDrawFlags.CenterOfMass
// |EPhysics2DDrawFlags.Joint

View File

@@ -120,6 +120,9 @@ export class HeroViewComp extends CCComp {
if (hpNode) {
this.hpBarBasePos = hpNode.position.clone();
}
if(this.model.fac==FacSet.HERO){
hpNode.getChildByName("Bar").getComponent(Sprite).color=new Color("#2ECC71")
}
// let hp_y = this.node.getComponent(UITransform).height+10;
// this.top_node.setPosition(0, hp_y, 0);
}