UICfg.ts 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /** @format */
  2. import {UI} from '../enums/UI'
  3. /** UI配置结构体 */
  4. export interface IUIConfig {
  5. url: string
  6. fadeIn?: boolean
  7. }
  8. let uiCfg = new Map<UI, IUIConfig>()
  9. uiCfg.set(UI.TipUI, {url: 'public/TipUI'})
  10. uiCfg.set(UI.MessageUI, {url: 'public/MessageUI'})
  11. uiCfg.set(UI.RewardUI, {url: 'public/RewardUI'})
  12. uiCfg.set(UI.GameDevUI, {url: 'GameDevUI'})
  13. uiCfg.set(UI.LoginUI, {url: 'LoginUI'})
  14. uiCfg.set(UI.MainUI, {url: 'MainBottomUI'})
  15. uiCfg.set(UI.TalentUI, {url: 'TalentUI'})
  16. uiCfg.set(UI.StageUI, {url: 'StageUI'})
  17. uiCfg.set(UI.EmailUI, {url: 'EmailUI'})
  18. uiCfg.set(UI.TaskUI, {url: 'TaskUI'})
  19. uiCfg.set(UI.SettingUI, {url: 'SettingUI'})
  20. uiCfg.set(UI.UserInfoUI, {url: 'UserInfoUI'})
  21. uiCfg.set(UI.RecruitUI, {url: 'RecruitUI'})
  22. uiCfg.set(UI.TeamUI, {url: 'TeamUI'})
  23. uiCfg.set(UI.RoleUI, {url: 'RoleUI'})
  24. uiCfg.set(UI.RoleExchangeUI, {url: 'RoleExchangeUI'})
  25. uiCfg.set(UI.RoleResetUI, {url: 'RoleResetUI'})
  26. uiCfg.set(UI.RoleBreakUI, {url: 'RoleBreakUI'})
  27. uiCfg.set(UI.RoleBreakSuccessUI, {url: 'RoleBreakSuccessUI'})
  28. uiCfg.set(UI.EquipUI, {url: 'EquipUI'})
  29. uiCfg.set(UI.EquipDetailUI, {url: 'EquipDetailUI'})
  30. uiCfg.set(UI.EquipResetUI, {url: 'EquipResetUI'})
  31. uiCfg.set(UI.EquipBreakUI, {url: 'EquipBreakUI'})
  32. uiCfg.set(UI.EquipBreakSuccessUI, {url: 'EquipBreakSuccessUI'})
  33. uiCfg.set(UI.EquipAttrUI, {url: 'EquipAttrUI'})
  34. uiCfg.set(UI.RoleUpgradeUI, {url: 'RoleUpgradeUI'})
  35. uiCfg.set(UI.AnnouncementUI, {url: 'AnnouncementUI'})
  36. uiCfg.set(UI.RankListUI, {url: 'RankListUI'})
  37. uiCfg.set(UI.GameResultUI, {url: 'GameResultUI'})
  38. uiCfg.set(UI.ObtainChannelUI, {url: 'public/ObtainChannelUI'})
  39. uiCfg.set(UI.ShopUI, {url: 'ShopUI'})
  40. uiCfg.set(UI.RuleUI, {url: 'public/RuleUI'})
  41. uiCfg.set(UI.RecruitPublicityUI, {url: 'RecruitPublicityUI'})
  42. uiCfg.set(UI.ItemDetailsUI, {url: 'public/ItemDetailsUI'})
  43. uiCfg.set(UI.LoadingUI, {url: 'public/LoadingUI'})
  44. uiCfg.set(UI.GameLoadingUI, {url: 'GameLoadingUI'})
  45. uiCfg.set(UI.UserGuideUI, {url: 'UserGuideUI'})
  46. uiCfg.set(UI.ModOpenUI, {url: 'ModOpenUI'})
  47. uiCfg.set(UI.PowerUpUI, {url: 'PowerUpUI'})
  48. uiCfg.set(UI.OnlineRewardUI, {url: 'OnlineRewardUI'})
  49. uiCfg.set(UI.GameSpeedUI, {url: 'GameSpeedUI'})
  50. uiCfg.set(UI.ServerUI, {url: 'ServerUI'})
  51. uiCfg.set(UI.ZumaUI, {url: 'ZumaUI'})
  52. export const UICfg = uiCfg