ddd
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -24,7 +24,7 @@ export class HeroHomeComp extends CCComp {
|
||||
}
|
||||
start() {
|
||||
|
||||
this.load_talents()
|
||||
// this.load_talents()
|
||||
console.log("hero_home start")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user