/*
 * @Date: 2021-08-12 09:33:37
 * @LastEditors: mojunshou 1637302775@qq.com
 * @LastEditTime: 2025-03-28 14:45:46
 */
import { LayerType, UIConfig } from "../../../../../extensions/oops-plugin-framework/assets/core/gui/layer/LayerManager";

/** 界面唯一标识（方便服务器通过编号数据触发界面打开） */
export enum UIID {
    /** 资源加载界面 */
    Loading = 1,
    /** 提示弹出窗口 */
    Alert,
    /** 确认弹出窗口 */
    Confirm,
    /** DEMO */
    Demo,
    /** 温馨提示 */
    KindTips,
    /** 隐私挽留弹窗 */
    Retention,
    /** 消除游戏主场景 */
    Eliminate,
    /** 设置页面 */
    Setting,
    /** 关于我们页面 */
    AboutUs,
    /**红包提现 */
    RedPacketWithdraw,
    /**游戏主界面*/
    Game,
    /**提现必返*/
    CashRebate,
    /**惊喜翻倍*/
    DoubleRewards,
    /** 双倍加速 */
    DoubleSpeed,
    /** 游戏结束 */
    GameOver,
    /**恭喜通关*/
    GamePass,
    /**提现预约表*/
    Reserve,
    /**安全验证*/
    Verify,
    /**提现记录 */
    WithdrawRecord,
    /** 微信提现 */
    WechatWithdraw
}

/** 打开界面方式的配置数据 */
export var UIConfigData: { [key: number]: UIConfig } = {
    [UIID.Loading]: { layer: LayerType.UI, prefab: "gui/loading/loading" },
    [UIID.Alert]: { layer: LayerType.Dialog, prefab: "common/prefab/alert" },
    [UIID.Confirm]: { layer: LayerType.Dialog, prefab: "common/prefab/confirm" },
    [UIID.Demo]: { layer: LayerType.UI, prefab: "gui/demo/demo" },
    [UIID.KindTips]: { layer: LayerType.PopUp, prefab: "common/prefab/kind_tips" },
    [UIID.Retention]: { layer: LayerType.PopUp, prefab: "common/prefab/retention" },
    [UIID.Eliminate]: { layer: LayerType.UI, prefab: "gui/eliminate/eliminate" },
    [UIID.Setting]: { layer: LayerType.UI, prefab: "common/prefab/setting", vacancy: true, mask: true },
    [UIID.AboutUs]: { layer: LayerType.UI, prefab: "common/prefab/about" },
    [UIID.RedPacketWithdraw]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/redPacketWithdrawal" },
    [UIID.DoubleSpeed]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/doubleSpeed" },
    [UIID.GameOver]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/gameOver", vacancy: true, mask: true },
    [UIID.Game]: { layer: LayerType.UI, prefab: "gui/eliminate/Game" },
    [UIID.CashRebate]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/cashRebate" },
    [UIID.DoubleRewards]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/doubleRewards" },
    [UIID.GamePass]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/gamePass" },
    [UIID.Reserve]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/reserve" },
    [UIID.Verify]: { layer: LayerType.PopUp, prefab: "gui/eliminate/prefab/verify" },
    [UIID.WithdrawRecord]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/withdrawalRecord" },
    [UIID.WechatWithdraw]: { layer: LayerType.UI, prefab: "gui/eliminate/prefab/wechatWithdrawal" },


}
