界面调整

This commit is contained in:
panw
2025-01-02 10:32:41 +08:00
parent fdec4ef47b
commit 7d677ad5b1
11 changed files with 578 additions and 823 deletions

View File

@@ -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
}
}