dd
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 541 KiB After Width: | Height: | Size: 568 KiB |
@@ -17,8 +17,9 @@ export enum UIID {
|
||||
/** 角色控制 */
|
||||
Role_Controller,
|
||||
HeroInfo,
|
||||
Shop_page,
|
||||
Hero_page,
|
||||
Victory,
|
||||
// Shop_Page,
|
||||
// Hero_Page,
|
||||
}
|
||||
|
||||
/** 打开界面方式的配置数据 */
|
||||
@@ -28,5 +29,8 @@ export var UIConfigData: { [key: number]: UIConfig } = {
|
||||
// [UIID.Window]: { layer: LayerType.Dialog, prefab: "common/prefab/window" },
|
||||
[UIID.Role_Controller]: { layer: LayerType.UI, prefab: "gui/role_controller" },
|
||||
[UIID.HeroInfo]: { layer: LayerType.UI, prefab: "gui/Hinfo" },
|
||||
[UIID.Victory]: { layer: LayerType.UI, prefab: "gui/victory" },
|
||||
// [UIID.Shop_Page]: { layer: LayerType.UI, prefab: "gui/shop_page" },
|
||||
// [UIID.Hero_Page]: { layer: LayerType.UI, prefab: "gui/heros_page" },
|
||||
// [UIID.Toast]: { layer: LayerType.PopUp, prefab: "common/prefab/toast" },
|
||||
}
|
||||
@@ -102,7 +102,7 @@ export class MissionComp extends CCComp {
|
||||
|
||||
|
||||
to_end_fight(){
|
||||
oops.message.dispatchEvent(GameEvent.FightEnd)
|
||||
oops.message.dispatchEvent(GameEvent.FightEnd,{victory:false})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -20,13 +20,14 @@ export class VictoryComp extends CCComp {
|
||||
this.on(GameEvent.FightEnd,this.fight_end,this)
|
||||
}
|
||||
onAdded(args: any) {
|
||||
|
||||
console.log("[VictoryComp] onAdded",args)
|
||||
}
|
||||
mission_start(){
|
||||
this.hide()
|
||||
}
|
||||
fight_end(e:any,val:any){
|
||||
console.log("[VictoryComp] fight_end",val)
|
||||
this.node.getChildByName("title").getChildByName("victory").active=val.victory
|
||||
this.node.getChildByName("title").getChildByName("defeat").active=!val.victory
|
||||
this.open()
|
||||
}
|
||||
victory_end(){
|
||||
|
||||
Reference in New Issue
Block a user