ee0f22602c2f0e87be35e687a338ab67ed42e953.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, LayerType, _crd, UIID, UIConfigData;
  4. function _reportPossibleCrUseOfLayerType(extras) {
  5. _reporterNs.report("LayerType", "../../../../../extensions/oops-plugin-framework/assets/core/gui/layer/LayerManager", _context.meta, extras);
  6. }
  7. function _reportPossibleCrUseOfUIConfig(extras) {
  8. _reporterNs.report("UIConfig", "../../../../../extensions/oops-plugin-framework/assets/core/gui/layer/LayerManager", _context.meta, extras);
  9. }
  10. return {
  11. setters: [function (_unresolved_) {
  12. _reporterNs = _unresolved_;
  13. }, function (_cc) {
  14. _cclegacy = _cc.cclegacy;
  15. }, function (_unresolved_2) {
  16. LayerType = _unresolved_2.LayerType;
  17. }],
  18. execute: function () {
  19. _crd = true;
  20. _cclegacy._RF.push({}, "14663z2+5JJIYupyDayZnc3", "GameUIConfig", undefined);
  21. /*
  22. * @Date: 2021-08-12 09:33:37
  23. * @LastEditors: mojunshou 1637302775@qq.com
  24. * @LastEditTime: 2025-03-14 18:16:14
  25. * @desc:游戏界面场景控制
  26. */
  27. /** 界面唯一标识(方便服务器通过编号数据触发界面打开) */
  28. _export("UIID", UIID = /*#__PURE__*/function (UIID) {
  29. UIID[UIID["Loading"] = 1] = "Loading";
  30. UIID[UIID["Alert"] = 2] = "Alert";
  31. UIID[UIID["Confirm"] = 3] = "Confirm";
  32. UIID[UIID["Demo"] = 4] = "Demo";
  33. UIID[UIID["Start"] = 5] = "Start";
  34. UIID[UIID["Game"] = 6] = "Game";
  35. UIID[UIID["Setting"] = 7] = "Setting";
  36. UIID[UIID["GameOver"] = 8] = "GameOver";
  37. return UIID;
  38. }({}));
  39. /** 打开界面方式的配置数据 */
  40. _export("UIConfigData", UIConfigData = {
  41. [UIID.Loading]: {
  42. layer: (_crd && LayerType === void 0 ? (_reportPossibleCrUseOfLayerType({
  43. error: Error()
  44. }), LayerType) : LayerType).UI,
  45. prefab: "gui/loading/loading"
  46. },
  47. [UIID.Alert]: {
  48. layer: (_crd && LayerType === void 0 ? (_reportPossibleCrUseOfLayerType({
  49. error: Error()
  50. }), LayerType) : LayerType).Dialog,
  51. prefab: "common/prefab/alert"
  52. },
  53. [UIID.Confirm]: {
  54. layer: (_crd && LayerType === void 0 ? (_reportPossibleCrUseOfLayerType({
  55. error: Error()
  56. }), LayerType) : LayerType).Dialog,
  57. prefab: "common/prefab/confirm"
  58. },
  59. [UIID.Demo]: {
  60. layer: (_crd && LayerType === void 0 ? (_reportPossibleCrUseOfLayerType({
  61. error: Error()
  62. }), LayerType) : LayerType).UI,
  63. prefab: "gui/demo/demo"
  64. },
  65. [UIID.Start]: {
  66. layer: (_crd && LayerType === void 0 ? (_reportPossibleCrUseOfLayerType({
  67. error: Error()
  68. }), LayerType) : LayerType).UI,
  69. prefab: "gui/start/start"
  70. },
  71. [UIID.Game]: {
  72. layer: (_crd && LayerType === void 0 ? (_reportPossibleCrUseOfLayerType({
  73. error: Error()
  74. }), LayerType) : LayerType).UI,
  75. prefab: "gui/eliminate/eliminate"
  76. },
  77. [UIID.Setting]: {
  78. layer: (_crd && LayerType === void 0 ? (_reportPossibleCrUseOfLayerType({
  79. error: Error()
  80. }), LayerType) : LayerType).PopUp,
  81. prefab: "common/prefab/setting"
  82. },
  83. [UIID.GameOver]: {
  84. layer: (_crd && LayerType === void 0 ? (_reportPossibleCrUseOfLayerType({
  85. error: Error()
  86. }), LayerType) : LayerType).UI,
  87. prefab: "gui/eliminate/prefabs/GameOver"
  88. }
  89. });
  90. _cclegacy._RF.pop();
  91. _crd = false;
  92. }
  93. };
  94. });
  95. //# sourceMappingURL=ee0f22602c2f0e87be35e687a338ab67ed42e953.js.map