This commit is contained in:
MuHua-123
2025-08-27 17:14:02 +08:00
parent 38f522bb92
commit 47c27ec82f
79 changed files with 2080 additions and 4808 deletions
+17 -3
View File
@@ -9,8 +9,8 @@ using MuHua;
/// UI模块
/// </summary>
public class ModuleUI : ModuleSingle<ModuleUI> {
public static EnumPage page;
public static event Action<EnumPage> OnJumpPage;
public static Page page;
public static event Action<Page> OnJumpPage;
public UIDocument document;// 绑定文档
@@ -20,5 +20,19 @@ public class ModuleUI : ModuleSingle<ModuleUI> {
protected override void Awake() => NoReplace();
/// <summary> 跳转页面 </summary>
public static void Jump(EnumPage pageType) => OnJumpPage?.Invoke(pageType);
public static void Jump(Page pageType) => OnJumpPage?.Invoke(pageType);
}
/// <summary>
/// 页面类型
/// </summary>
public enum Page {
None,
Menu,// 主菜单
Scene,// 场景选择
Prepare,// 准备游戏
Battle,// 战斗页面
Settlement,// 结算页面
Settings,// 游戏设置
}