ui调整 去掉一些不要的

This commit is contained in:
2025-08-03 16:25:51 +08:00
parent eff5f21d04
commit 5c8a15262e
27 changed files with 33862 additions and 42086 deletions

View File

@@ -162,9 +162,6 @@ export class CardComp extends CCComp {
// show.getChildByName("hp").active=true
// show.getChildByName("ap").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].ap.toString()
// show.getChildByName("hp").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].hp.toString()
// show.getChildByName("type").getChildByName("war").active=HeroInfo[uuid].type==0
// show.getChildByName("type").getChildByName("bow").active=HeroInfo[uuid].type==1
// show.getChildByName("type").getChildByName("mag").active=HeroInfo[uuid].type==2
// show.getChildByName("lv").getChildByName("num").getComponent(Label).string=HeroInfo[uuid].lv.toString()
var icon_path = "game/heros/herois"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
@@ -232,15 +229,12 @@ export class CardComp extends CCComp {
switch(this.c_type){
case cardType.HERO:
show.getChildByName("mask").getChildByName("hero").active=true
show.getChildByName("type").getChildByName("name").getComponent(Label).string="英雄"
break
case cardType.SKILL:
show.getChildByName("mask").getChildByName("skill").active=true
show.getChildByName("type").getChildByName("name").getComponent(Label).string="技能"
break
case cardType.TALENT:
show.getChildByName("mask").getChildByName("tal").active=true
show.getChildByName("type").getChildByName("name").getComponent(Label).string="天赋"
break
case cardType.EQUIP:
show.getChildByName("mask").getChildByName("equip").active=true
@@ -256,11 +250,9 @@ export class CardComp extends CCComp {
break
}
show.getChildByName("type").getChildByName("name").getComponent(Label).string="装备"
break
case cardType.SPECIAL:
show.getChildByName("mask").getChildByName("func").active=true
show.getChildByName("type").getChildByName("name").getComponent(Label).string="特效"
break
}
show.getChildByName("q1").active=q==Quality.WHITE
@@ -268,11 +260,11 @@ export class CardComp extends CCComp {
show.getChildByName("q3").active=q==Quality.BLUE
show.getChildByName("q4").active=q==Quality.PURPLE
show.getChildByName("q5").active=q==Quality.ORANGE
show.getChildByName("mask").getChildByName("q1").active=q==Quality.WHITE
show.getChildByName("mask").getChildByName("q2").active=q==Quality.GREEN
show.getChildByName("mask").getChildByName("q3").active=q==Quality.BLUE
show.getChildByName("mask").getChildByName("q4").active=q==Quality.PURPLE
show.getChildByName("mask").getChildByName("q5").active=q==Quality.ORANGE
show.getChildByName("fq1").active=q==Quality.WHITE
show.getChildByName("fq2").active=q==Quality.GREEN
show.getChildByName("fq3").active=q==Quality.BLUE
show.getChildByName("fq4").active=q==Quality.PURPLE
show.getChildByName("fq5").active=q==Quality.ORANGE
// this.node.getChildByName("show").getChildByName("coins").active=false
// this.node.getChildByName("show").getChildByName("coins").getChildByName("num").getComponent(Label).string=this.get_cost_gold(q).toString()
}