血条显示修改
This commit is contained in:
@@ -39,12 +39,10 @@ export class BuffComp extends Component {
|
||||
|
||||
info_init(){
|
||||
this.top_node = this.node.getChildByName("top");
|
||||
this.top_node.getChildByName("lv").active=(this.node.getComponent(HeroViewComp).fac == 0 ? true : false)
|
||||
this.top_node.getChildByName("lv").active=false
|
||||
// this.top_node.getChildByName("hp").active=(this.node.getComponent(HeroViewComp).fac == 1 ? true : false)
|
||||
this.top_node.getChildByName("sboss").active=this.node.getComponent(HeroViewComp).is_boss
|
||||
if(this.node.getComponent(HeroViewComp).hero_uuid == 9999){
|
||||
this.top_node.getChildByName("lv").active=false
|
||||
}
|
||||
|
||||
this.top_node.getChildByName("lv").getChildByName("lv").getComponent(Label)!.string = this.node.getComponent(HeroViewComp).lv.toFixed(0)
|
||||
this.top_node.getChildByName("ihp").getChildByName("num").getComponent(Label)!.string = this.node.getComponent(HeroViewComp).hp.toFixed(0)
|
||||
this.top_node.getChildByName("iap").getChildByName("num").getComponent(Label)!.string = this.node.getComponent(HeroViewComp).ap.toFixed(0)
|
||||
|
||||
Reference in New Issue
Block a user