This commit is contained in:
2024-10-15 08:51:10 +08:00
parent 74ad696f05
commit 46fd88d75a
145 changed files with 61861 additions and 2329 deletions

View File

@@ -199,9 +199,7 @@ export class CardControllerComp extends CCComp {
this.node.getChildByName("bar").getChildByName("mission_btn").getChildByName("bg").active=true
this.node.getChildByName("bar").getChildByName("hero_btn").getChildByName("bg").active=false
this.node.getChildByName("bar").getChildByName("home_btn").getChildByName("bg").active=false
this.node.getChildByName("bar").getChildByName("mission_btn").setScale(1.2,1.2)
this.node.getChildByName("bar").getChildByName("hero_btn").setScale(1,1)
this.node.getChildByName("bar").getChildByName("home_btn").setScale(1,1)
}
mission_start(){
this.node.getChildByName("bar").active=false;
@@ -217,9 +215,7 @@ export class CardControllerComp extends CCComp {
this.node.getChildByName("bar").getChildByName("mission_btn").getChildByName("bg").active=false
this.node.getChildByName("bar").getChildByName("hero_btn").getChildByName("bg").active=false
this.node.getChildByName("bar").getChildByName("home_btn").getChildByName("bg").active=true
this.node.getChildByName("bar").getChildByName("mission_btn").setScale(1,1)
this.node.getChildByName("bar").getChildByName("hero_btn").setScale(1,1)
this.node.getChildByName("bar").getChildByName("home_btn").setScale(1.2,1.2)
}
to_hero(){
this.node.getChildByName("mission_home").active=false
@@ -228,9 +224,7 @@ export class CardControllerComp extends CCComp {
this.node.getChildByName("bar").getChildByName("mission_btn").getChildByName("bg").active=false
this.node.getChildByName("bar").getChildByName("hero_btn").getChildByName("bg").active=true
this.node.getChildByName("bar").getChildByName("home_btn").getChildByName("bg").active=false
this.node.getChildByName("bar").getChildByName("mission_btn").setScale(1,1)
this.node.getChildByName("bar").getChildByName("hero_btn").setScale(1.2,1.2)
this.node.getChildByName("bar").getChildByName("home_btn").setScale(1,1)
}
/** 视图对象通过 ecs.Entity.remove(ControllerComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {

View File

@@ -24,7 +24,7 @@ export class HeroHomeComp extends CCComp {
}
start() {
this.load_talents()
// this.load_talents()
console.log("hero_home start")
}