9223b50b0b25e34c00abbd1136311e176203d399.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, ui_base, GameUILayers, gui, ModuleDef, Layout_Lock, ani_ui, UI_Main, _dec, _class, _crd, ccclass, property, UI_Lock;
  4. function _reportPossibleCrUseOfui_base(extras) {
  5. _reporterNs.report("ui_base", "../../../core/ui/ui_base", _context.meta, extras);
  6. }
  7. function _reportPossibleCrUseOfGameUILayers(extras) {
  8. _reporterNs.report("GameUILayers", "../../../core/ui/ui", _context.meta, extras);
  9. }
  10. function _reportPossibleCrUseOfgui(extras) {
  11. _reporterNs.report("gui", "../../../core/ui/ui", _context.meta, extras);
  12. }
  13. function _reportPossibleCrUseOfModuleDef(extras) {
  14. _reporterNs.report("ModuleDef", "../../../Scripts/ModuleDef", _context.meta, extras);
  15. }
  16. function _reportPossibleCrUseOfLayout_Lock(extras) {
  17. _reporterNs.report("Layout_Lock", "./Layout_Lock", _context.meta, extras);
  18. }
  19. function _reportPossibleCrUseOfani_ui(extras) {
  20. _reporterNs.report("ani_ui", "../UI_Main/UI_Main", _context.meta, extras);
  21. }
  22. function _reportPossibleCrUseOfUI_Main(extras) {
  23. _reporterNs.report("UI_Main", "../UI_Main/UI_Main", _context.meta, extras);
  24. }
  25. function _reportPossibleCrUseOfLayout_Main(extras) {
  26. _reporterNs.report("Layout_Main", "../UI_Main/Layout_Main", _context.meta, extras);
  27. }
  28. return {
  29. setters: [function (_unresolved_) {
  30. _reporterNs = _unresolved_;
  31. }, function (_cc) {
  32. _cclegacy = _cc.cclegacy;
  33. __checkObsolete__ = _cc.__checkObsolete__;
  34. __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
  35. _decorator = _cc._decorator;
  36. }, function (_unresolved_2) {
  37. ui_base = _unresolved_2.default;
  38. }, function (_unresolved_3) {
  39. GameUILayers = _unresolved_3.GameUILayers;
  40. gui = _unresolved_3.gui;
  41. }, function (_unresolved_4) {
  42. ModuleDef = _unresolved_4.ModuleDef;
  43. }, function (_unresolved_5) {
  44. Layout_Lock = _unresolved_5.Layout_Lock;
  45. }, function (_unresolved_6) {
  46. ani_ui = _unresolved_6.ani_ui;
  47. UI_Main = _unresolved_6.UI_Main;
  48. }],
  49. execute: function () {
  50. _crd = true;
  51. _cclegacy._RF.push({}, "8fb82Ol44hAxperkef41f5v", "UI_Lock", undefined);
  52. __checkObsolete__(['_decorator', 'Component', 'Node', 'UI']);
  53. ({
  54. ccclass,
  55. property
  56. } = _decorator);
  57. _export("UI_Lock", UI_Lock = (_dec = ccclass('UI_Lock'), _dec(_class = class UI_Lock extends (_crd && ui_base === void 0 ? (_reportPossibleCrUseOfui_base({
  58. error: Error()
  59. }), ui_base) : ui_base) {
  60. constructor() {
  61. super((_crd && ModuleDef === void 0 ? (_reportPossibleCrUseOfModuleDef({
  62. error: Error()
  63. }), ModuleDef) : ModuleDef).GAME, 'ui/UI_Lock/Lock', (_crd && GameUILayers === void 0 ? (_reportPossibleCrUseOfGameUILayers({
  64. error: Error()
  65. }), GameUILayers) : GameUILayers).HUD, _crd && Layout_Lock === void 0 ? (_reportPossibleCrUseOfLayout_Lock({
  66. error: Error()
  67. }), Layout_Lock) : Layout_Lock);
  68. }
  69. async onCreated() {
  70. const layout = this.getLayout();
  71. (_crd && ani_ui === void 0 ? (_reportPossibleCrUseOfani_ui({
  72. error: Error()
  73. }), ani_ui) : ani_ui)(layout.Close_Btn.node.parent);
  74. const main_layout = (_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  75. error: Error()
  76. }), gui) : gui).get(_crd && UI_Main === void 0 ? (_reportPossibleCrUseOfUI_Main({
  77. error: Error()
  78. }), UI_Main) : UI_Main).getLayout();
  79. (_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  80. error: Error()
  81. }), gui) : gui).get(_crd && UI_Main === void 0 ? (_reportPossibleCrUseOfUI_Main({
  82. error: Error()
  83. }), UI_Main) : UI_Main).evt.emit((_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  84. error: Error()
  85. }), gui) : gui).get(_crd && UI_Main === void 0 ? (_reportPossibleCrUseOfUI_Main({
  86. error: Error()
  87. }), UI_Main) : UI_Main).evt.key.pause);
  88. this.onButtonEvent(layout.Close_Btn, () => {
  89. //关闭设置界面
  90. (_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  91. error: Error()
  92. }), gui) : gui).close(UI_Lock);
  93. (_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  94. error: Error()
  95. }), gui) : gui).get(_crd && UI_Main === void 0 ? (_reportPossibleCrUseOfUI_Main({
  96. error: Error()
  97. }), UI_Main) : UI_Main).evt.emit((_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  98. error: Error()
  99. }), gui) : gui).get(_crd && UI_Main === void 0 ? (_reportPossibleCrUseOfUI_Main({
  100. error: Error()
  101. }), UI_Main) : UI_Main).evt.key.resume);
  102. }, this);
  103. this.onButtonEvent(layout.Ensure_Btn, async () => {
  104. const ret = await chsdk.playRewardAd('解锁槽位');
  105. if (ret) {
  106. //场景中的quad消失
  107. for (let i = 0; i < 2; i++) {
  108. if (main_layout.Container.Lock_node[i].active) {
  109. main_layout.Container.Lock_node[i].active = false;
  110. main_layout.Container.unlock_Num += 1;
  111. (_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  112. error: Error()
  113. }), gui) : gui).close(UI_Lock);
  114. (_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  115. error: Error()
  116. }), gui) : gui).get(_crd && UI_Main === void 0 ? (_reportPossibleCrUseOfUI_Main({
  117. error: Error()
  118. }), UI_Main) : UI_Main).evt.emit((_crd && gui === void 0 ? (_reportPossibleCrUseOfgui({
  119. error: Error()
  120. }), gui) : gui).get(_crd && UI_Main === void 0 ? (_reportPossibleCrUseOfUI_Main({
  121. error: Error()
  122. }), UI_Main) : UI_Main).evt.key.resume);
  123. return;
  124. }
  125. }
  126. }
  127. }, this);
  128. }
  129. }) || _class));
  130. _cclegacy._RF.pop();
  131. _crd = false;
  132. }
  133. };
  134. });
  135. //# sourceMappingURL=9223b50b0b25e34c00abbd1136311e176203d399.js.map