System.register("chunks:///_virtual/Layout_UI_Notify.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Prefab, Component; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Prefab = module.Prefab; Component = module.Component; }], execute: function () { var _dec, _dec2, _class, _class2, _descriptor; cclegacy._RF.push({}, "5d1b6Q2UX5OU7Ky2+eYjUZG", "Layout_UI_Notify", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_UI_Notify = exports('Layout_UI_Notify', (_dec = ccclass('Layout_UI_Notify'), _dec2 = property(Prefab), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_UI_Notify, _Component); function Layout_UI_Notify() { var _this; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = _Component.call.apply(_Component, [this].concat(args)) || this; _initializerDefineProperty(_this, "info_prefab", _descriptor, _assertThisInitialized(_this)); return _this; } return Layout_UI_Notify; }(Component), _descriptor = _applyDecoratedDescriptor(_class2.prototype, "info_prefab", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_UIAlert.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Label, Button, Component; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Label = module.Label; Button = module.Button; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3; cclegacy._RF.push({}, "6ecd6IlzI9HPLIIqQ4aHRcQ", "Layout_UIAlert", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_UIAlert = exports('Layout_UIAlert', (_dec = ccclass('Layout_UIAlert'), _dec2 = property(Label), _dec3 = property(Button), _dec4 = property(Button), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_UIAlert, _Component); function Layout_UIAlert() { var _this; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = _Component.call.apply(_Component, [this].concat(args)) || this; _initializerDefineProperty(_this, "title", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "btnOK", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "btnCancel", _descriptor3, _assertThisInitialized(_this)); return _this; } return Layout_UIAlert; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "title", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "btnOK", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "btnCancel", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_UIWaiting.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Node, Label, Component; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Node = module.Node; Label = module.Label; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2; cclegacy._RF.push({}, "cf096mKKypBc5BOy11i+5NG", "Layout_UIWaiting", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_UIWaiting = exports('Layout_UIWaiting', (_dec = ccclass('tgxLayout_UIWaiting'), _dec2 = property(Node), _dec3 = property(Label), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_UIWaiting, _Component); function Layout_UIWaiting() { var _this; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = _Component.call.apply(_Component, [this].concat(args)) || this; _initializerDefineProperty(_this, "loadingIcon", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "loadingTxt", _descriptor2, _assertThisInitialized(_this)); return _this; } return Layout_UIWaiting; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "loadingIcon", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "loadingTxt", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/module_basic", ['./Layout_UIAlert.ts', './UIAlert.ts', './Layout_UI_Notify.ts', './UINotify.ts', './Layout_UIWaiting.ts', './UIWaiting.ts'], function () { return { setters: [null, null, null, null, null, null], execute: function () {} }; }); System.register("chunks:///_virtual/UIAlert.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui.ts', './Wait.ts', './ModuleDef2.ts', './Layout_UIAlert.ts', './ui_base.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, GameUILayers, gui, get_new_wait, ModuleDef, Layout_UIAlert, ui_base; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { get_new_wait = module.default; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Layout_UIAlert = module.Layout_UIAlert; }, function (module) { ui_base = module.default; }], execute: function () { cclegacy._RF.push({}, "7e91f8G1GtMQ4+Lvts9iEeD", "UIAlert", undefined); var UIAlert = exports('UIAlert', /*#__PURE__*/function (_ui_base) { _inheritsLoose(UIAlert, _ui_base); function UIAlert() { var _this; _this = _ui_base.call(this, ModuleDef.BASIC, 'ui_alert/UI_Alert', GameUILayers.ALERT, Layout_UIAlert) || this; _this.wait = get_new_wait(); return _this; } /** * 显示一个选择提示 * @param options title?:string 标题,content?:string内容,ok?:string 确认字,cancel?:string 取消字,show?:boolean是否显示取消 * @returns 是否选择确定 */ UIAlert.show = /*#__PURE__*/ function () { var _show = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options) { var ui; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 2; return gui.show(UIAlert); case 2: ui = _context.sent; _context.next = 5; return ui.await_choose(options); case 5: return _context.abrupt("return", _context.sent); case 6: case "end": return _context.stop(); } }, _callee); })); function show(_x) { return _show.apply(this, arguments); } return show; }(); var _proto = UIAlert.prototype; _proto.onCreated = function onCreated() { var _this2 = this; var layout = this.getLayout(); this.onButtonEvent(layout.btnOK, function () { _this2.wait.resolve(true); _this2.close(); }); this.onButtonEvent(layout.btnCancel, function () { _this2.wait.resolve(false); _this2.close(); }); }; _proto.onDispose = function onDispose() { this.wait.resolve(false); this.wait.dispose(); this.wait = null; }; _proto.await_choose = /*#__PURE__*/function () { var _await_choose = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(options) { var layout; return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: layout = this.getLayout(); layout.title.string = options.title || '提示'; layout.btnCancel.node.active = options.show; return _context2.abrupt("return", this.wait.wait()); case 4: case "end": return _context2.stop(); } }, _callee2, this); })); function await_choose(_x2) { return _await_choose.apply(this, arguments); } return await_choose; }(); return UIAlert; }(ui_base)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UINotify.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Layout_UI_Notify.ts', './ui.ts', './ModuleDef.ts', './ui_base.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, instantiate, Label, math, Layout_UI_Notify, GameUILayers, gui, ModuleDef, ui_base; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; instantiate = module.instantiate; Label = module.Label; math = module.math; }, function (module) { Layout_UI_Notify = module.Layout_UI_Notify; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { ui_base = module.default; }], execute: function () { cclegacy._RF.push({}, "2e622idLyVJBYf//0497gj2", "UINotify", undefined); var NotifyInfo = /*#__PURE__*/function () { function NotifyInfo(node, parent, txt) { //正常大小 this.time = void 0; this.node = void 0; this.state = void 0; this._state_time = 0; this.time = NotifyInfo.time; this.node = node; this.state = 0; this._state_time = 0; var label = node.getComponentInChildren(Label); label.string = txt; node.parent = parent; node.setPosition(0, NotifyInfo.init_y, 0); node.setScale(NotifyInfo.sc_state0, NotifyInfo.sc_state0, NotifyInfo.sc_state0); node.active = true; } var _proto = NotifyInfo.prototype; _proto.up = function up() { // this.node.setPosition(this.node.position.x, this.node.position.y + NotifyInfo.up_y, this.node.position.z); }; _proto.run = function run(dt) { this.time -= dt; if (this.time <= 0) { this.node.destroy(); this.node = null; return true; } else if (this.time < 0.5) ;else { if (this.state === 0) { this._state_time += dt; var ratio = this._state_time / NotifyInfo.sc_state0_time; if (ratio >= 1) { this.state = 1; this._state_time = 0; this.node.setScale(NotifyInfo.sc_state1, NotifyInfo.sc_state1, NotifyInfo.sc_state1); } else { var sc = math.lerp(NotifyInfo.sc_state0, NotifyInfo.sc_state1, ratio); this.node.setScale(sc, sc, sc); } } else if (this.state === 1) { this._state_time += dt; var _ratio = this._state_time / NotifyInfo.sc_state1_time; if (_ratio >= 1) { this.state = 2; this._state_time = 0; this.node.setScale(NotifyInfo.sc_state2, NotifyInfo.sc_state2, NotifyInfo.sc_state2); } else { var _sc = math.lerp(NotifyInfo.sc_state1, NotifyInfo.sc_state2, _ratio); this.node.setScale(_sc, _sc, _sc); } } } return false; }; return NotifyInfo; }(); NotifyInfo.time = 2; NotifyInfo.init_y = 120; NotifyInfo.up_y = 80; //上升一格 NotifyInfo.move_speed = 880; //向上移动速度 NotifyInfo.sc_state0 = 0.8; //变小大小 NotifyInfo.sc_state0_time = 0.22; NotifyInfo.sc_state1 = 1.2; //变大大小 NotifyInfo.sc_state1_time = 0.41; NotifyInfo.sc_state2 = 1; var UINotify = exports('UINotify', /*#__PURE__*/function (_ui_base) { _inheritsLoose(UINotify, _ui_base); function UINotify() { var _this; _this = _ui_base.call(this, ModuleDef.BASIC, 'ui_notify/UI_Notify', GameUILayers.NOTICE, Layout_UI_Notify) || this; _this._info_prefab = void 0; _this.notifys = []; return _this; } UINotify.show = /*#__PURE__*/function () { var _show = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(msg) { var ui; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: ui = gui.get(UINotify); if (ui) { _context.next = 5; break; } _context.next = 4; return gui.show(UINotify); case 4: ui = _context.sent; case 5: ui.newNotify(msg); case 6: case "end": return _context.stop(); } }, _callee); })); function show(_x) { return _show.apply(this, arguments); } return show; }(); var _proto2 = UINotify.prototype; _proto2.onCreated = function onCreated() { var layout = this.getLayout(); this._info_prefab = layout.info_prefab; }; _proto2.newNotify = function newNotify(txt) { var info = new NotifyInfo(instantiate(this._info_prefab), this.node, txt); for (var i = this.notifys.length - 1; i >= 0; i--) this.notifys[i].up(); this.notifys.push(info); }; _proto2.onUpdate = function onUpdate(dt) { for (var i = this.notifys.length - 1; i >= 0; i--) if (this.notifys[i].run(dt)) this.notifys.splice(i, 1); }; _proto2.dispose = function dispose() { this._info_prefab = null; }; return UINotify; }(ui_base)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UIWaiting.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui.ts', './ModuleDef2.ts', './Layout_UIWaiting.ts', './ui_base.ts'], function (exports) { var _inheritsLoose, cclegacy, GameUILayers, gui, ModuleDef, Layout_UIWaiting, ui_base; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; }, function (module) { cclegacy = module.cclegacy; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Layout_UIWaiting = module.Layout_UIWaiting; }, function (module) { ui_base = module.default; }], execute: function () { cclegacy._RF.push({}, "0dda6mQNCdCo5GQ959qF/Db", "UIWaiting", undefined); var loadingTxtArr = ['.', '..', '...']; var _inst = null; var UIWaiting = exports('UIWaiting', /*#__PURE__*/function (_ui_base) { _inheritsLoose(UIWaiting, _ui_base); function UIWaiting() { var _this; _this = _ui_base.call(this, ModuleDef.BASIC, 'ui_waiting/UI_Waiting', GameUILayers.LOADING, Layout_UIWaiting) || this; _this._contentStr = 'Loading'; return _this; } var _proto = UIWaiting.prototype; _proto.onCreated = function onCreated() {}; UIWaiting.show = function show(contentStr) { if (!_inst) { gui.show(UIWaiting).then(function (ui) { _inst = ui; }); } _inst._contentStr = contentStr || 'Loading'; return _inst; }; UIWaiting.hide = function hide() { if (_inst) { _inst.close(); _inst = null; } }; _proto.onUpdate = function onUpdate() { var layout = this.layout; if (layout.loadingIcon) { var euler = layout.loadingIcon.eulerAngles; var rot = Date.now() / 1000 * 90; layout.loadingIcon.setRotationFromEuler(euler.x, euler.y, rot); } if (layout.loadingTxt) { var idx = Math.floor(Date.now() / 500) % 3; layout.loadingTxt.string = this._contentStr + loadingTxtArr[idx]; } }; _proto.onDispose = function onDispose() { _inst = null; }; return UIWaiting; }(ui_base)); cclegacy._RF.pop(); } }; }); (function(r) { r('virtual:///prerequisite-imports/module_basic', 'chunks:///_virtual/module_basic'); })(function(mid, cid) { System.register(mid, [cid], function (_export, _context) { return { setters: [function(_m) { var _exportObj = {}; for (var _key in _m) { if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key]; } _export(_exportObj); }], execute: function () { } }; }); });