英雄展示页面++
This commit is contained in:
@@ -4,6 +4,7 @@ import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/modu
|
||||
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
import { GameEvent } from "../common/config/GameEvent";
|
||||
import { HeroPageComp } from "./HeroPageComp";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -38,10 +39,11 @@ export class MissionHomeComp extends CCComp {
|
||||
smc.syncData()
|
||||
}
|
||||
btn_func(e:string,data:any){
|
||||
console.log("[MissionHomeComp]:btn_func",e,data)
|
||||
// console.log("[MissionHomeComp]:btn_func",e,data)
|
||||
let btns=this.node.getChildByName("btns")
|
||||
let shop =btns.getChildByName("shop")
|
||||
let heros =btns.getChildByName("heros")
|
||||
let heros_page=this.node.getChildByName("heros").getComponent(HeroPageComp)!
|
||||
let fight =btns.getChildByName("fight")
|
||||
let skill =btns.getChildByName("skill")
|
||||
let set =btns.getChildByName("set")
|
||||
@@ -62,6 +64,7 @@ export class MissionHomeComp extends CCComp {
|
||||
break
|
||||
case "heros":
|
||||
this.node.getChildByName("heros").active=true
|
||||
heros_page.update_heros()
|
||||
heros.getChildByName("act").active=true
|
||||
break
|
||||
case "fight":
|
||||
|
||||
Reference in New Issue
Block a user