LayerConf.ts 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { LayerConf, LayerType } from "../layer/LayerManager";
  2. export enum ViewID {
  3. LoginUI = 1, //登录
  4. LoadingUI, //加载
  5. MaskUI, //蒙板
  6. TempTipsUI, //提示
  7. SelectServer, //服务器列表
  8. GameWind, // 子游戏窗口
  9. TowerUI, //塔防
  10. ZombieUI, //打僵尸
  11. MailMain, //邮箱
  12. MailDetail, //邮件
  13. Bulletin, //公告
  14. CommonTips, //通用提示
  15. ItemMsg, //物品详情
  16. }
  17. export let Layer_Conf: { [key: number]: LayerConf } = {
  18. [ViewID.LoginUI]: { bundle: "package", url: "prefab/login/LoginUI", type: LayerType.UI },
  19. [ViewID.LoadingUI]: { bundle: "package", url: "prefab/login/LoadingUI", type: LayerType.UI },
  20. [ViewID.MaskUI]: { bundle: "package", url: "prefab/ui/relogin/MaskUI", type: LayerType.Notice,special: true, preload: true },
  21. [ViewID.TempTipsUI]: { bundle: "package", url: "prefab/ui/TempTipsUI", type: LayerType.Notice },
  22. [ViewID.GameWind]: { bundle: "package", url: "prefab/ui/GameUI", type: LayerType.UI, anim: 0 },
  23. [ViewID.TowerUI]: { bundle: "package", url: "prefab/ui/tower/tower", type: LayerType.Game, anim: 0 },
  24. [ViewID.ZombieUI]: { bundle: "package", url: "prefab/ui/tower/zombie", type: LayerType.Game, anim: 0 },
  25. [ViewID.MailMain]: { bundle: "mail", url: "prefab/MailMain", type: LayerType.UI, anim: 2 },
  26. [ViewID.MailDetail]: { bundle: "mail", url: "prefab/MailDetail", type: LayerType.UI, anim: 2 },
  27. [ViewID.SelectServer]: { bundle: "package", url: "prefab/login/SelectServer", type: LayerType.UI, anim: 2 },
  28. [ViewID.Bulletin]: { bundle: "package", url: "prefab/login/Bulletin", type: LayerType.UI, anim: 2 },
  29. [ViewID.CommonTips]: { bundle: "package", url: "prefab/ui/tips/CommomTips", type: LayerType.UI, anim: 2 },
  30. [ViewID.ItemMsg]: { bundle: "package", url: "prefab/ui/tips/ItemMsg", type: LayerType.UI, anim: 2 },
  31. };