diff --git a/assets/resources/game/heros/ha1.prefab b/assets/resources/game/heros/ha1.prefab index 4fd55ff3..6a9c9904 100644 --- a/assets/resources/game/heros/ha1.prefab +++ b/assets/resources/game/heros/ha1.prefab @@ -560,7 +560,7 @@ "value": { "__type__": "cc.Vec3", "x": 0, - "y": 90.171, + "y": 80, "z": 0 } }, diff --git a/assets/resources/game/heros/top.prefab b/assets/resources/game/heros/top.prefab index 6e768824..87f5fd7a 100644 --- a/assets/resources/game/heros/top.prefab +++ b/assets/resources/game/heros/top.prefab @@ -817,7 +817,7 @@ }, "_lpos": { "__type__": "cc.Vec3", - "x": -25, + "x": -20, "y": 0, "z": 0 }, @@ -858,7 +858,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 50, + "width": 40, "height": 10 }, "_anchorPoint": { @@ -1036,7 +1036,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 173.33333333333334, + "width": 140, "height": 40 }, "_anchorPoint": { @@ -1161,7 +1161,7 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 50, + "width": 40, "height": 10 }, "_anchorPoint": { @@ -1239,7 +1239,7 @@ "__id__": 36 }, "_mode": 0, - "_totalLength": 50, + "_totalLength": 40, "_progress": 1, "_reverse": false, "_id": "" diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index b5d76394..a26ee146 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -113,7 +113,7 @@ export class HeroViewComp extends CCComp { private initUINodes() { this.top_node = this.node.getChildByName("top"); this.topOpacity = this.top_node.getComponent(UIOpacity) || this.top_node.addComponent(UIOpacity); - this.top_node.setPosition(0, 90+this.model.lv*10, 0); + this.top_node.setPosition(0, 80, 0); this.topBasePos = this.top_node.position.clone(); const hpNode = this.top_node.getChildByName("hp"); if(this.model.fac==FacSet.HERO){ @@ -209,7 +209,7 @@ export class HeroViewComp extends CCComp { this.top_node.active = true; return; } - this.top_node.active = !this.isFullHpAndNoShield(); + this.top_node.active = true; } private activateTopBar() {