完成开箱抽卡 和 怪物掉落设置
This commit is contained in:
@@ -37,18 +37,10 @@ export class HCardComp extends CCComp {
|
||||
this.pw=this.node.getChildByName("pow").getComponent(ProgressBar)!
|
||||
this.hc_name.string= this.heros[this.hi].HeroView.hero_name
|
||||
// this.node.getChildByName("lv").getComponent(Label).string=this.heros[this.hi].HeroView.lv.toString()+"级";
|
||||
// console.log("hcard start",this.heros[this.hi].HeroView.hero_uuid)
|
||||
switch(HeroInfo[this.heros[this.hi].HeroView.hero_uuid].quality){
|
||||
case 1:
|
||||
this.node.getChildByName("bg").getComponent(Sprite).color= new Color().fromHEX(ColorSet["BLUE"]);
|
||||
break;
|
||||
case 2:
|
||||
this.node.getChildByName("bg").getComponent(Sprite).color= new Color().fromHEX(ColorSet["YELLOW"]);
|
||||
break;
|
||||
case 3:
|
||||
this.node.getChildByName("bg").getComponent(Sprite).color= new Color().fromHEX(ColorSet["RED"]);
|
||||
break;
|
||||
}
|
||||
// // console.log("hcard start",this.heros[this.hi].HeroView.hero_uuid)
|
||||
// this.node.getChildByName("g1").active=HeroInfo[this.heros[this.hi].HeroView.hero_uuid].quality==1
|
||||
// this.node.getChildByName("g2").active=HeroInfo[this.heros[this.hi].HeroView.hero_uuid].quality==2
|
||||
// this.node.getChildByName("g3").active=HeroInfo[this.heros[this.hi].HeroView.hero_uuid].quality==3
|
||||
}
|
||||
protected update(dt: number): void {
|
||||
if(this.is_dead) return
|
||||
|
||||
Reference in New Issue
Block a user