This commit is contained in:
2025-08-16 22:20:26 +08:00
parent eeeeecacc5
commit 6288d4e4bb
7 changed files with 6235 additions and 5594 deletions

View File

@@ -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" },
}

View File

@@ -102,7 +102,7 @@ export class MissionComp extends CCComp {
to_end_fight(){
oops.message.dispatchEvent(GameEvent.FightEnd)
oops.message.dispatchEvent(GameEvent.FightEnd,{victory:false})
}

View File

@@ -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(){