商品页初步完成
This commit is contained in:
@@ -9,6 +9,8 @@ import { smc } from "../common/SingletonModuleComp";
|
||||
import { HeroSelect } from "../hero/HeroSelect";
|
||||
import { MSklist, SkillSet } from "../common/config/SkillSet";
|
||||
import { MSCard } from "./MSCard";
|
||||
import { CardControllerComp } from "./CardController";
|
||||
import { MissionComp } from "./MissionComp";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -35,8 +37,8 @@ export class MissionHomeComp extends CCComp {
|
||||
this.load_skill_card()
|
||||
this.select_skill()
|
||||
}
|
||||
start_mission(e:any,args:any) {
|
||||
console.log("mission home start_mission")
|
||||
start_mission() {
|
||||
console.log("mission_home : start_mission")
|
||||
for(let i=0;i<this.heros.length;i++){
|
||||
this.heros[i].to_destroy()
|
||||
}
|
||||
@@ -48,9 +50,16 @@ export class MissionHomeComp extends CCComp {
|
||||
{uuid:0,px:0},
|
||||
{uuid:0,px:100},
|
||||
]
|
||||
if(args!=0){
|
||||
this.load_ui_heros()
|
||||
}
|
||||
|
||||
let home =this.node.parent.getComponent(CardControllerComp);
|
||||
home.node.getChildByName("bar").active=false;
|
||||
|
||||
let mission=home.node.getChildByName("mission").getComponent(MissionComp)
|
||||
mission.node.active = true;
|
||||
mission.mission_start()
|
||||
|
||||
smc.mission.play = true;
|
||||
this.node.active=false;
|
||||
}
|
||||
load_hero_card(){
|
||||
let hc:number =HeroList.length
|
||||
@@ -125,7 +134,6 @@ export class MissionHomeComp extends CCComp {
|
||||
}
|
||||
|
||||
|
||||
|
||||
show_heros(){
|
||||
this.node.getChildByName("heros").setPosition(0,290)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user