123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4"], function (_export, _context) {
- "use strict";
- var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, BaseExp, uiMgr, Constants, Game, _dec, _class, _crd, ccclass, property, PauseUI;
- function _reportPossibleCrUseOfBaseExp(extras) {
- _reporterNs.report("BaseExp", "../core/base/BaseExp", _context.meta, extras);
- }
- function _reportPossibleCrUseOfuiMgr(extras) {
- _reporterNs.report("uiMgr", "../core/manager/UIManager", _context.meta, extras);
- }
- function _reportPossibleCrUseOfConstants(extras) {
- _reporterNs.report("Constants", "../data/Constants", _context.meta, extras);
- }
- function _reportPossibleCrUseOfGame(extras) {
- _reporterNs.report("Game", "../game/Game", _context.meta, extras);
- }
- return {
- setters: [function (_unresolved_) {
- _reporterNs = _unresolved_;
- }, function (_cc) {
- _cclegacy = _cc.cclegacy;
- __checkObsolete__ = _cc.__checkObsolete__;
- __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
- _decorator = _cc._decorator;
- }, function (_unresolved_2) {
- BaseExp = _unresolved_2.BaseExp;
- }, function (_unresolved_3) {
- uiMgr = _unresolved_3.uiMgr;
- }, function (_unresolved_4) {
- Constants = _unresolved_4.Constants;
- }, function (_unresolved_5) {
- Game = _unresolved_5.Game;
- }],
- execute: function () {
- _crd = true;
- _cclegacy._RF.push({}, "e8219vIPUdJ9rtMj9UeInkN", "PauseUI", undefined);
- __checkObsolete__(['_decorator', 'EventTouch']);
- ({
- ccclass,
- property
- } = _decorator); //暂停游戏
- _export("PauseUI", PauseUI = (_dec = ccclass('PauseUI'), _dec(_class = class PauseUI extends (_crd && BaseExp === void 0 ? (_reportPossibleCrUseOfBaseExp({
- error: Error()
- }), BaseExp) : BaseExp) {
- show() {
- this.hasAnim = true;
- this.closeOnBlank = false;
- (_crd && Game === void 0 ? (_reportPossibleCrUseOfGame({
- error: Error()
- }), Game) : Game).I.isPause = true;
- }
- /**
- * 按钮点击事件
- * @param event 事件
- * @param param 参数
- */
- onBtnClicked(event, customEventData) {
- super.onBtnClicked(event, customEventData);
- var btnName = event.target.name;
- if (btnName === 'back_main_btn') {
- //返回首页
- (_crd && Game === void 0 ? (_reportPossibleCrUseOfGame({
- error: Error()
- }), Game) : Game).I.isGameOver = true;
- (_crd && uiMgr === void 0 ? (_reportPossibleCrUseOfuiMgr({
- error: Error()
- }), uiMgr) : uiMgr).pop((_crd && Constants === void 0 ? (_reportPossibleCrUseOfConstants({
- error: Error()
- }), Constants) : Constants).mainUIs.main);
- } else if (btnName === 'continue_btn') {
- (_crd && uiMgr === void 0 ? (_reportPossibleCrUseOfuiMgr({
- error: Error()
- }), uiMgr) : uiMgr).hide((_crd && Constants === void 0 ? (_reportPossibleCrUseOfConstants({
- error: Error()
- }), Constants) : Constants).popUIs.pauseUI, () => {
- (_crd && Game === void 0 ? (_reportPossibleCrUseOfGame({
- error: Error()
- }), Game) : Game).I.isPause = false;
- });
- }
- }
- }) || _class));
- _cclegacy._RF.pop();
- _crd = false;
- }
- };
- });
- //# sourceMappingURL=29b4d1ed31a2914df12ad9f2f24b9c5f514b6a50.js.map
|