奖励页面ui 修改完成
This commit is contained in:
@@ -78,6 +78,7 @@ export class MissionComp extends CCComp {
|
||||
let mon_set=RandomManager.instance.getRandomByObjectList(MissionSet,1)
|
||||
this.mon_list=mon_set[0]
|
||||
console.log("mission_start:",this.mon_list)
|
||||
this.colose_victory()
|
||||
this.mission_init()
|
||||
// this.mskill_init()
|
||||
this.mon_refresh()
|
||||
@@ -107,14 +108,19 @@ export class MissionComp extends CCComp {
|
||||
monsters[i].HeroView.reset()
|
||||
monsters[i].HeroView.ent.destroy()
|
||||
}
|
||||
for(let i=0;i<rewards.length;i++){
|
||||
rewards[i].ItemComp.reset()
|
||||
rewards[i].ItemComp.ent.destroy()
|
||||
}
|
||||
this.to_mission_home()
|
||||
oops.gui.open(UIID.Victory)
|
||||
|
||||
// this.to_mission_home()
|
||||
this.open_victory()
|
||||
}
|
||||
open_victory(){
|
||||
this.node.getChildByName("victory").active=true
|
||||
this.node.getChildByName("victory").getComponent(VictoryComp).open()
|
||||
}
|
||||
colose_victory(){
|
||||
this.node.getChildByName("victory").active=false
|
||||
}
|
||||
to_mission_home(){
|
||||
this.colose_victory()
|
||||
let home =this.node.parent.getComponent(CardControllerComp);
|
||||
let mission_home=home.node.getChildByName("mission_home").getComponent(MissionHomeComp)
|
||||
home.bar_change(null,"home")
|
||||
@@ -155,15 +161,15 @@ export class MissionComp extends CCComp {
|
||||
}
|
||||
clear_x1(){
|
||||
for (let i in smc.items) {
|
||||
smc.items[i].x1=smc.items[i].x10=0
|
||||
}
|
||||
for (let i in smc.skills) {
|
||||
smc.skills[i].x1=smc.skills[i].x10=0
|
||||
smc.items[i].x1=0
|
||||
}
|
||||
// for (let i in smc.skills) {
|
||||
// smc.skills[i].x1=0
|
||||
// }
|
||||
for (let i in smc.heros) {
|
||||
smc.heros[i].x1=smc.heros[i].x10=0
|
||||
smc.heros[i].x1=0
|
||||
}
|
||||
console.log("clear_x1",smc.items,smc.skills,smc.heros)
|
||||
// console.log("clear_x1",smc.items,smc.heros)
|
||||
}
|
||||
mskill_init(){
|
||||
this.MSComp.group=BoxSet.HERO
|
||||
|
||||
Reference in New Issue
Block a user