英雄成长页面开始
This commit is contained in:
@@ -39,13 +39,29 @@ export class CardControllerComp extends CCComp {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
hh_show(){
|
||||
this.node.getChildByName("hero_home").setPosition(v3(0,0,0));
|
||||
}
|
||||
hh_hide(){
|
||||
this.node.getChildByName("hero_home").setPosition(v3(1000,0,0));
|
||||
}
|
||||
mh_show(){
|
||||
this.node.getChildByName("mission_home").setPosition(v3(0,0,0));
|
||||
}
|
||||
mh_hide(){
|
||||
this.node.getChildByName("mission_home").setPosition(v3(1000,0,0));
|
||||
}
|
||||
m_show(){
|
||||
this.node.getChildByName("mission").setPosition(v3(0,0,0));
|
||||
}
|
||||
m_hide(){
|
||||
this.node.getChildByName("mission").setPosition(v3(1000,0,0));
|
||||
}
|
||||
to_mission(){
|
||||
this.node.getChildByName("mission_home").active=true
|
||||
this.node.getChildByName("mission").active=false
|
||||
this.hh_hide()
|
||||
this.mh_show()
|
||||
this.m_hide()
|
||||
this.node.getChildByName("bar").active=true;
|
||||
this.node.getChildByName("hero_home").active=false
|
||||
this.node.getChildByName("shop_home").active=false
|
||||
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
|
||||
@@ -53,23 +69,23 @@ export class CardControllerComp extends CCComp {
|
||||
}
|
||||
mission_start(){
|
||||
this.node.getChildByName("bar").active=false;
|
||||
this.node.getChildByName("mission_home").active=false
|
||||
this.node.getChildByName("mission").active=true
|
||||
this.mh_hide()
|
||||
this.m_show();
|
||||
smc.vmdata.mission.play = true;
|
||||
// oops.message.dispatchEvent("mission_start")
|
||||
}
|
||||
to_home(){
|
||||
this.node.getChildByName("mission_home").active=false
|
||||
this.node.getChildByName("hero_home").active=false
|
||||
this.node.getChildByName("shop_home").active=true
|
||||
this.mh_hide()
|
||||
this.hh_hide()
|
||||
this.m_hide()
|
||||
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
|
||||
}
|
||||
to_hero(){
|
||||
this.node.getChildByName("mission_home").active=false
|
||||
this.node.getChildByName("hero_home").active=true
|
||||
this.node.getChildByName("shop_home").active=false
|
||||
this.mh_hide()
|
||||
this.hh_show()
|
||||
this.m_hide()
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user