界面调整
This commit is contained in:
@@ -19,7 +19,7 @@ export class HChipComp extends Component {
|
||||
|
||||
}
|
||||
show_info(){
|
||||
if(this.node.parent.name=="reward") return
|
||||
if(this.node.parent.name=="reward"||this.node.parent.name=="item_info") return
|
||||
oops.gui.open(UIID.ItemInfo, {uuid:this.h_uuid,type:2});
|
||||
}
|
||||
|
||||
@@ -35,17 +35,10 @@ export class HChipComp extends Component {
|
||||
}else{
|
||||
this.node.getChildByName("num").getComponent(Label).string = "";
|
||||
}
|
||||
switch(HeroInfo[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[uuid].quality==1
|
||||
this.node.getChildByName("g2").active=HeroInfo[uuid].quality==2
|
||||
this.node.getChildByName("g3").active=HeroInfo[uuid].quality==3
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user