完成开箱抽卡 和 怪物掉落设置
This commit is contained in:
@@ -38,7 +38,7 @@ export class HeroCardComp extends CCComp {
|
||||
}
|
||||
}
|
||||
show_bg(val:boolean){
|
||||
this.node.getChildByName("show").active=val
|
||||
// this.node.getChildByName("show").active=val
|
||||
}
|
||||
update_data(){
|
||||
let slv = this.node.getChildByName("slv")
|
||||
@@ -57,17 +57,9 @@ export class HeroCardComp extends CCComp {
|
||||
this.node.getChildByName("need").getComponent(Label).string = lvneed.toString()
|
||||
this.node.getChildByName("num").getComponent(Label).string = lvnum.toString()
|
||||
this.node.getChildByName("bar").getComponent(ProgressBar).progress = lvnum/lvneed
|
||||
// switch(HeroInfo[this.h_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;
|
||||
// }
|
||||
this.node.getChildByName("g1").active=HeroInfo[this.h_uuid].quality==1
|
||||
this.node.getChildByName("g2").active=HeroInfo[this.h_uuid].quality==2
|
||||
this.node.getChildByName("g3").active=HeroInfo[this.h_uuid].quality==3
|
||||
}
|
||||
|
||||
call_hero(uuid:number){
|
||||
|
||||
Reference in New Issue
Block a user