/*
 * @Date: 2021-08-12 09:33:37
 * @LastEditors: dgflash
 * @LastEditTime: 2023-02-15 09:38:36
 */

import { LayerType, UIConfig } from "../../../../../extensions/oops-plugin-framework/assets/core/gui/layer/LayerManager";

/** 界面唯一标识（方便服务器通过编号数据触发界面打开） */
export enum UIID {
    /** 资源加载界面 */
    Loading = 1,
    /** 弹窗界面 */
    Window,
    /** 加载与延时提示界面 */
    Netinstable,
    /** Game */
    Game,
    /**游戏失败 */
    LevelFail,
    /**游戏过关成功 */
    LevelPass,
    /**添加两格 */
    AddCell,
    /**清空格子 */
    ClearCell,
    /**直接上车 */
    VehicleLeave,
    /**设置页面 */
    Setting,
    /**换肤设置*/
    Skin,
    /**复活界面 */
    Recovery,
    /**新手引导界面 */
    Guide,
    /**抖音侧边栏奖励界面 */
    SideReward
}

/** 打开界面方式的配置数据 */
export var UIConfigData: { [key: number]: UIConfig } = {
    [UIID.Loading]: { layer: LayerType.UI, prefab: "gui/loading/loading" },
    [UIID.Netinstable]: { layer: LayerType.PopUp, prefab: "common/prefab/netinstable" },
    [UIID.Window]: { layer: LayerType.Dialog, prefab: "common/prefab/window" },
    [UIID.Game]: { layer: LayerType.UI, prefab: "gui/game/game" },
    [UIID.LevelFail]: { layer: LayerType.UI, prefab: "gui/levelfail/levelfail" },
    [UIID.LevelPass]: { layer: LayerType.UI, prefab: "gui/levelpass/levelpass" },
    [UIID.AddCell]: { layer: LayerType.UI, prefab: "gui/addcell/addcell" },
    [UIID.ClearCell]: { layer: LayerType.UI, prefab: "gui/clearcell/clearcell" },
    [UIID.VehicleLeave]: { layer: LayerType.UI, prefab: "gui/leave/leave" },
    [UIID.Setting]: { layer: LayerType.UI, prefab: "gui/setting/setting" },
    [UIID.Skin]: { layer: LayerType.UI, prefab: "gui/skin/skin" },
    [UIID.Recovery]: { layer: LayerType.UI, prefab: "gui/recovery/recovery" },
    [UIID.Guide]: { layer: LayerType.UI, prefab: "gui/guide/guide" },
    [UIID.SideReward]: { layer: LayerType.UI, prefab: "gui/sidereward/sidereward" },
}