Interface UIConfig

界面配置结构体

Example

// 界面唯一标识
export enum UIID {
Loading = 1,
Window,
Netinstable
}

// 打开界面方式的配置数据
export var UIConfigData: { [key: number]: UIConfig } = {
[UIID.Loading]: { layer: LayerType.UI, prefab: "loading/prefab/loading", bundle: "resources" },
[UIID.Netinstable]: { layer: LayerType.PopUp, prefab: "common/prefab/netinstable" },
[UIID.Window]: { layer: LayerType.Dialog, prefab: "common/prefab/window" }
}

Hierarchy

  • UIConfig

Properties

Properties

bundle?: string

远程包名

layer: LayerType

窗口层级

prefab: string

预制资源相对路径

Generated using TypeDoc