System.register("chunks:///_virtual/Container_Manager.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ch_util.ts', './ui.ts', './table_level.ts', './Hall.ts', './UI_Idioms.ts', './UI_Main.ts', './CreateIdiom.ts', './Cube_Infor.ts', './GameCtl.ts', './ch.ts', './table_idiom_order.ts', './table_idiom_unorder_1_3.ts', './table_idiom_unorder_2_2.ts', './table_idiom_unorder_3_1.ts', './table_level_2.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createForOfIteratorHelperLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Prefab, NodePool, instantiate, Component, RigidBody, BoxCollider, Quat, tween, Vec3, ch_util, gui, table_level, Hall, UI_Idioms, UI_Main, CreateIdiom, Cube_Infor, Cube_State, GameCtl, ch, table_idiom_order, table_idiom_unorder_1_3, table_idiom_unorder_2_2, table_idiom_unorder_3_1, table_level_2; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Node = module.Node; Prefab = module.Prefab; NodePool = module.NodePool; instantiate = module.instantiate; Component = module.Component; RigidBody = module.RigidBody; BoxCollider = module.BoxCollider; Quat = module.Quat; tween = module.tween; Vec3 = module.Vec3; }, function (module) { ch_util = module.default; }, function (module) { gui = module.gui; }, function (module) { table_level = module.table_level; }, function (module) { Hall = module.Hall; }, function (module) { UI_Idioms = module.UI_Idioms; }, function (module) { UI_Main = module.UI_Main; }, function (module) { CreateIdiom = module.CreateIdiom; }, function (module) { Cube_Infor = module.Cube_Infor; Cube_State = module.Cube_State; }, function (module) { GameCtl = module.GameCtl; }, function (module) { ch = module.ch; }, function (module) { table_idiom_order = module.table_idiom_order; }, function (module) { table_idiom_unorder_1_3 = module.table_idiom_unorder_1_3; }, function (module) { table_idiom_unorder_2_2 = module.table_idiom_unorder_2_2; }, function (module) { table_idiom_unorder_3_1 = module.table_idiom_unorder_3_1; }, function (module) { table_level_2 = module.table_level_2; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; cclegacy._RF.push({}, "e84de8IXbZDjZbYlbQpevuI", "Container_Manager", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Container_Manager = exports('Container_Manager', (_dec = ccclass('Container_Manager'), _dec2 = property([Node]), _dec3 = property([Prefab]), _dec4 = property(CreateIdiom), _dec5 = property([Node]), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Container_Manager, _Component); function Container_Manager() { 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; _this.canTouch = false; _initializerDefineProperty(_this, "Lock_node", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "prefabs", _descriptor2, _assertThisInitialized(_this)); _this.level_config = null; //关卡配置 _this.level2_config = null; //第二关配置 _this.config = null; //有规律的成语库 _this.config_1_3 = null; //无规律1+3 _this.config_2_2 = null; //无规律2+2 _this.config_3_1 = null; //无规律3+1 _this.idioms = []; //生成的成语 _this.index = []; //生成的成语角标,避免生成重复成语 _initializerDefineProperty(_this, "create_node", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "nodes", _descriptor4, _assertThisInitialized(_this)); //位置节点 用于成语放入 _this.node_isIdiom = new Array(9).fill(false); _this.unlock_Num = 7; _this.is_Show_UI_Lock = false; _this.idiom_combine = new Map(); _this.Cube_Pool = new NodePool(); _this.nodeReferences = []; // 额外维护的节点引用数组 _this.count = 0; return _this; } var _proto = Container_Manager.prototype; _proto.instantiateCube = function instantiateCube() { for (var i = 0; i < this.idioms.length * 2; i++) { var idiomIndex = Math.floor(i / 2); var isPiece1 = i % 2 === 0; var Text_Length = isPiece1 ? this.idioms[idiomIndex].piece_1_word.length : this.idioms[idiomIndex].piece_2_word.length; var newCube = instantiate(this.prefabs[Text_Length - 1]); newCube.active = true; // 初始时设置为非激活状态 // 按顺序为节点赋值文字内容 newCube.getComponent(Cube_Infor).Text = isPiece1 ? this.idioms[idiomIndex].piece_1_word : this.idioms[idiomIndex].piece_2_word; console.log("生成第" + i + "个节点:" + newCube.getComponent(Cube_Infor).Text); this.Cube_Pool.put(newCube); } }; _proto.getCube = function getCube() { console.log(this.Cube_Pool.size()); var cube = this.Cube_Pool.get(); if (cube) cube.active = true; return cube; } // 将方块回收到对象池 ; _proto.recycleCube = function recycleCube(cube) { cube.active = false; // 将方块设置为非激活状态 this.Cube_Pool.put(cube); } //清空对象池 ; _proto.clearCubePool = function clearCubePool() { this.Cube_Pool.clear(); } //合成规则导入 ; _proto.start = function start() { this.config = table_idiom_order.getList(); this.config_1_3 = table_idiom_unorder_1_3.getList(); this.config_2_2 = table_idiom_unorder_2_2.getList(); this.config_3_1 = table_idiom_unorder_3_1.getList(); console.log(this.config.length); console.log(this.config_1_3.length); console.log(this.config_2_2.length); console.log(this.config_3_1.length); this.level_config = table_level.getList(); this.level2_config = table_level_2.getList(); // if (this.level_config.length === 5) { // console.log("关卡配置导入成功"); // } this.level_idioms(); }; _proto.update = function update(deltaTime) {}; _proto.checkIdiom_Combine = function checkIdiom_Combine(matchedcube2, outMatchedCubes) { var _this2 = this; if (this.idiom_combine.size < 2) { return false; // 至少需要两个方块 } var _loop = function _loop() { var cube = _step.value; // 遍历 idioms 列表,检查是否匹配成语 var matchedIdiom = _this2.idioms.find(function (idiom) { return idiom.piece_1_word === cube.Text && idiom.piece_2_word === matchedcube2.Text; }); if (matchedIdiom) { // 匹配成功 outMatchedCubes.push(cube, matchedcube2); _this2.nodeReferences = _this2.nodeReferences.filter(function (el) { return el !== matchedcube2.node && el !== cube.node; }); console.log("成功拼成成语: " + matchedIdiom.piece_1_word + matchedIdiom.piece_2_word); return { v: true }; } // 再检查逆序组合是否匹配 var reverseMatchedIdiom = _this2.idioms.find(function (idiom) { return idiom.piece_1_word === matchedcube2.Text && idiom.piece_2_word === cube.Text; }); if (reverseMatchedIdiom) { // 匹配成功 outMatchedCubes.push(matchedcube2, cube); _this2.nodeReferences = _this2.nodeReferences.filter(function (el) { return el !== matchedcube2.node && el !== cube.node; }); console.log("成功拼成成语: " + reverseMatchedIdiom.piece_1_word + reverseMatchedIdiom.piece_2_word); return { v: true }; } }, _ret; for (var _iterator = _createForOfIteratorHelperLoose(this.idiom_combine.keys()), _step; !(_step = _iterator()).done;) { _ret = _loop(); if (_ret) return _ret.v; } return false; // 没有匹配到成语 }; _proto.level_idioms = /*#__PURE__*/function () { var _level_idioms = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var _this3 = this; var level, str2, idiom_type_2, selectedIdioms, rule, _this$idioms, _loop2, i, _loop3, _i, str1, idiom_type_1, _str, _idiom_type_, count, _selectedIdioms, _rule, _this$idioms2, filteredIdioms, _i4, rand, selectedIdiom, _filteredIdioms, _i5, _rand, _selectedIdiom, _filteredIdioms2, _i6, _rand2, _selectedIdiom2, _filteredIdioms3, _i7, _rand3, _selectedIdiom3, _filteredIdioms4, _i8, _rand4, _selectedIdiom4, _filteredIdioms5, _i9, _rand5, _selectedIdiom5; return _regeneratorRuntime().wrap(function _callee$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: this.Lock_node.forEach(function (node) { node.active = true; }); this.unlock_Num = 7; this.is_Show_UI_Lock = false; this.canTouch = false; level = Hall.getInstance().player.get_max_floor(); this.clearCubePool(); if (!(level === 0)) { _context3.next = 16; break; } str2 = this.level_config[level].idiom_type_2; idiom_type_2 = str2.split("_"); console.log("idiom_type_2:", idiom_type_2); selectedIdioms = {}; [].concat(idiom_type_2).forEach(function (rule) { var filteredIdioms = _this3.config.filter(function (item) { return item.piece_2_word === rule; }); if (filteredIdioms.length === 0) { filteredIdioms = _this3.config_2_2.filter(function (item) { return item.piece_2_word === rule; }); } console.log("\u7B5B\u90092 " + rule + " \u540E\u7684\u6210\u8BED\uFF1A", filteredIdioms); selectedIdioms[rule] = filteredIdioms; }); for (rule in selectedIdioms) { if (selectedIdioms.hasOwnProperty(rule)) { (_this$idioms = this.idioms).push.apply(_this$idioms, selectedIdioms[rule]); } } console.log("最终选中的成语:", this.idioms); _context3.next = 51; break; case 16: if (!(level === 1)) { _context3.next = 33; break; } _loop2 = /*#__PURE__*/_regeneratorRuntime().mark(function _loop2(i) { var _this3$idioms; var filteredIdiom; return _regeneratorRuntime().wrap(function _loop2$(_context) { while (1) switch (_context.prev = _context.next) { case 0: filteredIdiom = _this3.config.filter(function (item) { return item.idiom == _this3.level2_config[i].idiom; }); (_this3$idioms = _this3.idioms).push.apply(_this3$idioms, filteredIdiom); case 2: case "end": return _context.stop(); } }, _loop2); }); i = 0; case 19: if (!(i < 30)) { _context3.next = 24; break; } return _context3.delegateYield(_loop2(i), "t0", 21); case 21: i++; _context3.next = 19; break; case 24: _loop3 = /*#__PURE__*/_regeneratorRuntime().mark(function _loop3(_i) { var _this3$idioms2; var filteredIdiom; return _regeneratorRuntime().wrap(function _loop3$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: filteredIdiom = _this3.config_2_2.filter(function (item) { return item.idiom == _this3.level2_config[_i].idiom; }); (_this3$idioms2 = _this3.idioms).push.apply(_this3$idioms2, filteredIdiom); case 2: case "end": return _context2.stop(); } }, _loop3); }); _i = 30; case 26: if (!(_i < 40)) { _context3.next = 31; break; } return _context3.delegateYield(_loop3(_i), "t1", 28); case 28: _i++; _context3.next = 26; break; case 31: _context3.next = 51; break; case 33: // 获取当前层级的筛选条件 str1 = this.level_config[level].idiom_type_1; idiom_type_1 = str1.split("_"); // 分割成数组 console.log("idiom_type_1:", idiom_type_1); _str = this.level_config[level].idiom_type_2; _idiom_type_ = _str.split("_"); // 分割成数组 console.log("idiom_type_2:", _idiom_type_); count = this.level_config[level].count / (idiom_type_1.length + _idiom_type_.length); // 初始化保存结果的数组 _selectedIdioms = {}; // 遍历 idiom_type_1的每个规律 [].concat(idiom_type_1).forEach(function (rule) { // 从 config 中筛选符合当前规律的成语 var filteredIdioms = _this3.config.filter(function (item) { return item.piece_1_word === rule; }); console.log("\u7B5B\u9009 " + rule + " \u540E\u7684\u6210\u8BED\uFF1A", filteredIdioms); if (filteredIdioms.length < count) { console.error("\u89C4\u5F8B " + rule + " \u7684\u6210\u8BED\u6570\u91CF\u4E0D\u8DB3\uFF0C\u4EC5\u6709 " + filteredIdioms.length + " \u4E2A"); } else { console.log("\u89C4\u5F8B " + rule + " \u7684\u6210\u8BED\u6570\u91CF\uFF1A" + filteredIdioms.length); var selected = []; // 随机选择不重复的成语 for (var _i2 = 0; _i2 < count;) { var rand = ch_util.getRandomInt(0, filteredIdioms.length - 1); // 确保 rand 在有效范围内 var selectedIdiom = filteredIdioms[rand]; // 从数组中移除已选成语,避免再次选择 filteredIdioms.splice(rand, 1); // 添加到已选数组中 selected.push(selectedIdiom); console.log("\u9009\u4E2D\u7684\u6210\u8BED\uFF1A" + selectedIdiom.idiom); _i2++; } _selectedIdioms[rule] = selected; } }); // 遍历idiom_type_2 的每个规律 [].concat(_idiom_type_).forEach(function (rule) { // 从 config 中筛选符合当前规律的成语 var filteredIdioms = _this3.config.filter(function (item) { return item.piece_2_word === rule; }); console.log("\u7B5B\u90092 " + rule + " \u540E\u7684\u6210\u8BED\uFF1A", filteredIdioms); if (filteredIdioms.length < count) { console.error("\u89C4\u5F8B2 " + rule + " \u7684\u6210\u8BED\u6570\u91CF\u4E0D\u8DB3\uFF0C\u4EC5\u6709 " + filteredIdioms.length + " \u4E2A"); } else { console.log("\u89C4\u5F8B2 " + rule + " \u7684\u6210\u8BED\u6570\u91CF\uFF1A" + filteredIdioms.length); var selected = []; // 随机选择不重复的成语 for (var _i3 = 0; _i3 < count;) { var rand = ch_util.getRandomInt(0, filteredIdioms.length - 1); // 确保 rand 在有效范围内 var selectedIdiom = filteredIdioms[rand]; // 从数组中移除已选成语,避免再次选择 filteredIdioms.splice(rand, 1); // 添加到已选数组中 selected.push(selectedIdiom); console.log("\u9009\u4E2D\u7684\u6210\u8BED\uFF1A" + selectedIdiom.idiom); _i3++; } _selectedIdioms[rule] = selected; } }); // 将所有选中的成语合并到 idioms 数组 for (_rule in _selectedIdioms) { if (_selectedIdioms.hasOwnProperty(_rule)) { (_this$idioms2 = this.idioms).push.apply(_this$idioms2, _selectedIdioms[_rule]); // 使用扩展运算符合并成语 } } // if (this.level_config[level].easy_1_3 > 0) { filteredIdioms = this.config_1_3.filter(function (item) { return item.difficulty === "easy"; }); for (_i4 = 0; _i4 < this.level_config[level].easy_1_3; _i4++) { rand = ch_util.getRandomInt(0, filteredIdioms.length - 1); selectedIdiom = filteredIdioms[rand]; filteredIdioms.splice(rand, 1); this.idioms.push(selectedIdiom); } } if (this.level_config[level].hard_1_3 > 0) { _filteredIdioms = this.config_1_3.filter(function (item) { return item.difficulty === "hard"; }); for (_i5 = 0; _i5 < this.level_config[level].hard_1_3; _i5++) { _rand = ch_util.getRandomInt(0, _filteredIdioms.length - 1); _selectedIdiom = _filteredIdioms[_rand]; _filteredIdioms.splice(_rand, 1); this.idioms.push(_selectedIdiom); } } if (this.level_config[level].easy_2_2 > 0) { _filteredIdioms2 = this.config_2_2.filter(function (item) { return item.difficulty === "easy"; }); for (_i6 = 0; _i6 < this.level_config[level].easy_2_2; _i6++) { _rand2 = ch_util.getRandomInt(0, _filteredIdioms2.length - 1); _selectedIdiom2 = _filteredIdioms2[_rand2]; _filteredIdioms2.splice(_rand2, 1); this.idioms.push(_selectedIdiom2); } } if (this.level_config[level].hard_2_2 > 0) { _filteredIdioms3 = this.config_2_2.filter(function (item) { return item.difficulty === "hard"; }); for (_i7 = 0; _i7 < this.level_config[level].hard_2_2; _i7++) { _rand3 = ch_util.getRandomInt(0, _filteredIdioms3.length - 1); _selectedIdiom3 = _filteredIdioms3[_rand3]; _filteredIdioms3.splice(_rand3, 1); this.idioms.push(_selectedIdiom3); } } if (this.level_config[level].easy_3_1 > 0) { _filteredIdioms4 = this.config_3_1.filter(function (item) { return item.difficulty === "easy"; }); for (_i8 = 0; _i8 < this.level_config[level].easy_3_1; _i8++) { _rand4 = ch_util.getRandomInt(0, _filteredIdioms4.length - 1); _selectedIdiom4 = _filteredIdioms4[_rand4]; _filteredIdioms4.splice(_rand4, 1); this.idioms.push(_selectedIdiom4); } } if (this.level_config[level].hard_1_3 > 0) { _filteredIdioms5 = this.config_1_3.filter(function (item) { return item.difficulty === "hard"; }); for (_i9 = 0; _i9 < this.level_config[level].hard_1_3; _i9++) { _rand5 = ch_util.getRandomInt(0, _filteredIdioms5.length - 1); _selectedIdiom5 = _filteredIdioms5[_rand5]; _filteredIdioms5.splice(_rand5, 1); this.idioms.push(_selectedIdiom5); } } console.log("最终选中的成语:", this.idioms); // 打印最终的成语数组 case 51: this.count = this.level_config[level].total; _context3.next = 54; return this.instantiateCube(); case 54: _context3.next = 56; return gui.show(UI_Idioms); case 56: _context3.next = 58; return this.create_node.nodeMoving(); case 58: gui.show(UI_Main); case 59: case "end": return _context3.stop(); } }, _callee, this); })); function level_idioms() { return _level_idioms.apply(this, arguments); } return level_idioms; }() //消除一组 ; _proto.eliminate = function eliminate() { var _this4 = this; //先判断槽内是否有方块,如果有,匹配槽内最前面一个与散落方块中的 var cube; for (var _iterator2 = _createForOfIteratorHelperLoose(this.idiom_combine), _step2; !(_step2 = _iterator2()).done;) { var _step2$value = _step2.value, key = _step2$value[0], value = _step2$value[1]; if (value === 0) { cube = key; break; } } //槽中有方块 if (cube) { var originalReferences = [].concat(this.nodeReferences); var _loop4 = function _loop4() { var element = _step3.value; if (_this4.idioms.find(function (c) { return c.idiom == element.getComponent(Cube_Infor).Text + cube.Text; }) && element.getComponent(Cube_Infor) !== cube) { console.log(element.getComponent(Cube_Infor).Text); element.getComponent(Cube_Infor).state = Cube_State.wait; element.getComponent(Cube_Infor).rigidbody.type = RigidBody.Type.STATIC; element.getComponent(BoxCollider).enabled = false; var targetRotation = new Quat(); Quat.fromEuler(targetRotation, -90, 0, 0); element.rotation = targetRotation; // 使用filter过滤掉当前元素 GameCtl.instance.combine_ani(element.getComponent(Cube_Infor), cube); _this4.nodeReferences = _this4.nodeReferences.filter(function (el) { return el !== element && el !== cube.node; }); return 0; // break } else if (_this4.idioms.find(function (c) { return c.idiom == cube.Text + element.getComponent(Cube_Infor).Text; }) && element.getComponent(Cube_Infor) !== cube) { console.log(element.getComponent(Cube_Infor).Text); element.getComponent(Cube_Infor).state = Cube_State.wait; element.getComponent(Cube_Infor).rigidbody.type = RigidBody.Type.STATIC; element.getComponent(BoxCollider).enabled = false; var _targetRotation = new Quat(); Quat.fromEuler(_targetRotation, -90, 0, 0); element.rotation = _targetRotation; GameCtl.instance.combine_ani(cube, element.getComponent(Cube_Infor)); _this4.nodeReferences = _this4.nodeReferences.filter(function (el) { return el !== element && el !== cube.node; }); return 0; // break } }, _ret2; for (var _iterator3 = _createForOfIteratorHelperLoose(originalReferences), _step3; !(_step3 = _iterator3()).done;) { _ret2 = _loop4(); if (_ret2 === 0) break; } } //槽中没有方块 else { var flag = false; var originalReferences1 = [].concat(this.nodeReferences); var originalReferences2 = [].concat(this.nodeReferences); var _loop5 = function _loop5() { var element1 = _step4.value; var _loop6 = function _loop6() { var element2 = _step5.value; if (_this4.idioms.find(function (c) { return c.idiom == element1.getComponent(Cube_Infor).Text + element2.getComponent(Cube_Infor).Text; })) { element1.getComponent(Cube_Infor).state = Cube_State.wait; element1.getComponent(Cube_Infor).rigidbody.type = RigidBody.Type.STATIC; var targetRotation = new Quat(); Quat.fromEuler(targetRotation, -90, 0, 0); element1.rotation = targetRotation; element2.getComponent(Cube_Infor).state = Cube_State.wait; element2.getComponent(Cube_Infor).rigidbody.type = RigidBody.Type.STATIC; element2.getComponent(BoxCollider).enabled = false; element2.rotation = targetRotation; // 使用filter过滤掉当前元素 GameCtl.instance.combine_ani(element1.getComponent(Cube_Infor), element2.getComponent(Cube_Infor)); _this4.nodeReferences = _this4.nodeReferences.filter(function (el) { return el !== element1 && el !== element2; }); flag = true; return 0; // break } if (_this4.idioms.find(function (c) { return c.idiom == element2.getComponent(Cube_Infor).Text + element1.getComponent(Cube_Infor).Text; })) { element1.getComponent(Cube_Infor).state = Cube_State.wait; element1.getComponent(Cube_Infor).rigidbody.type = RigidBody.Type.STATIC; var _targetRotation2 = new Quat(); Quat.fromEuler(_targetRotation2, -90, 0, 0); element1.rotation = _targetRotation2; element2.getComponent(Cube_Infor).state = Cube_State.wait; element2.getComponent(Cube_Infor).rigidbody.type = RigidBody.Type.STATIC; element2.getComponent(BoxCollider).enabled = false; element2.rotation = _targetRotation2; // 使用filter过滤掉当前元素 GameCtl.instance.combine_ani(element2.getComponent(Cube_Infor), element1.getComponent(Cube_Infor)); _this4.nodeReferences = _this4.nodeReferences.filter(function (el) { return el !== element1 && el !== element2; }); flag = true; return 0; // break } }, _ret3; for (var _iterator5 = _createForOfIteratorHelperLoose(originalReferences2), _step5; !(_step5 = _iterator5()).done;) { _ret3 = _loop6(); if (_ret3 === 0) break; } if (flag === true) { return 1; // break } }; for (var _iterator4 = _createForOfIteratorHelperLoose(originalReferences1), _step4; !(_step4 = _iterator4()).done;) { if (_loop5()) break; } } }; _proto.shuffle = /*#__PURE__*/function () { var _shuffle = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { var _this5 = this; return _regeneratorRuntime().wrap(function _callee2$(_context4) { while (1) switch (_context4.prev = _context4.next) { case 0: // 回收所有非槽内的活跃节点 this.nodeReferences.forEach(function (node) { var cubeInfo = node.getComponent(Cube_Infor); if (cubeInfo.state === Cube_State.live) { var targetRotation = new Quat(); Quat.fromEuler(targetRotation, -90, 0, 0); node.rotation = targetRotation; _this5.recycleCube(node); // 回收到池中 } }); this.shufflePool(); // 等待节点移动完成后执行后续逻辑 _context4.next = 4; return this.create_node.nodeMoving(); case 4: case "end": return _context4.stop(); } }, _callee2, this); })); function shuffle() { return _shuffle.apply(this, arguments); } return shuffle; }() //清空槽子 ; _proto.Empty = function Empty() { var _this6 = this; var _loop7 = function _loop7() { var idiom = _step6.value; idiom.state = Cube_State.live; var posX = ch.util.getRandom(-3, 3); var posZ = ch.util.getRandom(-3, 3); tween(idiom.node).to(0.5, { position: new Vec3(posX, _this6.create_node.node.position.y + 5, posZ) }).call(function () { idiom.rigidbody.type = RigidBody.Type.DYNAMIC; }).start(); //idiom.node.position = ; }; for (var _iterator6 = _createForOfIteratorHelperLoose(this.idiom_combine.keys()), _step6; !(_step6 = _iterator6()).done;) { _loop7(); } this.idiom_combine.clear(); this.node_isIdiom.fill(false); gui.get(UI_Idioms).all_light_Hide(); }; _proto.AddTime = function AddTime() { var layout = gui.get(UI_Main).getLayout(); layout.time += 3; }; _proto.shufflePool = function shufflePool() { var _this7 = this; var poolSize = this.Cube_Pool.size(); var tempArray = []; // 从池中取出所有节点到临时数组 for (var i = 0; i < poolSize; i++) { tempArray.push(this.Cube_Pool.get()); } // 只打乱部分节点(以 50% 为例,可调整比例) var shuffleCount = Math.ceil(poolSize * 0.5); // 只打乱前 50% for (var _i10 = 0; _i10 < shuffleCount; _i10++) { var randomIndex = Math.floor(Math.random() * poolSize); var _ref = [tempArray[randomIndex], tempArray[_i10]]; tempArray[_i10] = _ref[0]; tempArray[randomIndex] = _ref[1]; } // 将打乱的节点放回池中 tempArray.forEach(function (cube) { return _this7.Cube_Pool.put(cube); }); }; return Container_Manager; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Lock_node", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "prefabs", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "create_node", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "nodes", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/CreateIdiom.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Cube_Infor.ts', './Container_Manager.ts'], function (exports) { var _inheritsLoose, cclegacy, _decorator, find, Vec3, tween, director, Component, Cube_Infor, Cube_State, Container_Manager; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; find = module.find; Vec3 = module.Vec3; tween = module.tween; director = module.director; Component = module.Component; }, function (module) { Cube_Infor = module.Cube_Infor; Cube_State = module.Cube_State; }, function (module) { Container_Manager = module.Container_Manager; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "3b901oU5ZJHnp8TtJiYjZWZ", "CreateIdiom", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var CreateIdiom = exports('CreateIdiom', (_dec = ccclass('CreateIdiom'), _dec(_class = /*#__PURE__*/function (_Component) { _inheritsLoose(CreateIdiom, _Component); function CreateIdiom() { 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; _this.count = 0; _this.Container = void 0; return _this; } var _proto = CreateIdiom.prototype; _proto.onLoad = function onLoad() { this.Container = find('Container').getComponent(Container_Manager); }; _proto.update = function update(deltaTime) {}; _proto.nodeMoving = function nodeMoving() { var _this2 = this; this.node.setPosition(new Vec3(0, 1.6, 0)); var startPos = this.node.position; // 起点,抛物线开始的坐标 var middlePos = new Vec3(this.node.position.x, this.node.position.y + 1, 0); // 中间控制点 var destPos = new Vec3(this.node.position.x, this.node.position.y + 2, 0); // 终点,抛物线上升顶点 var twoBezier = function twoBezier(t, p1, cp, p2) { // 贝塞尔曲线计算 var x = (1 - t) * (1 - t) * p1.x + 2 * t * (1 - t) * cp.x + t * t * p2.x; var y = (1 - t) * (1 - t) * p1.y + 2 * t * (1 - t) * cp.y + t * t * p2.y; // 螺旋运动计算 var angle = t * Math.PI * 6; // 螺旋角度变化,增加圈数 var radius = 0.5 + t * 2.5; // 螺旋半径逐渐增大 var xOffset = Math.cos(angle) * radius; // x 轴偏移 var zOffset = Math.sin(angle) * radius; // z 轴偏移 // 返回最终点,带有螺旋效果 return new Vec3(x + xOffset, y, zOffset); }; var tweenDuration = 2.0; // 动画时长 var animationStopped = false; // 控制动画是否已经停止 var moveTween = tween(this.node.position).to(tweenDuration, destPos, { onUpdate: function onUpdate(target, ratio) { // 计算新的位置,带螺旋上升效果 _this2.node.position = twoBezier(ratio, startPos, middlePos, destPos); // 根据进度生成新节点 var cube = _this2.Container.getCube(); if (cube != null && cube.getComponent(Cube_Infor).state === Cube_State.live) { var newNode = cube; newNode.parent = director.getScene(); newNode.setPosition(_this2.node.position); _this2.Container.nodeReferences.push(newNode); console.log(cube.getComponent(Cube_Infor).Text); } // 如果没有方块,设置停止标志 if (cube == null && !animationStopped) { animationStopped = true; // 设置动画停止标志 console.log("没有方块,停止动画"); _this2.node.setPosition(_this2.node.position); // 防止继续更新位置 } } }).call(function () { if (animationStopped) { _this2.Container.canTouch = true; // 确保回调被执行 } }).start(); }; return CreateIdiom; }(Component)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Cube_Infor.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createClass, cclegacy, _decorator, Label, RigidBody, Component; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; _createClass = module.createClass; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Label = module.Label; RigidBody = module.RigidBody; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2; cclegacy._RF.push({}, "0fe67dkVupFZYUR3uRu1sAy", "Cube_Infor", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Cube_State = exports('Cube_State', /*#__PURE__*/function (Cube_State) { Cube_State[Cube_State["live"] = 0] = "live"; Cube_State[Cube_State["wait"] = 1] = "wait"; Cube_State[Cube_State["dead"] = 2] = "dead"; return Cube_State; }({})); var Cube_Infor = exports('Cube_Infor', (_dec = ccclass('Cube_Infor'), _dec2 = property(Label), _dec3 = property(RigidBody), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Cube_Infor, _Component); function Cube_Infor() { 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, "txt", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "rigidbody", _descriptor2, _assertThisInitialized(_this)); _this.text = void 0; // lock:boolean = false; _this.state = Cube_State.live; return _this; } var _proto = Cube_Infor.prototype; _proto.start = function start() {}; _proto.update = function update(deltaTime) {}; _createClass(Cube_Infor, [{ key: "Text", get: function get() { return this.txt.string; }, set: function set(value) { this.txt.string = value; } }]); return Cube_Infor; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "txt", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "rigidbody", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/GameCtl.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui.ts', './UI_Idioms.ts', './UI_Main.ts', './Container_Manager.ts', './Cube_Infor.ts', './Hall.ts', './UI_LatticeFull.ts', './UI_Lock.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _createForOfIteratorHelperLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Camera, Node, find, geometry, PhysicsSystem, Vec3, RigidBody, Quat, tween, Component, gui, UI_Idioms, UI_Main, Container_Manager, Cube_Infor, Cube_State, Hall, UI_LatticeFull, UI_Lock; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Camera = module.Camera; Node = module.Node; find = module.find; geometry = module.geometry; PhysicsSystem = module.PhysicsSystem; Vec3 = module.Vec3; RigidBody = module.RigidBody; Quat = module.Quat; tween = module.tween; Component = module.Component; }, function (module) { gui = module.gui; }, function (module) { UI_Idioms = module.UI_Idioms; }, function (module) { UI_Main = module.UI_Main; }, function (module) { Container_Manager = module.Container_Manager; }, function (module) { Cube_Infor = module.Cube_Infor; Cube_State = module.Cube_State; }, function (module) { Hall = module.Hall; }, function (module) { UI_LatticeFull = module.UI_LatticeFull; }, function (module) { UI_Lock = module.UI_Lock; }], execute: function () { var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2, _class3; cclegacy._RF.push({}, "5237f+4/ftIlKW+rC062l8C", "GameCtl", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var GameCtl = exports('GameCtl', (_dec = ccclass('GameCtl'), _dec2 = property(Camera), _dec3 = property([Node]), _dec(_class = (_class2 = (_class3 = /*#__PURE__*/function (_Component) { _inheritsLoose(GameCtl, _Component); function GameCtl() { 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, "camera", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Ani", _descriptor2, _assertThisInitialized(_this)); _this.Container = void 0; return _this; } var _proto = GameCtl.prototype; _proto.onLoad = function onLoad() { GameCtl.instance = this; this.node.on(Node.EventType.TOUCH_START, this.onTouchStart, this); this.node.on(Node.EventType.TOUCH_MOVE, this.onTouchMove, this); this.node.on(Node.EventType.TOUCH_END, this.onTouchEnd, this); this.Container = find('Container').getComponent(Container_Manager); }; _proto.update = function update(deltaTime) {}; _proto.onTouchStart = function onTouchStart(event) {}; _proto.onTouchMove = function onTouchMove(event) {}; _proto.onTouchEnd = function onTouchEnd(event) { if (this.Container.canTouch) { this.shootRay(event); } } //发射射线检测判断物体是否可消除 ; _proto.shootRay = function shootRay(event) { if (!this.camera) return; var ray = new geometry.Ray(); this.camera.screenPointToRay(event.getLocationX(), event.getLocationY(), ray); if (PhysicsSystem.instance.raycastClosest(ray)) { var _collider$node$getCom; var raycastClosestResult = PhysicsSystem.instance.raycastClosestResult; var collider = raycastClosestResult.collider; console.log(collider.node.name); //当前其余点击无效 if (((_collider$node$getCom = collider.node.getComponent(Cube_Infor)) == null ? void 0 : _collider$node$getCom.state) === Cube_State.live) { if (gui.get(UI_Main).getLayout().Hand.active == true) { gui.get(UI_Main).getLayout().Hand.active = false; } this.entryContainer(collider.node); } else if (collider.node.name == 'Lock') { //解锁槽子 this.UnLock(collider.node); } } console.log('发射了射线'); }; _proto.entryContainer = function entryContainer(node) { var _this2 = this; // 判断容器剩余容量 var startIndex = -1; var targetPos = new Vec3(); var txt_length = node.getComponent(Cube_Infor).Text.length; console.log(txt_length); // 判断字长 并 判断是否还有空间可放置 switch (txt_length) { case 1: for (var i = 0; i < this.Container.unlock_Num; i++) { if (this.Container.node_isIdiom[i] === false) { startIndex = i; // 找到连续的三个 false,记录起始位置 break; // 找到第一个符合条件的位置后停止 } } if (startIndex !== -1) { // 如果找到了一个值为 false 的元素 targetPos = this.Container.nodes[startIndex].getWorldPosition().clone(); this.Container.node_isIdiom[startIndex] = true; console.log(targetPos); } else { console.log("没有空间了"); } break; case 2: { for (var _i = 0; _i < this.Container.unlock_Num - 1; _i++) { if (this.Container.node_isIdiom[_i] === false && this.Container.node_isIdiom[_i + 1] === false) { startIndex = _i; // 找到连续的两个 false,记录起始位置 break; // 找到第一个符合条件的位置后停止 } } if (startIndex !== -1) { console.log("找到连续的两个 false,起始索引是:", startIndex); // 可以在此使用 startIndex 进行后续操作,例如: var pos1 = this.Container.nodes[startIndex].getWorldPosition(); var pos2 = this.Container.nodes[startIndex + 1].getWorldPosition(); this.Container.node_isIdiom[startIndex] = true; this.Container.node_isIdiom[startIndex + 1] = true; targetPos.set((pos1.x + pos2.x) / 2, (pos1.y + pos2.y) / 2, (pos1.z + pos2.z) / 2); console.log(targetPos); } break; } case 3: { for (var _i2 = 0; _i2 < this.Container.unlock_Num - 2; _i2++) { if (this.Container.node_isIdiom[_i2] === false && this.Container.node_isIdiom[_i2 + 1] === false && this.Container.node_isIdiom[_i2 + 2] === false) { startIndex = _i2; // 找到连续的三个 false,记录起始位置 break; // 找到第一个符合条件的位置后停止 } } if (startIndex !== -1) { // 找到连续三个 false,startIndex 即为最前面的索引 console.log("找到连续的三个 false,起始索引是:", startIndex); // 可以在此使用 startIndex 进行后续操作,例如: var _pos = this.Container.nodes[startIndex].getWorldPosition(); var _pos2 = this.Container.nodes[startIndex + 1].getWorldPosition(); var pos3 = this.Container.nodes[startIndex + 2].getWorldPosition(); this.Container.node_isIdiom[startIndex] = true; this.Container.node_isIdiom[startIndex + 1] = true; this.Container.node_isIdiom[startIndex + 2] = true; targetPos.set((_pos.x + _pos2.x + pos3.x) / 3, (_pos.y + _pos2.y + pos3.y) / 3, (_pos.z + _pos2.z + pos3.z) / 3); console.log(targetPos); } else { console.log("没有找到连续的三个 false"); } break; } default: return; } if (startIndex !== -1) { // node.getComponent(Cube_Infor).lock = true; node.getComponent(Cube_Infor).state = Cube_State.wait; node.getComponent(Cube_Infor).rigidbody.type = RigidBody.Type.STATIC; // 禁用重力 var targetRotation = new Quat(); Quat.fromEuler(targetRotation, -90, 0, 0); this.Container.canTouch = false; tween(node).to(0.5, { position: new Vec3(targetPos.x, targetPos.y, targetPos.z + 0.4), rotation: targetRotation }).call(function () { _this2.Container.idiom_combine.set(node.getComponent(Cube_Infor), startIndex); // 执行判断成语合成逻辑 var matchedCubes = []; var flag = _this2.Container.checkIdiom_Combine(node.getComponent(Cube_Infor), matchedCubes); if (flag) { // 执行合成动画 console.log("匹配的成语方块:", matchedCubes); _this2.combine_ani(matchedCubes[0], matchedCubes[1]); } else { //高亮 gui.get(UI_Idioms).light_Show(node.getComponent(Cube_Infor)); //判断槽子满了吗 var count = 0; for (var _iterator = _createForOfIteratorHelperLoose(_this2.Container.node_isIdiom), _step; !(_step = _iterator()).done;) { var element = _step.value; if (element == true) { count++; } } if (count == _this2.Container.unlock_Num) { gui.show(UI_LatticeFull); } else if (count >= _this2.Container.unlock_Num - 2 && _this2.Container.unlock_Num != 9) { if (!_this2.Container.is_Show_UI_Lock) { gui.show(UI_Lock); _this2.Container.is_Show_UI_Lock = true; } } _this2.Container.canTouch = true; } }).start(); } } //合成动画 ; _proto.combine_ani = function combine_ani(cube1, cube2) { var _this3 = this; this.Container.canTouch = true; for (var i = this.Container.idiom_combine.get(cube1); i < this.Container.idiom_combine.get(cube1) + cube1.Text.length; i++) { this.Container.node_isIdiom[i] = false; } this.Container.idiom_combine["delete"](cube1); for (var _i3 = this.Container.idiom_combine.get(cube2); _i3 < this.Container.idiom_combine.get(cube2) + cube2.Text.length; _i3++) { this.Container.node_isIdiom[_i3] = false; } this.Container.idiom_combine["delete"](cube2); // 取消相关字的高亮显示 gui.get(UI_Idioms).light_Hide(cube1, cube2); gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.update_remain); this.adjustContainer(); // 检测容器中哪些字需要高亮显示 console.log(this.Container.node_isIdiom); // 在所有动画结束后执行 this.Container.idioms = this.Container.idioms.filter(function (c) { return c.idiom !== cube1.Text + cube2.Text; }); // 创建第一个 tween 动画 var tween1 = tween(cube1.node).to(0.1, { position: new Vec3(this.Ani[0].position.x, this.Ani[0].position.y, this.Ani[0].position.z + 0.4) }).call(function () { setTimeout(function () { cube1.state = Cube_State.dead; _this3.Container.recycleCube(cube1.node); }, 500.0); }); // 创建第二个 tween 动画 var tween2 = tween(cube2.node).to(0.1, { position: new Vec3(this.Ani[1].position.x, this.Ani[1].position.y, this.Ani[1].position.z + 0.4) }).call(function () { setTimeout(function () { cube2.state = Cube_State.dead; _this3.Container.recycleCube(cube2.node); }, 500.0); }); // 使用 tween 的并行组合功能 tween(cube1.node).parallel(tween1, tween2) // 并行执行 tween1 和 tween2 .call(function () { Hall.getInstance().player.set_combine_num(1); }).start(); }; _proto.adjustContainer = function adjustContainer() { var container = this.Container; // 新的 node_isIdiom 状态数组 var newNodeIsIdiom = Array(container.node_isIdiom.length).fill(false); // 新的 idiom_combine 映射表 var newIdiomCombine = new Map(); // 遍历 idiom_combine,重新计算位置 for (var _iterator2 = _createForOfIteratorHelperLoose(container.idiom_combine.entries()), _step2; !(_step2 = _iterator2()).done;) { var _step2$value = _step2.value, cube = _step2$value[0], startIndex = _step2$value[1]; var txtLength = cube.Text.length; // 获取字长 var targetIndex = -1; // 目标位置起始索引 var targetPos = new Vec3(); switch (txtLength) { case 1: { // 找到一个空位 for (var i = 0; i < container.unlock_Num; i++) { if (!newNodeIsIdiom[i]) { targetIndex = i; break; } } if (targetIndex !== -1) { targetPos = container.nodes[targetIndex].getWorldPosition().clone(); newNodeIsIdiom[targetIndex] = true; // 占用位置 } else { console.log("没有空位容纳单字 Cube_Infor"); } break; } case 2: { // 找到连续两个空位 for (var _i4 = 0; _i4 < container.unlock_Num - 1; _i4++) { if (!newNodeIsIdiom[_i4] && !newNodeIsIdiom[_i4 + 1]) { targetIndex = _i4; break; } } if (targetIndex !== -1) { var pos1 = container.nodes[targetIndex].getWorldPosition(); var pos2 = container.nodes[targetIndex + 1].getWorldPosition(); targetPos.set((pos1.x + pos2.x) / 2, (pos1.y + pos2.y) / 2, (pos1.z + pos2.z) / 2); newNodeIsIdiom[targetIndex] = true; newNodeIsIdiom[targetIndex + 1] = true; } else { console.log("没有连续两个空位容纳双字 Cube_Infor"); } break; } case 3: { // 找到连续三个空位 for (var _i5 = 0; _i5 < container.unlock_Num - 2; _i5++) { if (!newNodeIsIdiom[_i5] && !newNodeIsIdiom[_i5 + 1] && !newNodeIsIdiom[_i5 + 2]) { targetIndex = _i5; break; } } if (targetIndex !== -1) { var _pos3 = container.nodes[targetIndex].getWorldPosition(); var _pos4 = container.nodes[targetIndex + 1].getWorldPosition(); var pos3 = container.nodes[targetIndex + 2].getWorldPosition(); targetPos.set((_pos3.x + _pos4.x + pos3.x) / 3, (_pos3.y + _pos4.y + pos3.y) / 3, (_pos3.z + _pos4.z + pos3.z) / 3); newNodeIsIdiom[targetIndex] = true; newNodeIsIdiom[targetIndex + 1] = true; newNodeIsIdiom[targetIndex + 2] = true; } else { console.log("没有连续三个空位容纳三字 Cube_Infor"); } break; } default: return; } // 移动 Cube_Infor 到目标位置 if (targetIndex !== -1) { tween(cube.node).to(0.3, { position: new Vec3(targetPos.x, targetPos.y, targetPos.z + 0.4) }).start(); newIdiomCombine.set(cube, targetIndex); // 更新新映射 } } // 更新 container 状态 container.node_isIdiom = newNodeIsIdiom; container.idiom_combine = newIdiomCombine; console.log("调整后的容器状态:", container.node_isIdiom); console.log("更新后的 idiom_combine:", [].concat(container.idiom_combine.entries())); }; _proto.UnLock = /*#__PURE__*/function () { var _UnLock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(node) { var res; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 2; return chsdk.playRewardAd('解锁槽位'); case 2: res = _context.sent; if (res) { node.active = false; this.Container.unlock_Num += 1; } case 4: case "end": return _context.stop(); } }, _callee, this); })); function UnLock(_x) { return _UnLock.apply(this, arguments); } return UnLock; }(); return GameCtl; }(Component), _class3.instance = null, _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "camera", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Ani", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Hall.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ch.ts', './ui.ts', './HeadIcon.ts', './PlayerData.ts', './UI_Hall.ts', './TableLoadUtil.ts', './TableUtil.ts', './ModuleDef.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Component, director, ch, gui, get_new_head_icon, PlayerData, UI_Hall, TableLoadUtil, TableUtil, ModuleDef; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Component = module.Component; director = module.director; }, function (module) { ch = module.ch; }, function (module) { gui = module.gui; }, function (module) { get_new_head_icon = module.default; }, function (module) { PlayerData = module.default; }, function (module) { UI_Hall = module.UI_Hall; }, function (module) { TableLoadUtil = module.default; }, function (module) { TableUtil = module.TableUtil; }, function (module) { ModuleDef = module.ModuleDef; }], execute: function () { var _dec, _class, _class2; cclegacy._RF.push({}, "7cb62YJXe5LPKnKF0hMl+Rc", "Hall", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Hall = exports('Hall', (_dec = ccclass('Hall'), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Hall, _Component); function Hall() { 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; _this.player = void 0; _this.head_icon = get_new_head_icon(); return _this; } Hall.getInstance = function getInstance() { return Hall.instance; }; var _proto = Hall.prototype; _proto.start = /*#__PURE__*/function () { var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: if (!Hall.instance) { Hall.instance = this; } gui.show(UI_Hall); director.addPersistRootNode(this.node); this.init(); // if(chsdk.checkFromSidebar()) // { // Hall.getInstance().player.add_item(2,2); // } case 4: case "end": return _context.stop(); } }, _callee, this); })); function start() { return _start.apply(this, arguments); } return start; }(); _proto.init = /*#__PURE__*/function () { var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: this.loadTable(); this.player = PlayerData.getInstance(ch.sdk.get_gid(), ch.sdk.get_uid().toString()); this.player.init_user_info(); _context2.next = 5; return this.player.load(); case 5: this.player.set_login_num(1); console.log("登录次数:" + this.player.get_login_num()); case 7: case "end": return _context2.stop(); } }, _callee2, this); })); function init() { return _init.apply(this, arguments); } return init; }(); _proto.loadTable = function loadTable() { ch.log.log_start("加载配置初始化"); TableLoadUtil.preloadAll(ModuleDef.EXTRA, "table_json", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: case "end": return _context3.stop(); } }, _callee3); })), TableUtil.set); }; return Hall; }(Component), _class2.instance = void 0, _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Fail.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, ProgressBar, 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; ProgressBar = module.ProgressBar; Label = module.Label; Button = module.Button; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; cclegacy._RF.push({}, "03965b2YIBCA6Ocz97b2P5p", "Layout_Fail", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Fail = exports('Layout_Fail', (_dec = ccclass('Layout_Fail'), _dec2 = property(ProgressBar), _dec3 = property(Label), _dec4 = property(Button), _dec5 = property(Button), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Fail, _Component); function Layout_Fail() { 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, "progressBar", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Num", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Relife_Btn", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "ReturnHall_Btn", _descriptor4, _assertThisInitialized(_this)); _this.Container = void 0; return _this; } return Layout_Fail; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "progressBar", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Num", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Relife_Btn", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "ReturnHall_Btn", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_GameRules.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, 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; Button = module.Button; Component = module.Component; }], execute: function () { var _dec, _dec2, _class, _class2, _descriptor; cclegacy._RF.push({}, "e612co2N2pF65ZUh56KD86z", "Layout_GameRules", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_GameRules = exports('Layout_GameRules', (_dec = ccclass('Layout_GameRules'), _dec2 = property(Button), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_GameRules, _Component); function Layout_GameRules() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); return _this; } return Layout_GameRules; }(Component), _descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Hall.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, 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; Button = module.Button; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8; cclegacy._RF.push({}, "13bb8NC9xhAHqVW+8McXGfV", "Layout_Hall", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Hall = exports('Layout_Hall', (_dec = ccclass('Layout_Hall'), _dec2 = property(Button), _dec3 = property(Button), _dec4 = property(Button), _dec5 = property(Button), _dec6 = property(Button), _dec7 = property(Button), _dec8 = property(Button), _dec9 = property(Button), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Hall, _Component); function Layout_Hall() { 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, "Start_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Settings_Btn", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Rank_Btn", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Invite_Btn", _descriptor4, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Store_Btn", _descriptor5, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Sign_Btn", _descriptor6, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "SideBar_Btn", _descriptor7, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Task_Btn", _descriptor8, _assertThisInitialized(_this)); return _this; } return Layout_Hall; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Start_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Settings_Btn", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Rank_Btn", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Invite_Btn", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "Store_Btn", [_dec6], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "Sign_Btn", [_dec7], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "SideBar_Btn", [_dec8], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "Task_Btn", [_dec9], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Idioms.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Prefab, ScrollView, Node, 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; ScrollView = module.ScrollView; Node = module.Node; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3; cclegacy._RF.push({}, "42de1lm8OtGEJAf8DNtqkZ4", "Layout_Idioms", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Idioms = exports('Layout_Idioms', (_dec = ccclass('Layout_Idioms'), _dec2 = property(Prefab), _dec3 = property(ScrollView), _dec4 = property(Node), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Idioms, _Component); function Layout_Idioms() { 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, "idiom_prefab", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "scrollView", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "content", _descriptor3, _assertThisInitialized(_this)); _this.Container = void 0; return _this; } return Layout_Idioms; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "idiom_prefab", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "scrollView", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "content", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Invite.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, ProgressBar, Label, SpriteFrame, Sprite, 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; Button = module.Button; ProgressBar = module.ProgressBar; Label = module.Label; SpriteFrame = module.SpriteFrame; Sprite = module.Sprite; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7; cclegacy._RF.push({}, "859979HUQ9IrZ1w0hT607qb", "Layout_Invite", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Invite = exports('Layout_Invite', (_dec = ccclass('Layout_Invite'), _dec2 = property(Button), _dec3 = property(Button), _dec4 = property(Button), _dec5 = property(ProgressBar), _dec6 = property(Label), _dec7 = property([SpriteFrame]), _dec8 = property(Sprite), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Invite, _Component); function Layout_Invite() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Invite_Friend_Btn", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Refresh_Btn", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "progressBar", _descriptor4, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Txt", _descriptor5, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Num", _descriptor6, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Num_Sp", _descriptor7, _assertThisInitialized(_this)); _this.target_count = 3; _this.count = 1; return _this; } return Layout_Invite; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Invite_Friend_Btn", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Refresh_Btn", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "progressBar", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "Txt", [_dec6], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "Num", [_dec7], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "Num_Sp", [_dec8], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_LatticeFull.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, Label, Sprite, 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; Button = module.Button; Label = module.Label; Sprite = module.Sprite; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8; cclegacy._RF.push({}, "b79deqrTgdIk6CiExH7qvRx", "Layout_LatticeFull", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_LatticeFull = exports('Layout_LatticeFull', (_dec = ccclass('Layout_LatticeFull'), _dec2 = property(Button), _dec3 = property(Button), _dec4 = property(Label), _dec5 = property(Sprite), _dec6 = property(Button), _dec7 = property(Label), _dec8 = property(Sprite), _dec9 = property(Button), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_LatticeFull, _Component); function Layout_LatticeFull() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Eliminate", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Eliminate_RedPoint_num", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Eliminate_Ad", _descriptor4, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Empty", _descriptor5, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Empty_RedPoint_num", _descriptor6, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Empty_Ad", _descriptor7, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Click", _descriptor8, _assertThisInitialized(_this)); return _this; } return Layout_LatticeFull; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Eliminate", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Eliminate_RedPoint_num", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Eliminate_Ad", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "Empty", [_dec6], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "Empty_RedPoint_num", [_dec7], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "Empty_Ad", [_dec8], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "Click", [_dec9], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Lock.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, 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; Button = module.Button; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2; cclegacy._RF.push({}, "2fcdcBp+uZEY6m/sU2Hehcl", "Layout_Lock", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Lock = exports('Layout_Lock', (_dec = ccclass('Layout_Lock'), _dec2 = property(Button), _dec3 = property(Button), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Lock, _Component); function Layout_Lock() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Ensure_Btn", _descriptor2, _assertThisInitialized(_this)); return _this; } return Layout_Lock; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Ensure_Btn", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Main.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Container_Manager.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, Label, Node, find, Component, Container_Manager; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Button = module.Button; Label = module.Label; Node = module.Node; find = module.find; Component = module.Component; }, function (module) { Container_Manager = module.Container_Manager; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9; cclegacy._RF.push({}, "e3f72nzJUVGJo/WY8fbriTs", "Layout_Main", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Main = exports('Layout_Main', (_dec = ccclass('Layout_Main'), _dec2 = property(Button), _dec3 = property(Button), _dec4 = property(Label), _dec5 = property(Label), _dec6 = property(Label), _dec7 = property(Button), _dec8 = property(Button), _dec9 = property(Button), _dec10 = property(Node), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Main, _Component); function Layout_Main() { 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, "Pause_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Rules_Btn", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Level", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Remain_Cube_Des", _descriptor4, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Count_Down_Des", _descriptor5, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Eliminate_Btn", _descriptor6, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Shuffle_Btn", _descriptor7, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Empty_Btn", _descriptor8, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Hand", _descriptor9, _assertThisInitialized(_this)); _this.time = void 0; _this.Container = void 0; return _this; } var _proto = Layout_Main.prototype; _proto.start = function start() { this.Container = find('Container').getComponent(Container_Manager); }; return Layout_Main; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Pause_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Rules_Btn", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Level", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Remain_Cube_Des", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "Count_Down_Des", [_dec6], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "Eliminate_Btn", [_dec7], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "Shuffle_Btn", [_dec8], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "Empty_Btn", [_dec9], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "Hand", [_dec10], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Rank.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './UI_Rank_Item.ts', './List.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, Toggle, Component, UI_Rank_Item, List; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Button = module.Button; Toggle = module.Toggle; Component = module.Component; }, function (module) { UI_Rank_Item = module.UI_Rank_Item; }, function (module) { List = module.default; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7; cclegacy._RF.push({}, "2eda949TxVMN7XvpxY3t5gw", "Layout_Rank", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Rank = exports('Layout_Rank', (_dec = ccclass('Layout_Rank'), _dec2 = property(Button), _dec3 = property(Toggle), _dec4 = property(Toggle), _dec5 = property(List), _dec6 = property(List), _dec7 = property(UI_Rank_Item), _dec8 = property(UI_Rank_Item), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Rank, _Component); function Layout_Rank() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Rank_Toggle_1", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Rank_Toggle_2", _descriptor3, _assertThisInitialized(_this)); //列表 _initializerDefineProperty(_this, "list1", _descriptor4, _assertThisInitialized(_this)); //列表 _initializerDefineProperty(_this, "list2", _descriptor5, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "own1_item", _descriptor6, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "own2_item", _descriptor7, _assertThisInitialized(_this)); _this.onList1 = void 0; _this.onList2 = void 0; return _this; } var _proto = Layout_Rank.prototype; _proto.onListRender1 = function onListRender1(item, idx) { var _this$onList; (_this$onList = this.onList1) == null || _this$onList.call(this, item, idx); }; _proto.onListRender2 = function onListRender2(item, idx) { var _this$onList2; (_this$onList2 = this.onList2) == null || _this$onList2.call(this, item, idx); }; _proto.onDestroy = function onDestroy() { this.onList1 = null; this.onList2 = null; }; return Layout_Rank; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Rank_Toggle_1", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Rank_Toggle_2", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "list1", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "list2", [_dec6], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "own1_item", [_dec7], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "own2_item", [_dec8], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Settings.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, Toggle, 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; Button = module.Button; Toggle = module.Toggle; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; cclegacy._RF.push({}, "a23fc68/1dLFoa1EwXrpQkk", "Layout_Settings", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Settings = exports('Layout_Settings', (_dec = ccclass('Layout_Settings'), _dec2 = property(Button), _dec3 = property(Toggle), _dec4 = property(Toggle), _dec5 = property(Button), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Settings, _Component); function Layout_Settings() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Toggle_Music", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Toggle_Sound", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Defeat_Btn", _descriptor4, _assertThisInitialized(_this)); return _this; } return Layout_Settings; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Toggle_Music", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Toggle_Sound", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Defeat_Btn", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_SideBar.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, Sprite, SpriteFrame, 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; Button = module.Button; Sprite = module.Sprite; SpriteFrame = module.SpriteFrame; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; cclegacy._RF.push({}, "71db0Dfd1dNiLKKSZRT/O0i", "Layout_SideBar", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_SideBar = exports('Layout_SideBar', (_dec = ccclass('Layout_SideBar'), _dec2 = property(Button), _dec3 = property(Button), _dec4 = property(Sprite), _dec5 = property([SpriteFrame]), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_SideBar, _Component); function Layout_SideBar() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Go_SideBar", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Logo", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Logos", _descriptor4, _assertThisInitialized(_this)); return _this; } return Layout_SideBar; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Go_SideBar", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Logo", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Logos", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Sign.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Sign_Reward.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, Toggle, Component, Sign_Reward; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Button = module.Button; Toggle = module.Toggle; Component = module.Component; }, function (module) { Sign_Reward = module.Sign_Reward; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; cclegacy._RF.push({}, "f3b5dQdde1MGb2BgYEWz0N9", "Layout_Sign", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Sign = exports('Layout_Sign', (_dec = ccclass('Layout_Sign'), _dec2 = property(Button), _dec3 = property(Button), _dec4 = property([Sign_Reward]), _dec5 = property(Toggle), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Sign, _Component); function Layout_Sign() { 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, "Return", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Free_Get", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Sign_Reward", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Toggle", _descriptor4, _assertThisInitialized(_this)); return _this; } return Layout_Sign; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Return", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Free_Get", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Sign_Reward", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Toggle", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Store.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, 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; Button = module.Button; Label = module.Label; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; cclegacy._RF.push({}, "168251ehqRBGpKPm5es9+sr", "Layout_Store", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Store = exports('Layout_Store', (_dec = ccclass('Layout_Store'), _dec2 = property(Button), _dec3 = property(Label), _dec4 = property([Button]), _dec5 = property([Button]), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Store, _Component); function Layout_Store() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Coin_Num", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Free_Gets", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Coin_Gets", _descriptor4, _assertThisInitialized(_this)); return _this; } // @property([Number]) // Type:number[]=[]; // @property([Number]) // Value:number[]=[]; return Layout_Store; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Coin_Num", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Free_Gets", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Coin_Gets", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Task.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './UI_Task_Item.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, Component, UI_Task_Item; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Button = module.Button; Component = module.Component; }, function (module) { UI_Task_Item = module.UI_Task_Item; }], execute: function () { var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2; cclegacy._RF.push({}, "631c35AMklFxpXm9TxsykQi", "Layout_Task", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Task = exports('Layout_Task', (_dec = ccclass('Layout_Task'), _dec2 = property(Button), _dec3 = property([UI_Task_Item]), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Task, _Component); function Layout_Task() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Task_Items", _descriptor2, _assertThisInitialized(_this)); return _this; } return Layout_Task; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Task_Items", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_TimesOver.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, ProgressBar, Label, Sprite, 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; Button = module.Button; ProgressBar = module.ProgressBar; Label = module.Label; Sprite = module.Sprite; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6; cclegacy._RF.push({}, "b2d18riwBtISKbYok7OSEvq", "Layout_TimesOver", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_TimesOver = exports('Layout_TimesOver', (_dec = ccclass('Layout_TimesOver'), _dec2 = property(Button), _dec3 = property(ProgressBar), _dec4 = property(Label), _dec5 = property(Button), _dec6 = property(Sprite), _dec7 = property(Label), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_TimesOver, _Component); function Layout_TimesOver() { 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, "Close_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "progressBar", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "progressBar_Percent", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "AddTime", _descriptor4, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "AddTime_Ad", _descriptor5, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "RedPoint_num", _descriptor6, _assertThisInitialized(_this)); return _this; } return Layout_TimesOver; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Close_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "progressBar", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "progressBar_Percent", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "AddTime", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "AddTime_Ad", [_dec6], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "RedPoint_num", [_dec7], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Layout_Win.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Button, 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; Button = module.Button; Label = module.Label; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; cclegacy._RF.push({}, "50934s35tNAHrMqaGeR9pJX", "Layout_Win", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Layout_Win = exports('Layout_Win', (_dec = ccclass('Layout_Win'), _dec2 = property(Button), _dec3 = property(Button), _dec4 = property(Button), _dec5 = property(Label), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Layout_Win, _Component); function Layout_Win() { 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, "Three_Btn", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Next_Btn", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "ReturnHall_Btn", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Txt", _descriptor4, _assertThisInitialized(_this)); _this.Container = void 0; return _this; } return Layout_Win; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Three_Btn", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Next_Btn", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "ReturnHall_Btn", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Txt", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/module_game", ['./Container_Manager.ts', './CreateIdiom.ts', './Cube_Infor.ts', './GameCtl.ts', './PlayerData.ts', './Hall.ts', './UI_Head_Icon.ts', './UI_Item.ts', './Layout_Fail.ts', './UI_Fail.ts', './Layout_GameRules.ts', './UI_GameRules.ts', './Layout_Hall.ts', './UI_Hall.ts', './Layout_Idioms.ts', './UI_Idiom.ts', './UI_Idioms.ts', './Layout_Invite.ts', './UI_Invite.ts', './Layout_LatticeFull.ts', './UI_LatticeFull.ts', './Layout_Lock.ts', './UI_Lock.ts', './Layout_Main.ts', './UI_Main.ts', './Layout_Rank.ts', './UI_Rank.ts', './UI_Rank_Item.ts', './Layout_Settings.ts', './UI_Settings.ts', './Layout_SideBar.ts', './UI_SideBar.ts', './Layout_Sign.ts', './Sign_Reward.ts', './UI_Sign.ts', './Layout_Store.ts', './UI_Store.ts', './Layout_Task.ts', './UI_Task.ts', './UI_Task_Item.ts', './Layout_TimesOver.ts', './UI_TimesOver.ts', './Layout_Win.ts', './UI_Win.ts'], function () { return { setters: [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null], execute: function () {} }; }); System.register("chunks:///_virtual/PlayerData.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ch.ts', './ui.ts', './Container.ts', './GameData.ts', './Toast.ts', './UI_Main.ts'], function (exports) { var _inheritsLoose, _createClass, _asyncToGenerator, _regeneratorRuntime, cclegacy, ch, gui, Container, GameData, Toast, UI_Main; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _createClass = module.createClass; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; }, function (module) { ch = module.ch; }, function (module) { gui = module.gui; }, function (module) { Container = module.Container; }, function (module) { GameData = module.default; }, function (module) { Toast = module.Toast; }, function (module) { UI_Main = module.UI_Main; }], execute: function () { cclegacy._RF.push({}, "b500dzoF+pEaLB1EsW0vW75", "PlayerData", undefined); //定义事件 //排行榜key var rand_type = exports('rand_type', /*#__PURE__*/function (rand_type) { rand_type["floor"] = "floor"; return rand_type; }({})); //最高层数 //自定义数据 var data_type = exports('data_type', /*#__PURE__*/function (data_type) { data_type["last_gift_sidebar"] = "last_gift_sidebar"; data_type["max_floor"] = "max_floor"; data_type["coin"] = "coin"; return data_type; }({})); //铜币 //每日数据 var day_data_type = exports('day_data_type', /*#__PURE__*/function (day_data_type) { day_data_type["isFavorite"] = "isFavorite"; day_data_type["pass_level"] = "pass_level"; day_data_type["combine_num"] = "combine_num"; day_data_type["login_num"] = "login_num"; day_data_type["use_item"] = "use_item"; day_data_type["watch_ad"] = "watch_ad"; day_data_type["task_reward_state"] = "task_reward_state"; day_data_type["store_state"] = "store_state"; return day_data_type; }({})); //商店状态 //每周数据 var week_data_type = exports('week_data_type', /*#__PURE__*/function (week_data_type) { week_data_type["sign_day"] = "sign_day"; return week_data_type; }({})); //签到奖励 //每月数据 var month_data_type = exports('month_data_type', /*#__PURE__*/function (month_data_type) { return month_data_type; }({})); var PlayerData = exports('default', /*#__PURE__*/function (_GameData) { _inheritsLoose(PlayerData, _GameData); function PlayerData() { var _this; for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = _GameData.call.apply(_GameData, [this].concat(args)) || this; _this.event = ch.get_new_event(); //道具容器 _this.items = new Container(); _this.user_info = void 0; return _this; } PlayerData.getInstance = function getInstance(gid, uid) { if (!this._instance) { this._instance = new PlayerData(gid, uid, "PlayerData", new Map([[data_type.max_floor, { min: 0 }], [data_type.coin, { min: 0 }]]), new Map([[day_data_type.isFavorite, { min: 0 }], [day_data_type.pass_level, { min: 0, max: 5 }], [day_data_type.combine_num, { min: 0, max: 100 }], [day_data_type.login_num, { min: 0, max: 1 }], [day_data_type.use_item, { min: 0, max: 3 }], [day_data_type.watch_ad, { min: 0, max: 8 }]]), new Map([[week_data_type.sign_day, { min: 0, max: 7 }]])); } return this._instance; } //数据初始化 ; var _proto = PlayerData.prototype; _proto.on_init = function on_init() { ch.sign.init(2, null, 7); this.items.addItem({ type: 1, count: 1 }); this.items.addItem({ type: 2, count: 1 }); this.items.addItem({ type: 3, count: 1 }); this.items.addItem({ type: 5, count: 0 }); //道具初始化 ch.log.log("道具初始化", this); } //序列化加入自定义数据 ; _proto.on_serialize = function on_serialize(data) { data.sign = ch.sign.getSignData(); data.items = this.items.serialize(); } //反序列化加入自定义数据 ; _proto.on_unserialize = function on_unserialize(data) { this.items.unserialize(data.items); ch.sign.init(2, data.sign, 7); } //是否使用远程数据 ; _proto.on_check = function on_check(local, remote) { return true; } /**使用道具*/; _proto.use_item = /*#__PURE__*/ function () { var _use_item = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(type, count) { var layout, ret; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: if (count === void 0) { count = 1; } // if (GameLink.getInst().state != GameState.wait) return; layout = gui.get(UI_Main).getLayout(); ret = this.items.useCount(type, count); if (ret) { if (type == 1) { layout.Container.eliminate(); } else if (type == 2) { layout.Container.shuffle(); } else if (type == 3) { layout.Container.Empty(); } else if (type == 5) { layout.Container.AddTime(); } this.set_use_item_num(1); this.event.emit(this.event.key.item_count, ret.type, ret.count); this.setDirty(); } case 4: case "end": return _context.stop(); } }, _callee, this); })); function use_item(_x, _x2) { return _use_item.apply(this, arguments); } return use_item; }() /**增加道具*/; _proto.add_item = function add_item(type, count) { if (count === void 0) { count = 1; } var ret = this.items.addCount(type, count); if (ret) { this.event.emit(this.event.key.item_count, ret.type, ret.count); this.setDirty(); } }; _proto.set_item = function set_item(type, count) { if (count === void 0) { count = -1; } var c = this.get_item(type); if (type < count) { this.add_item(type, count - c); } }; _proto.get_item = function get_item(type) { return this.items.getCount(type); } //获取签到天数 ; _proto.get_sign = function get_sign() { return this.week_data.get(week_data_type.sign_day); } //设置签到天数 ; _proto.set_sign = function set_sign(count) { this.week_data.set(week_data_type.sign_day, count); } //获取是否当日首次通过收藏进入 ; _proto.get_is_favorite = function get_is_favorite() { return this.day_data.get(day_data_type.isFavorite); } //设置已从收藏进入 ; _proto.set_is_favorite = function set_is_favorite() { this.day_data.set(day_data_type.isFavorite, 1); this.setDirty(); } //获取关卡数 ; _proto.get_max_floor = function get_max_floor() { return this.data.get(data_type.max_floor); } //设置关卡数 ; _proto.set_max_floor = function set_max_floor(floor) { this.data.set(data_type.max_floor, floor); } //获取铜币数量 ; _proto.get_coin = function get_coin() { return this.data.get(data_type.coin); } //设置铜币数量 ; _proto.set_coin = function set_coin(coin) { this.data.set(data_type.coin, coin); this.setDirty(); } //获取今日通关数 ; _proto.get_pass_level = function get_pass_level() { return this.day_data.get(day_data_type.pass_level); } //设置今日通关数 ; _proto.set_pass_level = function set_pass_level(level) { this.day_data.add(day_data_type.pass_level, level); } //获取匹配成语数量 ; _proto.get_combine_num = function get_combine_num() { return this.day_data.get(day_data_type.combine_num); } //设置匹配成语数量 ; _proto.set_combine_num = function set_combine_num(num) { this.day_data.add(day_data_type.combine_num, num); this.setDirty(); } //获取登录次数 ; _proto.get_login_num = function get_login_num() { return this.day_data.get(day_data_type.login_num); } //设置登录次数 ; _proto.set_login_num = function set_login_num(num) { this.day_data.add(day_data_type.login_num, num); this.setDirty(); } //获取今日使用道具数量 ; _proto.get_use_item_num = function get_use_item_num() { return this.day_data.get(day_data_type.use_item); } //设置今日使用道具数量 ; _proto.set_use_item_num = function set_use_item_num(num) { this.day_data.add(day_data_type.use_item, num); } //获取今日广告观看数量 ; _proto.get_watch_ad_num = function get_watch_ad_num() { return this.day_data.get(day_data_type.watch_ad); } //设置今日广告观看数量 ; _proto.set_watch_ad_num = function set_watch_ad_num(num) { this.day_data.add(day_data_type.watch_ad, num); this.setDirty(); } //获取任务奖励状态 ; _proto.get_task_state = function get_task_state() { return this.day_data.get_Array(day_data_type.task_reward_state); } //设置任务奖励状态 ; _proto.set_task_state = function set_task_state(task_state) { this.day_data.set_Array(day_data_type.task_reward_state, task_state); this.setDirty(); } //获取商店免费领取状态 ; _proto.get_store_state = function get_store_state() { return this.day_data.get_Array(day_data_type.store_state); } //设置商店免费领取状态 ; _proto.set_store_state = function set_store_state(shop_state) { this.day_data.set_Array(day_data_type.store_state, shop_state); this.setDirty(); } ////////////////////////////////////////////////////////////////////////////////////////// ; _proto.load_data = /*#__PURE__*/ function () { var _load_data = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: return _context2.abrupt("return", _GameData.prototype.load_data.call(this)); case 1: case "end": return _context2.stop(); } }, _callee2, this); })); function load_data() { return _load_data.apply(this, arguments); } return load_data; }(); _proto.init_user_info = /*#__PURE__*/function () { var _init_user_info = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: this.user_info = { uid: this.uid, nickName: ch.sdk.get_player_info().nickName, avatar: ch.sdk.get_player_info().avatarUrl, province: ch.sdk.get_player_info().province }; case 1: case "end": return _context3.stop(); } }, _callee3, this); })); function init_user_info() { return _init_user_info.apply(this, arguments); } return init_user_info; }(); _proto.save_data = /*#__PURE__*/function () { var _save_data2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_save_data) { return _regeneratorRuntime().wrap(function _callee4$(_context4) { while (1) switch (_context4.prev = _context4.next) { case 0: return _context4.abrupt("return", _GameData.prototype.save_data.call(this, _save_data)); case 1: case "end": return _context4.stop(); } }, _callee4, this); })); function save_data(_x3) { return _save_data2.apply(this, arguments); } return save_data; }(); _proto.save_rank_floor = /*#__PURE__*/function () { var _save_rank_floor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { var floor; return _regeneratorRuntime().wrap(function _callee5$(_context5) { while (1) switch (_context5.prev = _context5.next) { case 0: floor = this.data.get(data_type.max_floor); ch.sdk.saveRankData(rand_type.floor, floor, ch.sdk.updateType.none, 0, { province: this.user_info.province }); case 2: case "end": return _context5.stop(); } }, _callee5, this); })); function save_rank_floor() { return _save_rank_floor.apply(this, arguments); } return save_rank_floor; }(); _proto.get_rank_floor = /*#__PURE__*/function () { var _get_rank_floor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() { var index, d, i; return _regeneratorRuntime().wrap(function _callee6$(_context6) { while (1) switch (_context6.prev = _context6.next) { case 0: index = 0; _context6.next = 3; return ch.sdk.loadRankData(rand_type.floor, ch.sdk.updateType.none, 100, true, false); case 3: d = _context6.sent; console.log("排行榜", d); if (d.data.own) { for (i = 0; i < d.data.list.length; i++) { if (d.data.own.userId === d.data.list[i].userId) { index = i + 1; } } } else { index = 101; } return _context6.abrupt("return", { list: d.data.list, owner: d.data.own, index: index }); case 7: case "end": return _context6.stop(); } }, _callee6); })); function get_rank_floor() { return _get_rank_floor.apply(this, arguments); } return get_rank_floor; }(); _proto.loadPfInfo = /*#__PURE__*/function () { var _loadPfInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() { return _regeneratorRuntime().wrap(function _callee8$(_context8) { while (1) switch (_context8.prev = _context8.next) { case 0: return _context8.abrupt("return", new Promise( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(resolve) { var k; return _regeneratorRuntime().wrap(function _callee7$(_context7) { while (1) switch (_context7.prev = _context7.next) { case 0: _context7.next = 2; return ch.sdk.getUserInfo(); case 2: k = _context7.sent; if (k) { resolve(true); } else { Toast.makeText(gui.getLayerNode(5), '需要授权').show(); resolve(false); } case 4: case "end": return _context7.stop(); } }, _callee7); })))); case 1: case "end": return _context8.stop(); } }, _callee8); })); function loadPfInfo() { return _loadPfInfo.apply(this, arguments); } return loadPfInfo; }(); _createClass(PlayerData, [{ key: "nickName", get: function get() { return this.user_info.nickName; } }, { key: "avatarUrl", get: function get() { return this.user_info.avatar; } }]); return PlayerData; }(GameData)); PlayerData._instance = void 0; cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/Sign_Reward.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './sign.ts', './Hall.ts', './ui.ts', './Toast.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Node, Component, ch_sign, Hall, gui, Toast; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Node = module.Node; Component = module.Component; }, function (module) { ch_sign = module.default; }, function (module) { Hall = module.Hall; }, function (module) { gui = module.gui; }, function (module) { Toast = module.Toast; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3; cclegacy._RF.push({}, "e331ep7JMdAb5V2APr+1Lco", "Sign_Reward", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var Sign_Reward = exports('Sign_Reward', (_dec = ccclass('Sign_Reward'), _dec2 = property(Node), _dec3 = property([Number]), _dec4 = property([Number]), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(Sign_Reward, _Component); function Sign_Reward() { 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, "Mask", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "type", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "num", _descriptor3, _assertThisInitialized(_this)); return _this; } var _proto = Sign_Reward.prototype; _proto.start = function start() {}; _proto.show = /*#__PURE__*/function () { var _show = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(day) { var state; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 2; return ch_sign.getInstance().checkSigineState(day); case 2: state = _context.sent; console.log(day + ':' + state); this.Mask.active = state == 1; case 5: case "end": return _context.stop(); } }, _callee, this); })); function show(_x) { return _show.apply(this, arguments); } return show; }(); _proto.add_Item = function add_Item(flag) { for (var i = 0; i < this.type.length; i++) { var Num = flag ? (this.num[i] * 2).toString() : this.num[i].toString(); switch (this.type[i]) { case 1: Toast.makeText(gui.getLayerNode(5), '获得消除印章' + 'X' + Num).show(); break; case 2: Toast.makeText(gui.getLayerNode(5), '获得洗牌卡' + 'X' + Num).show(); break; case 3: Toast.makeText(gui.getLayerNode(5), '获得清空' + 'X' + Num).show(); break; } Hall.getInstance().player.add_item(this.type[i], flag ? this.num[i] * 2 : this.num[i]); } }; return Sign_Reward; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Mask", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "type", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "num", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Fail.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Layout_Fail.ts', './UI_Hall.ts', './ui.ts', './ui_base.ts', './ResUtil.ts', './ModuleDef.ts', './SceneDef.ts', './Container_Manager.ts', './UI_Main.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, find, Layout_Fail, UI_Hall, GameUILayers, gui, ui_base, ResUtil, ModuleDef, SceneDef, Container_Manager, ani_ui; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; find = module.find; }, function (module) { Layout_Fail = module.Layout_Fail; }, function (module) { UI_Hall = module.UI_Hall; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { ResUtil = module.ResUtil; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { SceneDef = module.SceneDef; }, function (module) { Container_Manager = module.Container_Manager; }, function (module) { ani_ui = module.ani_ui; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "25964t1RBhKUp6zTIOnu2R5", "UI_Fail", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Fail = exports('UI_Fail', (_dec = ccclass('UI_Fail'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Fail, _ui_base); function UI_Fail() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Fail/Fail', GameUILayers.HUD, Layout_Fail) || this; } var _proto = UI_Fail.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { var layout; return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: layout = this.getLayout(); layout.Container = find('Container').getComponent(Container_Manager); ani_ui(layout.Relife_Btn.node.parent.parent); this.onButtonEvent(layout.Relife_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(button) { return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: case "end": return _context.stop(); } }, _callee); })), this); this.onButtonEvent(layout.ReturnHall_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(button) { return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: _context2.next = 2; return gui.closeAll(); case 2: gui.show(UI_Hall); ResUtil.loadScene(SceneDef.Hall, ModuleDef.GAME, true); case 4: case "end": return _context2.stop(); } }, _callee2); })), this); layout.progressBar.progress = (layout.Container.count - layout.Container.idioms.length) / layout.Container.count; layout.Num.string = Math.floor(layout.progressBar.progress * 100) + '%'; case 7: case "end": return _context3.stop(); } }, _callee3, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); return UI_Fail; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_GameRules.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui.ts', './ui_base.ts', './ModuleDef.ts', './UI_Main.ts', './Layout_GameRules.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, GameUILayers, gui, ui_base, ModuleDef, ani_ui, Layout_GameRules; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { ani_ui = module.ani_ui; }, function (module) { Layout_GameRules = module.Layout_GameRules; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "72b78F4T+RLAZp35Z72nowc", "UI_GameRules", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_GameRules = exports('UI_GameRules', (_dec = ccclass('UI_GameRules'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_GameRules, _ui_base); function UI_GameRules() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_GameRules/GameRules', GameUILayers.HUD, Layout_GameRules) || this; } var _proto = UI_GameRules.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { var layout; return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); this.onButtonEvent(layout.Close_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(button) { return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: //关闭设置界面 gui.close(UI_GameRules); case 1: case "end": return _context.stop(); } }, _callee); })), this); case 3: case "end": return _context2.stop(); } }, _callee2, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); return UI_GameRules; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Hall.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Layout_Hall.ts', './UI_Rank.ts', './UI_Settings.ts', './UI_Sign.ts', './UI_Invite.ts', './ui.ts', './ui_base.ts', './ResUtil.ts', './ModuleDef.ts', './SceneDef.ts', './UI_Store.ts', './UI_SideBar.ts', './UI_Task.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Layout_Hall, UI_Rank, UI_Settings, UI_Sign, UI_Invite, GameUILayers, gui, ui_base, ResUtil, ModuleDef, SceneDef, UI_Store, UI_SideBar, UI_Task; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; }, function (module) { Layout_Hall = module.Layout_Hall; }, function (module) { UI_Rank = module.UI_Rank; }, function (module) { UI_Settings = module.UI_Settings; }, function (module) { UI_Sign = module.UI_Sign; }, function (module) { UI_Invite = module.UI_Invite; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { ResUtil = module.ResUtil; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { SceneDef = module.SceneDef; }, function (module) { UI_Store = module.UI_Store; }, function (module) { UI_SideBar = module.UI_SideBar; }, function (module) { UI_Task = module.UI_Task; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "e5a30zX/fVMaZSMsA9kifAa", "UI_Hall", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Hall = exports('UI_Hall', (_dec = ccclass('UI_Hall'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Hall, _ui_base); function UI_Hall() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Hall/Hall', GameUILayers.GAME, Layout_Hall) || this; } var _proto = UI_Hall.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var layout; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: layout = this.getLayout(); this.onButtonEvent(layout.Start_Btn, function () { gui.close(UI_Hall); ResUtil.loadScene(SceneDef.GAME, ModuleDef.GAME, true); }); this.onButtonEvent(layout.Settings_Btn, function () { gui.show(UI_Settings); }); this.onButtonEvent(layout.Rank_Btn, function () { gui.show(UI_Rank); }); this.onButtonEvent(layout.Sign_Btn, function () { gui.show(UI_Sign); }); this.onButtonEvent(layout.Invite_Btn, function () { gui.show(UI_Invite); }); this.onButtonEvent(layout.Store_Btn, function () { gui.show(UI_Store); }); this.onButtonEvent(layout.Task_Btn, function () { gui.show(UI_Task); }); if (chsdk.checkHasSidebar()) { layout.SideBar_Btn.node.active = true; this.onButtonEvent(layout.SideBar_Btn, function () { gui.show(UI_SideBar); }); } else { layout.SideBar_Btn.node.active = false; } case 9: case "end": return _context.stop(); } }, _callee, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); _proto.update = function update(deltaTime) {}; return UI_Hall; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Head_Icon.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Hall.ts', './ch.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Sprite, SpriteFrame, Component, Hall, ch; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Sprite = module.Sprite; SpriteFrame = module.SpriteFrame; Component = module.Component; }, function (module) { Hall = module.Hall; }, function (module) { ch = module.ch; }], execute: function () { var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2; cclegacy._RF.push({}, "32da00Ug65PLLJF/VDL1/LR", "UI_Head_Icon", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Head_Icon = exports('UI_Head_Icon', (_dec = ccclass('UI_Head_Icon'), _dec2 = property(Sprite), _dec3 = property([SpriteFrame]), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(UI_Head_Icon, _Component); function UI_Head_Icon() { 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, "head", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "default_head", _descriptor2, _assertThisInitialized(_this)); return _this; } var _proto = UI_Head_Icon.prototype; _proto.start = function start() {}; _proto.update = function update(deltaTime) {}; _proto.show = function show(uid, head) { var rc = this.default_head[ch.util.getRandomInt(0, this.default_head.length - 1)]; Hall.getInstance().head_icon.showIcon(uid, head, this.head, rc); }; return UI_Head_Icon; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "head", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "default_head", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Idiom.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Sprite, 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; Sprite = module.Sprite; Label = module.Label; Component = module.Component; }], execute: function () { var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2; cclegacy._RF.push({}, "823150wmWhJ5rmcjzauSE9B", "UI_Idiom", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Idiom = exports('UI_Idiom', (_dec = ccclass('UI_Idiom'), _dec2 = property(Sprite), _dec3 = property(Label), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(UI_Idiom, _Component); function UI_Idiom() { 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, "hud_sp", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "txt", _descriptor2, _assertThisInitialized(_this)); _this.piece_1_word = void 0; _this.piece_2_word = void 0; return _this; } var _proto = UI_Idiom.prototype; _proto.start = function start() {}; _proto.update = function update(deltaTime) {}; return UI_Idiom; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "hud_sp", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "txt", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Idioms.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './UI_Idiom.ts', './Layout_Idioms.ts', './ui.ts', './ui_base.ts', './ModuleDef.ts', './Container_Manager.ts'], function (exports) { var _inheritsLoose, _createForOfIteratorHelperLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, instantiate, UITransform, Size, Vec3, Vec2, find, UI_Idiom, Layout_Idioms, GameUILayers, ui_base, ModuleDef, Container_Manager; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; instantiate = module.instantiate; UITransform = module.UITransform; Size = module.Size; Vec3 = module.Vec3; Vec2 = module.Vec2; find = module.find; }, function (module) { UI_Idiom = module.UI_Idiom; }, function (module) { Layout_Idioms = module.Layout_Idioms; }, function (module) { GameUILayers = module.GameUILayers; }, function (module) { ui_base = module.default; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Container_Manager = module.Container_Manager; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "efc87WIo/pPjbu6aYJ5woDB", "UI_Idioms", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Idioms = exports('UI_Idioms', (_dec = ccclass('UI_Idioms'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Idioms, _ui_base); function UI_Idioms() { var _this; _this = _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Idioms/ScrollView', GameUILayers.HUD, Layout_Idioms) || this; _this.idioms = []; return _this; } var _proto = UI_Idioms.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var layout; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: layout = this.getLayout(); layout.Container = find('Container').getComponent(Container_Manager); this.init(); case 3: case "end": return _context.stop(); } }, _callee, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); _proto.init = function init() { var layout = this.getLayout(); console.log("init"); for (var i = 0; i < layout.Container.idioms.length; i++) { var node = instantiate(layout.idiom_prefab); node.parent = layout.content; console.log("label" + layout.Container.idioms[i].idiom); node.getComponent(UI_Idiom).txt.string = layout.Container.idioms[i].idiom; node.getComponent(UI_Idiom).piece_1_word = layout.Container.idioms[i].piece_1_word; node.getComponent(UI_Idiom).piece_2_word = layout.Container.idioms[i].piece_2_word; this.idioms.push(node.getComponent(UI_Idiom)); } } //高亮显示 ; _proto.light_Show = function light_Show(cube_infor) { var layout = this.getLayout(); var txt_length = cube_infor.Text.length; for (var i = 0; i < this.idioms.length; i++) { if (this.idioms[i].piece_1_word === cube_infor.Text) { this.idioms[i].hud_sp.node.active = true; this.idioms[i].hud_sp.node.getComponent(UITransform).contentSize = new Size(30 * txt_length, 30); var target = 0; this.idioms[i].hud_sp.node.position = new Vec3(11 + target * 30, -11.5, 0); this.scrollToTarget(i); } else if (this.idioms[i].piece_2_word === cube_infor.Text) { this.idioms[i].hud_sp.node.active = true; this.idioms[i].hud_sp.node.getComponent(UITransform).contentSize = new Size(30 * txt_length, 30); var _target = 4 - txt_length; this.idioms[i].hud_sp.node.position = new Vec3(11 + _target * 30, -11.5, 0); this.scrollToTarget(i); } } } //取消高亮 ; _proto.light_Hide = function light_Hide(cube1, cube2) { var layout = this.getLayout(); this.idioms = this.idioms.filter(function (element) { var shouldRemove = false; var hasMatch = false; // 检查与 cube1 相关的成语 if (cube1.Text === element.piece_1_word) { for (var _iterator = _createForOfIteratorHelperLoose(layout.Container.idiom_combine.keys()), _step; !(_step = _iterator()).done;) { var cubeInfor = _step.value; if (cubeInfor.txt.string === cube1.Text) { hasMatch = true; break; } } // 只有当前字没有参与成语时才移除提示 if (!hasMatch) { element.hud_sp.node.active = false; // 销毁UI中的成语提示 } } // 检查与 cube2 相关的成语 if (cube2.Text === element.piece_2_word) { for (var _iterator2 = _createForOfIteratorHelperLoose(layout.Container.idiom_combine.keys()), _step2; !(_step2 = _iterator2()).done;) { var _cubeInfor = _step2.value; if (_cubeInfor.txt.string === cube2.Text) { hasMatch = true; break; } } // 只有当前字没有参与成语时才移除提示 if (!hasMatch) { element.hud_sp.node.active = false; // 销毁UI中的成语提示 } } // 检查是否能组合成一个成语 if (cube1.Text + cube2.Text === element.txt.string) { element.node.destroy(); // 销毁节点 shouldRemove = true; // 如果已组合,移除该成语 } // 保留未被组合的元素 return !shouldRemove; }); // 监测所有字是否仍然需要高亮显示 this.idioms.forEach(function (element) { // 检查每个字是否仍然在任何成语组合中 var shouldDisplay = false; // 遍历容器中的所有成语组合,看看当前字是否仍然参与任何组合 for (var _iterator3 = _createForOfIteratorHelperLoose(layout.Container.idiom_combine.keys()), _step3; !(_step3 = _iterator3()).done;) { var cubeInfor = _step3.value; if (cubeInfor.txt.string === element.piece_1_word || cubeInfor.txt.string === element.piece_2_word) { shouldDisplay = true; break; } } // 如果该字还参与成语,则保持其提示显示 if (shouldDisplay) { element.hud_sp.node.active = true; } }); }; _proto.scrollToTarget = function scrollToTarget(index) { var layout = this.getLayout(); var row = Math.trunc(index / 5); if (row == 0) { layout.scrollView.scrollTo(new Vec2(0, 1), 0.2, false); } else if (row == this.idioms.length / 5) { layout.scrollView.scrollTo(new Vec2(0, 0), 0.2, false); } else { var res = Math.trunc(row / (Math.trunc(this.idioms.length / 5) - 2) * 10) / 10; layout.scrollView.scrollTo(new Vec2(0, 1 - res), 0.2, false); console.log("weizhi:" + (1 - res)); } }; _proto.all_light_Hide = function all_light_Hide() { this.idioms.forEach(function (element) { element.hud_sp.node.active = false; }); }; return UI_Idioms; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Invite.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui.ts', './ui_base.ts', './ModuleDef.ts', './UI_Main.ts', './Layout_Invite.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, GameUILayers, gui, ui_base, ModuleDef, ani_ui, Layout_Invite; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { ani_ui = module.ani_ui; }, function (module) { Layout_Invite = module.Layout_Invite; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "35c7bpukylD/JOB9LOmKr4x", "UI_Invite", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Invite = exports('UI_Invite', (_dec = ccclass('UI_Invite'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Invite, _ui_base); function UI_Invite() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Invite/Invite', GameUILayers.HUD, Layout_Invite) || this; } var _proto = UI_Invite.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var _this = this; var layout; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: // 拉取通过邀请进入该游戏的好友数量 this.get_Count(); this.show(); layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); this.onButtonEvent(layout.Close_Btn, function () { gui.close(UI_Invite); }); this.onButtonEvent(layout.Invite_Friend_Btn, function () { //分享给好友 chsdk.shareAppMessage(); }); this.onButtonEvent(layout.Refresh_Btn, function () { //刷新好友列表 _this.get_Count(); _this.show(); }); case 7: case "end": return _context.stop(); } }, _callee, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); _proto.get_Count = function get_Count() { var layout = this.getLayout(); chsdk.getShareList().then(function (res) { if (res.code === 0 && res.data) { // 确保数据有效 var friendCount = res.data.length; // 计算人数 layout.Txt.string = friendCount + '/' + layout.target_count; layout.progressBar.progress = friendCount / layout.target_count; var remain = layout.target_count - friendCount; layout.Num_Sp.spriteFrame = layout.Num[remain - 1]; } else { // 错误处理 console.error("\u83B7\u53D6\u5206\u4EAB\u5217\u8868\u5931\u8D25: " + (res.err || "未知错误")); } })["catch"](function (err) { // 捕获 promise 的异常 console.error("\u8BF7\u6C42\u5931\u8D25: " + err.message); }); }; _proto.show = function show() { var layout = this.getLayout(); layout.progressBar.progress = layout.count / layout.target_count; layout.Txt.string = layout.count + '/' + layout.target_count; }; return UI_Invite; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Item.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ch.ts', './ui.ts', './UI_Main.ts', './Hall.ts', './Toast.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, _asyncToGenerator, _regeneratorRuntime, _createForOfIteratorHelperLoose, cclegacy, _decorator, Sprite, Label, Button, Node, tween, v3, Component, ch, gui, UI_Main, Hall, Toast; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; _createForOfIteratorHelperLoose = module.createForOfIteratorHelperLoose; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Sprite = module.Sprite; Label = module.Label; Button = module.Button; Node = module.Node; tween = module.tween; v3 = module.v3; Component = module.Component; }, function (module) { ch = module.ch; }, function (module) { gui = module.gui; }, function (module) { UI_Main = module.UI_Main; }, function (module) { Hall = module.Hall; }, function (module) { Toast = module.Toast; }], execute: function () { var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2, _descriptor3; cclegacy._RF.push({}, "12c662bVNFDxoVeaMUS/AvG", "UI_Item", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Item = exports('UI_Item', (_dec = ccclass('UI_Item'), _dec2 = property(Sprite), _dec3 = property(Label), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(UI_Item, _Component); function UI_Item() { 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, "type", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Ad", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "count", _descriptor3, _assertThisInitialized(_this)); _this._c = 0; return _this; } var _proto = UI_Item.prototype; _proto.start = function start() { if (this.type == 0) return; this.show(this.type, Hall.getInstance().player.get_item(this.type)); if (this.node.getComponent(Button)) { this.node.on(Node.EventType.TOUCH_END, this.onClick, this); } Hall.getInstance().player.event.on(Hall.getInstance().player.event.key.item_count, this.show, this); }; _proto.onDestroy = function onDestroy() { Hall.getInstance().player.event.off(Hall.getInstance().player.event.key.item_count, this.show, this); }; _proto.show = function show(type, count) { if (type != this.type) return; if (this._c != count) { tween(this.node).to(0.05, { scale: v3(1.2, 1.2, 1) }).to(0.1, { scale: v3(1, 1, 1) }).start(); if (count < this._c) ; } this._c = count; if (count != 0) { this.Ad.node.active = false; this.count.node.parent.active = true; this.count.string = count.toString(); } else { this.Ad.node.active = true; this.count.node.parent.active = false; } //this.ad.active = count <= 0; } // ; _proto.onClick = /*#__PURE__*/ function () { var _onClick = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(evt) { var flag, _iterator, _step, element, ret, _flag, _iterator2, _step2, _element; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: if (!(this._c <= 0)) { _context.next = 21; break; } if (!(this.type == 3)) { _context.next = 15; break; } flag = false; _iterator = _createForOfIteratorHelperLoose(gui.get(UI_Main).getLayout().Container.node_isIdiom); case 4: if ((_step = _iterator()).done) { _context.next = 12; break; } element = _step.value; console.log(element); if (!(element == true)) { _context.next = 10; break; } flag = true; return _context.abrupt("break", 12); case 10: _context.next = 4; break; case 12: if (flag) { _context.next = 15; break; } Toast.makeText(gui.getLayerNode(5), "槽中无可清除的方块").show(); return _context.abrupt("return"); case 15: _context.next = 17; return chsdk.playRewardAd('获得道具' + this.type); case 17: ret = _context.sent; if (ret) { // ch.audio.playOneShot('sounds/sfx_add_item'); Hall.getInstance().player.add_item(this.type, 1); Hall.getInstance().player.set_watch_ad_num(1); ch.audio.resume(); } // gui.show(UI_ad_get, this.type); _context.next = 37; break; case 21: if (!(this.type == 3)) { _context.next = 36; break; } _flag = false; _iterator2 = _createForOfIteratorHelperLoose(gui.get(UI_Main).getLayout().Container.node_isIdiom); case 24: if ((_step2 = _iterator2()).done) { _context.next = 33; break; } _element = _step2.value; console.log(_element); if (!(_element == true)) { _context.next = 31; break; } Hall.getInstance().player.use_item(this.type); _flag = true; return _context.abrupt("break", 33); case 31: _context.next = 24; break; case 33: if (!_flag) Toast.makeText(gui.getLayerNode(5), "槽中无可清除的方块").show(); //UINotify.show('槽中无可清除的方块'); _context.next = 37; break; case 36: Hall.getInstance().player.use_item(this.type); case 37: case "end": return _context.stop(); } }, _callee, this); })); function onClick(_x) { return _onClick.apply(this, arguments); } return onClick; }(); return UI_Item; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "type", [property], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return 0; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Ad", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "count", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_LatticeFull.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui_base.ts', './Layout_LatticeFull.ts', './ui.ts', './ModuleDef.ts', './Hall.ts', './UI_Fail.ts', './UI_Main.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, ui_base, Layout_LatticeFull, GameUILayers, gui, ModuleDef, Hall, UI_Fail, ani_ui, UI_Main; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; }, function (module) { ui_base = module.default; }, function (module) { Layout_LatticeFull = module.Layout_LatticeFull; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Hall = module.Hall; }, function (module) { UI_Fail = module.UI_Fail; }, function (module) { ani_ui = module.ani_ui; UI_Main = module.UI_Main; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "eca24N6WDJOCKuYRcooOJCy", "UI_LatticeFull", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_LatticeFull = exports('UI_LatticeFull', (_dec = ccclass('UI_LatticeFull'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_LatticeFull, _ui_base); function UI_LatticeFull() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_LatticeFull/LatticeFull', GameUILayers.HUD, Layout_LatticeFull) || this; } var _proto = UI_LatticeFull.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { var layout, num1, num2; return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); num1 = Hall.getInstance().player.get_item(1); if (num1 > 0) { layout.Empty_Ad.node.active = false; layout.Empty_RedPoint_num.node.parent.active = true; layout.Empty_RedPoint_num.string = num1.toString(); } else { layout.Empty_Ad.node.active = true; layout.Empty_RedPoint_num.node.parent.active = false; } num2 = Hall.getInstance().player.get_item(3); if (num2 > 0) { layout.Eliminate_Ad.node.active = false; layout.Eliminate_RedPoint_num.node.parent.active = true; layout.Eliminate_RedPoint_num.string = num2.toString(); } else { layout.Eliminate_Ad.node.active = true; layout.Eliminate_RedPoint_num.node.parent.active = false; } gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.pause); this.onButtonEvent(layout.Close_Btn, function () { gui.close(UI_LatticeFull); gui.show(UI_Fail); }); this.onButtonEvent(layout.Eliminate, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var ret; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: if (!(num1 <= 0)) { _context.next = 7; break; } _context.next = 3; return chsdk.playRewardAd('获得道具' + 1); case 3: ret = _context.sent; if (ret) { Hall.getInstance().player.add_item(1, 1); Hall.getInstance().player.use_item(1); gui.close(UI_LatticeFull); //直接使用道具 gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.resume); } _context.next = 10; break; case 7: Hall.getInstance().player.use_item(1); gui.close(UI_LatticeFull); //直接使用道具 gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.resume); case 10: case "end": return _context.stop(); } }, _callee); }))); this.onButtonEvent(layout.Empty, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { var ret; return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: if (!(num2 <= 0)) { _context2.next = 7; break; } _context2.next = 3; return chsdk.playRewardAd('获得道具' + 3); case 3: ret = _context2.sent; if (ret) { Hall.getInstance().player.add_item(3, 1); Hall.getInstance().player.use_item(3); gui.close(UI_LatticeFull); //直接使用道具 gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.resume); } _context2.next = 10; break; case 7: Hall.getInstance().player.use_item(3); gui.close(UI_LatticeFull); //直接使用道具 gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.resume); case 10: case "end": return _context2.stop(); } }, _callee2); }))); this.onButtonEvent(layout.Click, function () { gui.close(UI_LatticeFull); //放弃此局,跳至结算界面 gui.show(UI_Fail); }); case 11: case "end": return _context3.stop(); } }, _callee3, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); return UI_LatticeFull; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Lock.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui_base.ts', './ui.ts', './ModuleDef.ts', './Layout_Lock.ts', './UI_Main.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, ui_base, GameUILayers, gui, ModuleDef, Layout_Lock, ani_ui, UI_Main; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; }, function (module) { ui_base = module.default; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Layout_Lock = module.Layout_Lock; }, function (module) { ani_ui = module.ani_ui; UI_Main = module.UI_Main; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "8fb82Ol44hAxperkef41f5v", "UI_Lock", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Lock = exports('UI_Lock', (_dec = ccclass('UI_Lock'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Lock, _ui_base); function UI_Lock() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Lock/Lock', GameUILayers.HUD, Layout_Lock) || this; } var _proto = UI_Lock.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { var layout, main_layout; return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); main_layout = gui.get(UI_Main).getLayout(); gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.pause); this.onButtonEvent(layout.Close_Btn, function () { //关闭设置界面 gui.close(UI_Lock); gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.resume); }, this); this.onButtonEvent(layout.Ensure_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var ret, i; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 2; return chsdk.playRewardAd('解锁槽位'); case 2: ret = _context.sent; if (!ret) { _context.next = 15; break; } i = 0; case 5: if (!(i < 2)) { _context.next = 15; break; } if (!main_layout.Container.Lock_node[i].active) { _context.next = 12; break; } main_layout.Container.Lock_node[i].active = false; main_layout.Container.unlock_Num += 1; gui.close(UI_Lock); gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.resume); return _context.abrupt("return"); case 12: i++; _context.next = 5; break; case 15: case "end": return _context.stop(); } }, _callee); })), this); case 6: case "end": return _context2.stop(); } }, _callee2, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); return UI_Lock; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Main.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ch.ts', './ui.ts', './ui_base.ts', './ModuleDef.ts', './UI_GameRules.ts', './UI_Idioms.ts', './UI_Settings.ts', './UI_Win.ts', './Layout_Main.ts', './Container_Manager.ts', './Hall.ts', './UI_TimesOver.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, find, ch, gui, GameUILayers, ui_base, ModuleDef, UI_GameRules, UI_Idioms, UI_Settings, UI_Win, Layout_Main, Container_Manager, Hall, UI_TimesOver; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; find = module.find; }, function (module) { ch = module.ch; }, function (module) { gui = module.gui; GameUILayers = module.GameUILayers; }, function (module) { ui_base = module.default; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { UI_GameRules = module.UI_GameRules; }, function (module) { UI_Idioms = module.UI_Idioms; }, function (module) { UI_Settings = module.UI_Settings; }, function (module) { UI_Win = module.UI_Win; }, function (module) { Layout_Main = module.Layout_Main; }, function (module) { Container_Manager = module.Container_Manager; }, function (module) { Hall = module.Hall; }, function (module) { UI_TimesOver = module.UI_TimesOver; }], execute: function () { exports('ani_ui', ani_ui); var _dec, _class; cclegacy._RF.push({}, "31872b9CC5Fd6kJNVMdC0MF", "UI_Main", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Main = exports('UI_Main', (_dec = ccclass('UI_Main'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Main, _ui_base); function UI_Main() { var _this; _this = _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Main/Main', GameUILayers.GAME, Layout_Main) || this; _this.evt = ch.get_new_event(); _this.running = true; return _this; } var _proto = UI_Main.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { var _this2 = this; var layout; return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: layout = this.getLayout(); layout.Container = find('Container').getComponent(Container_Manager); this.onButtonEvent(layout.Pause_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(button) { return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: //打开设置界面 gui.show(UI_Settings); _this2.pause(); case 2: case "end": return _context.stop(); } }, _callee); })), this); this.onButtonEvent(layout.Rules_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(button) { return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: //打开游戏说明 gui.show(UI_GameRules); case 1: case "end": return _context2.stop(); } }, _callee2); })), this); //显示关卡数 layout.Level.string = '第' + (Hall.getInstance().player.get_max_floor() + 1) + '关'; //显示剩余方块 layout.Remain_Cube_Des.string = '剩余:' + gui.get(UI_Idioms).idioms.length * 2; //开始倒计时 this.new_level(); Hall.getInstance().player.get_max_floor(); layout.schedule(function () { if (_this2.running) { if (layout.time != 0) { layout.time -= 1; var minute = Math.floor(layout.time / 60); var second = layout.time % 60; layout.Count_Down_Des.string = (minute >= 10 ? minute : '0' + minute) + ':' + (second >= 10 ? second : '0' + second); } else { if (layout.Container.idioms.length > 0) { gui.show(UI_TimesOver); _this2.running = false; } } if (layout.Container.idioms.length <= 0) { console.log('恭喜你,通关成功'); Hall.getInstance().player.set_pass_level(1); Hall.getInstance().player.set_max_floor(Hall.getInstance().player.get_max_floor() + 1); Hall.getInstance().player.setDirty(); Hall.getInstance().player.save_rank_floor(); Hall.getInstance().player.save(); gui.show(UI_Win); _this2.running = false; } } }, 1.0); this.evt.on(this.evt.key.pause, this.pause, this); this.evt.on(this.evt.key.resume, this.resume, this); this.evt.on(this.evt.key.next_level, this.new_level, this); this.evt.on(this.evt.key.update_remain, this.remain, this); this.evt.on(this.evt.key.update_ui_idioms, this.ui_idioms, this); case 14: case "end": return _context3.stop(); } }, _callee3, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); _proto.new_level = function new_level() { var level = Hall.getInstance().player.get_max_floor(); var layout = this.getLayout(); layout.time = layout.Container.level_config[level].time; var minute = Math.floor(layout.Container.level_config[level].time / 60); var second = layout.Container.level_config[level].time % 60; layout.Count_Down_Des.string = (minute >= 10 ? minute : '0' + minute) + ':' + (second >= 10 ? second : '0' + second); layout.Remain_Cube_Des.string = '剩余:' + gui.get(UI_Idioms).idioms.length * 2; layout.Level.string = '第' + (Hall.getInstance().player.get_max_floor() + 1) + '关'; if (level == 0) { layout.Hand.active = true; } else { layout.Hand.active = false; } this.running = true; }; _proto.remain = function remain() { var layout = this.getLayout(); layout.Remain_Cube_Des.string = '剩余:' + gui.get(UI_Idioms).idioms.length * 2; }; _proto.ui_idioms = function ui_idioms() { gui.get(UI_Idioms).init(); }; _proto.pause = function pause() { this.running = false; }; _proto.resume = function resume() { this.running = true; }; _proto.onDispose = function onDispose() { var layout = this.getLayout(); layout.unscheduleAllCallbacks(); }; return UI_Main; }(ui_base)) || _class)); function ani_ui(node, end) { if (end === void 0) { end = 1.0; } gui.scale_elasticOut_anim(node, 1.2, 0.5, end); } cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Rank_Item.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './UI_Head_Icon.ts', './ch.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, Sprite, SpriteFrame, Label, Component, UI_Head_Icon, ch; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Sprite = module.Sprite; SpriteFrame = module.SpriteFrame; Label = module.Label; Component = module.Component; }, function (module) { UI_Head_Icon = module.UI_Head_Icon; }, function (module) { ch = module.ch; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8; cclegacy._RF.push({}, "ac170vYiRpERZJoeSznhVhO", "UI_Rank_Item", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Rank_Item = exports('UI_Rank_Item', (_dec = ccclass('UI_Rank_Item'), _dec2 = property(Sprite), _dec3 = property([SpriteFrame]), _dec4 = property(Sprite), _dec5 = property([SpriteFrame]), _dec6 = property(Label), _dec7 = property(UI_Head_Icon), _dec8 = property(Label), _dec9 = property(Label), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(UI_Rank_Item, _Component); function UI_Rank_Item() { 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, "Bg", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Bgs", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Medal", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Medals", _descriptor4, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Num", _descriptor5, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Head_Icon", _descriptor6, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Name", _descriptor7, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Level", _descriptor8, _assertThisInitialized(_this)); return _this; } var _proto = UI_Rank_Item.prototype; _proto.showInfo = function showInfo(index, type, data, me) { var _data$score; if (!data) { this.node.active = false; return; } this.node.active = true; if (me) { this.Bg.spriteFrame = this.Bgs[4]; index <= 3 ? this.Medal.spriteFrame = this.Medals[index - 1] : this.Medal.spriteFrame = this.Medals[3]; } else { index <= 3 ? this.Bg.spriteFrame = this.Bgs[index - 1] : this.Bg.spriteFrame = this.Bgs[3]; index <= 3 ? this.Medal.spriteFrame = this.Medals[index - 1] : this.Medal.spriteFrame = this.Medals[3]; } if (index > 3) { this.Medal.node.active = false; } else { this.Medal.node.active = true; } this.Num.string = index == 101 ? "未上榜" : index <= 3 ? '' : index.toString(); this.Name.string = ch.sdk.getDefNickName(data); this.Level.string = ((_data$score = data.score) != null ? _data$score : 0) + "\u5173"; console.log(data); this.Head_Icon.show(data.userId.toString(), data.head); }; return UI_Rank_Item; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "Bg", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Bgs", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Medal", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Medals", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "Num", [_dec6], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "Head_Icon", [_dec7], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "Name", [_dec8], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "Level", [_dec9], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return null; } })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Rank.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui.ts', './ui_base.ts', './UIWaiting.ts', './ModuleDef.ts', './Layout_Rank.ts', './UI_Rank_Item.ts', './UI_Main.ts', './Hall.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, GameUILayers, gui, ui_base, UIWaiting, ModuleDef, Layout_Rank, UI_Rank_Item, ani_ui, Hall; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { UIWaiting = module.UIWaiting; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Layout_Rank = module.Layout_Rank; }, function (module) { UI_Rank_Item = module.UI_Rank_Item; }, function (module) { ani_ui = module.ani_ui; }, function (module) { Hall = module.Hall; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "25b8cJMNUNOA77jdI7BF1kA", "UI_Rank", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; //1总榜2好友榜 var type = 1; var UI_Rank = exports('UI_Rank', (_dec = ccclass('UI_Rank'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Rank, _ui_base); function UI_Rank() { var _this; _this = _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Rank/Rank', GameUILayers.HUD, Layout_Rank) || this; _this._owner = void 0; _this._data = void 0; _this._openContext = void 0; return _this; } var _proto = UI_Rank.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { var _this2 = this; var layout; return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); this.onButtonEvent(layout.Close_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(button) { return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: //关闭设置界面 gui.close(UI_Rank); case 1: case "end": return _context.stop(); } }, _callee); })), this); layout.onList1 = function (item, index) { item.getComponent(UI_Rank_Item).showInfo(index + 1, type, _this2._data[index], false); }; layout.onList2 = function (item, index) { // item.getComponent(ui_skin_block).showInfo(index + 1, this._data2[index]); }; layout.Rank_Toggle_1.isChecked = type == 1; layout.Rank_Toggle_2.isChecked = type == 2; this.show(); this.onToggleEvent(layout.Rank_Toggle_1, function (tg, i) { if (tg.isChecked) _this2.show(i); }, this, 1); this.onToggleEvent(layout.Rank_Toggle_2, function (tg, i) { if (tg.isChecked) _this2.show(i); }, this, 2); case 10: case "end": return _context2.stop(); } }, _callee2, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); _proto.show = /*#__PURE__*/function () { var _show = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(t) { var layout, d, index, _d, _index; return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: layout = this.getLayout(); if (!(t != null)) { _context3.next = 5; break; } if (!(t == type)) { _context3.next = 4; break; } return _context3.abrupt("return"); case 4: type = t; // button_sound(); case 5: layout.Rank_Toggle_1.isChecked = type == 1; layout.Rank_Toggle_2.isChecked = type == 2; if (!(type == 1 || t == null)) { _context3.next = 23; break; } _context3.next = 10; return gui.show(UIWaiting); case 10: layout.list1.node.active = true; layout.list2.node.active = false; layout.list1.numItems = 0; _context3.next = 15; return Hall.getInstance().player.get_rank_floor(); case 15: d = _context3.sent; this._data = d.list; this._owner = d.owner; index = d.index; layout.list1.numItems = this._data.length; if (!this._owner) { this._owner = { head: Hall.getInstance().player.avatarUrl, nickName: Hall.getInstance().player.nickName, score: 0, userId: 0, province: Hall.getInstance().player.user_info.province }; } layout.own1_item.showInfo(index, type, this._owner, true); gui.close(UIWaiting); case 23: if (!(type == 2)) { _context3.next = 39; break; } _context3.next = 26; return gui.show(UIWaiting); case 26: layout.list2.node.active = true; layout.list1.node.active = false; layout.list2.numItems = 0; _context3.next = 31; return Hall.getInstance().player.get_rank_floor(); case 31: _d = _context3.sent; this._data = _d.list; this._owner = _d.owner; _index = _d.index; layout.list2.numItems = this._data.length; if (!this._owner) { this._owner = { head: Hall.getInstance().player.avatarUrl, nickName: Hall.getInstance().player.nickName, score: 0, userId: 0, province: Hall.getInstance().player.user_info.province }; } layout.own2_item.showInfo(_index, type, this._owner, true); gui.close(UIWaiting); case 39: case "end": return _context3.stop(); } }, _callee3, this); })); function show(_x2) { return _show.apply(this, arguments); } return show; }(); return UI_Rank; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Settings.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Layout_Settings.ts', './UI_Main.ts', './UI_Hall.ts', './ch.ts', './ui.ts', './ui_base.ts', './ResUtil.ts', './ModuleDef.ts', './SceneDef.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, director, Layout_Settings, ani_ui, UI_Main, UI_Hall, ch, GameUILayers, gui, ui_base, ResUtil, ModuleDef, SceneDef; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; director = module.director; }, function (module) { Layout_Settings = module.Layout_Settings; }, function (module) { ani_ui = module.ani_ui; UI_Main = module.UI_Main; }, function (module) { UI_Hall = module.UI_Hall; }, function (module) { ch = module.ch; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { ResUtil = module.ResUtil; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { SceneDef = module.SceneDef; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "74e38zkF0dMfY6EeNgP2Gbx", "UI_Settings", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Settings = exports('UI_Settings', (_dec = ccclass('UI_Settings'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Settings, _ui_base); function UI_Settings() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Settings/Settings', GameUILayers.HUD, Layout_Settings) || this; } var _proto = UI_Settings.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { var layout; return _regeneratorRuntime().wrap(function _callee5$(_context5) { while (1) switch (_context5.prev = _context5.next) { case 0: layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); if (director.getScene().name == 'hall') { layout.Defeat_Btn.node.active = false; } this.onButtonEvent(layout.Close_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(button) { return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: //关闭设置界面 gui.close(UI_Settings); if (director.getScene().name == 'main') { gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.resume); } case 2: case "end": return _context.stop(); } }, _callee); })), this); layout.Toggle_Music.isChecked = ch.audio.volumeMusic != 0; layout.Toggle_Sound.isChecked = ch.audio.switchEffect; this.onToggleEvent(layout.Toggle_Music, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(toggle) { return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: ch.audio.volumeMusic = toggle.isChecked; ch.audio.save(); // button_sound(); case 2: case "end": return _context2.stop(); } }, _callee2); })), this); this.onToggleEvent(layout.Toggle_Sound, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(toggle) { return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: ch.audio.switchEffect = toggle.isChecked; ch.audio.save(); // button_sound(); case 2: case "end": return _context3.stop(); } }, _callee3); })), this); this.onButtonEvent(layout.Defeat_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(button) { return _regeneratorRuntime().wrap(function _callee4$(_context4) { while (1) switch (_context4.prev = _context4.next) { case 0: _context4.next = 2; return gui.closeAll(); case 2: gui.show(UI_Hall); ResUtil.loadScene(SceneDef.Hall, ModuleDef.GAME, true); case 4: case "end": return _context4.stop(); } }, _callee4); })), this); case 9: case "end": return _context5.stop(); } }, _callee5, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); return UI_Settings; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_SideBar.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui.ts', './ui_base.ts', './ModuleDef.ts', './Layout_SideBar.ts', './UI_Main.ts', './Start.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, GameUILayers, gui, ui_base, ModuleDef, Layout_SideBar, ani_ui, Start; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Layout_SideBar = module.Layout_SideBar; }, function (module) { ani_ui = module.ani_ui; }, function (module) { Start = module.Start; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "53621eOLopL4LGEoVokwFS4", "UI_SideBar", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_SideBar = exports('UI_SideBar', (_dec = ccclass('UI_SideBar'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_SideBar, _ui_base); function UI_SideBar() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_SideBar/SideBar', GameUILayers.HUD, Layout_SideBar) || this; } var _proto = UI_SideBar.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var layout; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); this.onButtonEvent(layout.Close_Btn, function () { gui.close(UI_SideBar); }); this.onButtonEvent(layout.Go_SideBar, function () { //进入侧边栏 chsdk.goToSidebar(); }); layout.Logo.spriteFrame = layout.Logos[Start.packId]; case 5: case "end": return _context.stop(); } }, _callee, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); return UI_SideBar; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Sign.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './sign.ts', './ui.ts', './ui_base.ts', './ModuleDef.ts', './UI_Main.ts', './Layout_Sign.ts', './Hall.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Sprite, ch_sign, GameUILayers, gui, ui_base, ModuleDef, ani_ui, Layout_Sign, Hall; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Sprite = module.Sprite; }, function (module) { ch_sign = module.default; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { ani_ui = module.ani_ui; }, function (module) { Layout_Sign = module.Layout_Sign; }, function (module) { Hall = module.Hall; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "0aee2ozI6tC95ZSVqBOl1ws", "UI_Sign", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Sign = exports('UI_Sign', (_dec = ccclass('UI_Sign'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Sign, _ui_base); function UI_Sign() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Sign/Sign', GameUILayers.HUD, Layout_Sign) || this; } var _proto = UI_Sign.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { var _this = this; var layout; return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: layout = this.getLayout(); ani_ui(layout.Return.node.parent.parent); this.onButtonEvent(layout.Return, function () { gui.close(UI_Sign); }); this.onButtonEvent(layout.Free_Get, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: if (layout.Toggle.isChecked) { _this.Sign(true); } else { //不看广告 _this.Sign(false); } case 1: case "end": return _context.stop(); } }, _callee); }))); this.init_Sign(); case 5: case "end": return _context2.stop(); } }, _callee2, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); _proto.init_Sign = /*#__PURE__*/function () { var _init_Sign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { var layout, i; return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: layout = this.getLayout(); for (i = 0; i < 7; i++) { layout.Sign_Reward[i].show(i + 1); } if (!ch_sign.getInstance().checkSigin()) { layout.Free_Get.node.getComponent(Sprite).grayscale = true; layout.Free_Get.interactable = false; } case 3: case "end": return _context3.stop(); } }, _callee3, this); })); function init_Sign() { return _init_Sign.apply(this, arguments); } return init_Sign; }(); _proto.Sign = /*#__PURE__*/function () { var _Sign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(flag) { var layout, day, ret; return _regeneratorRuntime().wrap(function _callee4$(_context4) { while (1) switch (_context4.prev = _context4.next) { case 0: layout = this.getLayout(); _context4.next = 3; return ch_sign.getInstance().signIn(); case 3: day = _context4.sent; if (!(day == 0)) { _context4.next = 7; break; } _context4.next = 18; break; case 7: if (!flag) { _context4.next = 14; break; } _context4.next = 10; return chsdk.playRewardAd('领取双倍签到奖励'); case 10: ret = _context4.sent; if (ret) { Hall.getInstance().player.set_watch_ad_num(1); layout.Sign_Reward[day - 1].show(day); layout.Sign_Reward[day - 1].add_Item(flag); layout.Free_Get.node.getComponent(Sprite).grayscale = true; layout.Free_Get.interactable = false; } _context4.next = 18; break; case 14: layout.Sign_Reward[day - 1].show(day); layout.Sign_Reward[day - 1].add_Item(flag); layout.Free_Get.node.getComponent(Sprite).grayscale = true; layout.Free_Get.interactable = false; case 18: case "end": return _context4.stop(); } }, _callee4, this); })); function Sign(_x) { return _Sign.apply(this, arguments); } return Sign; }(); return UI_Sign; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Store.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui.ts', './ui_base.ts', './ModuleDef.ts', './Layout_Store.ts', './UI_Main.ts', './Hall.ts', './Toast.ts', './table_store.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, Sprite, GameUILayers, gui, ui_base, ModuleDef, Layout_Store, ani_ui, Hall, Toast, table_store; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; Sprite = module.Sprite; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Layout_Store = module.Layout_Store; }, function (module) { ani_ui = module.ani_ui; }, function (module) { Hall = module.Hall; }, function (module) { Toast = module.Toast; }, function (module) { table_store = module.table_store; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "60b3bv9XPZJKYK+7QPAcISg", "UI_Store", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Store = exports('UI_Store', (_dec = ccclass('UI_Store'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Store, _ui_base); function UI_Store() { var _this; _this = _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Store/Store', GameUILayers.HUD, Layout_Store) || this; _this.config = void 0; return _this; } var _proto = UI_Store.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { var _this2 = this; var layout, state, _loop, i, _loop2, _i; return _regeneratorRuntime().wrap(function _callee4$(_context6) { while (1) switch (_context6.prev = _context6.next) { case 0: this.config = table_store.getList(); console.log(this.config); layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); state = Hall.getInstance().player.get_store_state(); console.log("商店数组:" + state); this.onButtonEvent(layout.Close_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(button) { return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: gui.close(UI_Store); case 1: case "end": return _context.stop(); } }, _callee); }))); _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(i) { return _regeneratorRuntime().wrap(function _loop$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: if (state[i] == false) { _this2.onButtonEvent(layout.Free_Gets[i], /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(button) { var res, _res; return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: if (!(i != 0)) { _context2.next = 7; break; } _context2.next = 3; return chsdk.playRewardAd('获得道具' + _this2.config[i].type); case 3: res = _context2.sent; if (res) { Hall.getInstance().player.set_watch_ad_num(1); Hall.getInstance().player.add_item(_this2.config[i].type, 1); layout.Free_Gets[i].interactable = false; layout.Free_Gets[i].node.getComponent(Sprite).grayscale = true; state[i] = true; Hall.getInstance().player.set_store_state(state); Toast.makeText(gui.getLayerNode(5), '获得道具:' + _this2.config[i].name).show(); } _context2.next = 11; break; case 7: _context2.next = 9; return chsdk.playRewardAd('获得铜币'); case 9: _res = _context2.sent; if (_res) { Hall.getInstance().player.set_watch_ad_num(1); Hall.getInstance().player.set_coin(Hall.getInstance().player.get_coin() + 100); layout.Free_Gets[i].interactable = false; layout.Free_Gets[i].node.getComponent(Sprite).grayscale = true; _this2.show_Coin(); state[i] = true; Hall.getInstance().player.set_store_state(state); Toast.makeText(gui.getLayerNode(5), '获得铜币:X' + 100).show(); } case 11: case "end": return _context2.stop(); } }, _callee2); })), _this2); } else { layout.Free_Gets[i].interactable = false; layout.Free_Gets[i].node.getComponent(Sprite).grayscale = true; } case 1: case "end": return _context3.stop(); } }, _loop); }); i = 0; case 9: if (!(i < layout.Free_Gets.length)) { _context6.next = 14; break; } return _context6.delegateYield(_loop(i), "t0", 11); case 11: i++; _context6.next = 9; break; case 14: _loop2 = /*#__PURE__*/_regeneratorRuntime().mark(function _loop2(_i) { return _regeneratorRuntime().wrap(function _loop2$(_context5) { while (1) switch (_context5.prev = _context5.next) { case 0: _this2.onButtonEvent(layout.Coin_Gets[_i], /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(button) { return _regeneratorRuntime().wrap(function _callee3$(_context4) { while (1) switch (_context4.prev = _context4.next) { case 0: //花费铜币购买物品 if (Hall.getInstance().player.get_coin() >= _this2.config[_i + 1].cost) { Hall.getInstance().player.add_item(_this2.config[_i + 1], 1); Hall.getInstance().player.set_coin(Hall.getInstance().player.get_coin() - _this2.config[_i + 1].cost); Toast.makeText(gui.getLayerNode(5), '获得道具:' + _this2.config[_i + 1].name).show(); _this2.show_Coin(); } else { Toast.makeText(gui.getLayerNode(5), '铜币不足').show(); } case 1: case "end": return _context4.stop(); } }, _callee3); })), _this2); case 1: case "end": return _context5.stop(); } }, _loop2); }); _i = 0; case 16: if (!(_i < layout.Coin_Gets.length)) { _context6.next = 21; break; } return _context6.delegateYield(_loop2(_i), "t1", 18); case 18: _i++; _context6.next = 16; break; case 21: this.show_Coin(); case 22: case "end": return _context6.stop(); } }, _callee4, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); _proto.show_Coin = function show_Coin() { var layout = this.getLayout(); layout.Coin_Num.string = Hall.getInstance().player.get_coin().toString(); }; return UI_Store; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Task_Item.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './Hall.ts', './ui.ts', './UI_Task.ts', './Toast.ts'], function (exports) { var _applyDecoratedDescriptor, _inheritsLoose, _initializerDefineProperty, _assertThisInitialized, cclegacy, _decorator, ProgressBar, Label, Button, Sprite, SpriteFrame, Component, Hall, gui, UI_Task, Toast; return { setters: [function (module) { _applyDecoratedDescriptor = module.applyDecoratedDescriptor; _inheritsLoose = module.inheritsLoose; _initializerDefineProperty = module.initializerDefineProperty; _assertThisInitialized = module.assertThisInitialized; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; ProgressBar = module.ProgressBar; Label = module.Label; Button = module.Button; Sprite = module.Sprite; SpriteFrame = module.SpriteFrame; Component = module.Component; }, function (module) { Hall = module.Hall; }, function (module) { gui = module.gui; }, function (module) { UI_Task = module.UI_Task; }, function (module) { Toast = module.Toast; }], execute: function () { var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6; cclegacy._RF.push({}, "016bcam/A5JvLXaYhjRZdz9", "UI_Task_Item", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Task_Item = exports('UI_Task_Item', (_dec = ccclass('UI_Task_Item'), _dec2 = property(ProgressBar), _dec3 = property(Label), _dec4 = property(Button), _dec5 = property(Sprite), _dec6 = property([SpriteFrame]), _dec(_class = (_class2 = /*#__PURE__*/function (_Component) { _inheritsLoose(UI_Task_Item, _Component); function UI_Task_Item() { 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, "progressBar", _descriptor, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Des", _descriptor2, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Get", _descriptor3, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Get_Bg", _descriptor4, _assertThisInitialized(_this)); _initializerDefineProperty(_this, "Get_Bgs", _descriptor5, _assertThisInitialized(_this)); _this.config = void 0; _initializerDefineProperty(_this, "index", _descriptor6, _assertThisInitialized(_this)); _this.state = void 0; return _this; } var _proto = UI_Task_Item.prototype; _proto.start = function start() { this.Get.node.on(Button.EventType.CLICK, this.add_Item, this); }; _proto.update = function update(deltaTime) {} //更新进度 ; _proto.show = function show(flag, config) { this.config = config; this.state = flag; switch (config.type) { //消除 case 1: this.progressBar.progress = Hall.getInstance().player.get_use_item_num() / config.goal; this.Des.string = Hall.getInstance().player.get_use_item_num() + "/" + config.goal; break; //洗牌 合成 case 2: this.progressBar.progress = Hall.getInstance().player.get_combine_num() / config.goal; this.Des.string = Hall.getInstance().player.get_combine_num() + "/" + config.goal; break; //清空 登陆 case 3: this.progressBar.progress = Hall.getInstance().player.get_login_num() / config.goal; this.Des.string = Hall.getInstance().player.get_login_num() + "/" + config.goal; break; //铜币 过关 case 4: this.progressBar.progress = Hall.getInstance().player.get_pass_level() / config.goal; this.Des.string = Hall.getInstance().player.get_pass_level() + "/" + config.goal; break; //时间 广告 case 5: this.progressBar.progress = Hall.getInstance().player.get_watch_ad_num() / config.goal; this.Des.string = Hall.getInstance().player.get_watch_ad_num() + "/" + config.goal; break; } if (this.progressBar.progress == 1) { if (this.state) { this.Des.string = '已领取'; this.Get.interactable = false; this.Get_Bg.spriteFrame = this.Get_Bgs[0]; } else { this.Des.string = '可领取'; this.Get.interactable = true; this.Get_Bg.spriteFrame = this.Get_Bgs[1]; } } else { this.Get.interactable = false; this.Get_Bg.spriteFrame = this.Get_Bgs[0]; } } //添加东西 ; _proto.add_Item = function add_Item() { if (this.progressBar.progress == 1 && this.state == false) { if (this.config.type != 4) { Hall.getInstance().player.add_item(this.config.type, 1); Toast.makeText(gui.getLayerNode(5), '获得道具:' + this.config.name).show(); } else if (this.config.type == 4) { Hall.getInstance().player.set_coin(Hall.getInstance().player.get_coin() + 100); Toast.makeText(gui.getLayerNode(5), '获得铜币:X' + this.config.num).show(); } this.state = true; this.Des.string = '已领取'; this.Get_Bg.spriteFrame = this.Get_Bgs[0]; this.Get.interactable = false; gui.get(UI_Task).update_task_state(true, this.index); } }; return UI_Task_Item; }(Component), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "progressBar", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "Des", [_dec3], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "Get", [_dec4], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "Get_Bg", [_dec5], { configurable: true, enumerable: true, writable: true, initializer: null }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "Get_Bgs", [_dec6], { configurable: true, enumerable: true, writable: true, initializer: function initializer() { return []; } }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "index", [property], { configurable: true, enumerable: true, writable: true, initializer: null })), _class2)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Task.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui_base.ts', './Layout_Task.ts', './ui.ts', './ModuleDef.ts', './Hall.ts', './UI_Main.ts', './table_task.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, ui_base, Layout_Task, GameUILayers, gui, ModuleDef, Hall, ani_ui, table_task; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; }, function (module) { ui_base = module.default; }, function (module) { Layout_Task = module.Layout_Task; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Hall = module.Hall; }, function (module) { ani_ui = module.ani_ui; }, function (module) { table_task = module.table_task; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "9d50dhNkDpIm6jYTQWhnA9s", "UI_Task", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Task = exports('UI_Task', (_dec = ccclass('UI_Task'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Task, _ui_base); function UI_Task() { var _this; _this = _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Task/Task', GameUILayers.HUD, Layout_Task) || this; _this.task_state = void 0; _this.config = void 0; return _this; } var _proto = UI_Task.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var layout, i; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: this.config = table_task.getList(); layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); this.onButtonEvent(layout.Close_Btn, function () { gui.close(UI_Task); }); this.task_state = Hall.getInstance().player.get_task_state(); console.log("任务数组:" + this.task_state); for (i = 0; i < layout.Task_Items.length; i++) { layout.Task_Items[i].show(this.task_state[i], this.config[i]); } case 7: case "end": return _context.stop(); } }, _callee, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }() //更新task_state并保存 ; _proto.update_task_state = /*#__PURE__*/ function () { var _update_task_state = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(flag, target) { return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: this.task_state[target] = flag; Hall.getInstance().player.set_task_state(this.task_state); Hall.getInstance().player.setDirty(); case 3: case "end": return _context2.stop(); } }, _callee2, this); })); function update_task_state(_x, _x2) { return _update_task_state.apply(this, arguments); } return update_task_state; }(); return UI_Task; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_TimesOver.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui_base.ts', './ui.ts', './ModuleDef.ts', './Layout_TimesOver.ts', './UI_Fail.ts', './Hall.ts', './UI_Main.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, ui_base, GameUILayers, gui, ModuleDef, Layout_TimesOver, UI_Fail, Hall, ani_ui, UI_Main; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; }, function (module) { ui_base = module.default; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { Layout_TimesOver = module.Layout_TimesOver; }, function (module) { UI_Fail = module.UI_Fail; }, function (module) { Hall = module.Hall; }, function (module) { ani_ui = module.ani_ui; UI_Main = module.UI_Main; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "93f49g+PURGyJ0pLDMhVj8P", "UI_TimesOver", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_TimesOver = exports('UI_TimesOver', (_dec = ccclass('UI_TimesOver'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_TimesOver, _ui_base); function UI_TimesOver() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_TimesOver/TimesOver', GameUILayers.HUD, Layout_TimesOver) || this; } var _proto = UI_TimesOver.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { var layout, num; return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: layout = this.getLayout(); ani_ui(layout.Close_Btn.node.parent); gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.pause); num = Hall.getInstance().player.get_item(5); if (num > 0) { layout.AddTime_Ad.node.active = false; layout.RedPoint_num.node.parent.active = true; layout.RedPoint_num.string = num.toString(); } else { layout.AddTime_Ad.node.active = true; layout.RedPoint_num.node.parent.active = false; } //已经消除方块/总方块 layout.progressBar.progress = (gui.get(UI_Main).getLayout().Container.count - gui.get(UI_Main).getLayout().Container.idioms.length) / gui.get(UI_Main).getLayout().Container.count; console.log(gui.get(UI_Main).getLayout().Container.count, gui.get(UI_Main).getLayout().Container.idioms.length); layout.progressBar_Percent.string = Math.floor(layout.progressBar.progress * 100) + '%'; this.onButtonEvent(layout.Close_Btn, function () { gui.close(UI_TimesOver); gui.show(UI_Fail); }); this.onButtonEvent(layout.AddTime, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var ret; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: if (!(num <= 0)) { _context.next = 7; break; } _context.next = 3; return chsdk.playRewardAd('获得道具5'); case 3: ret = _context.sent; if (ret) { gui.close(UI_TimesOver); //增加时间 Hall.getInstance().player.add_item(5, 1); Hall.getInstance().player.use_item(5); gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.resume); } _context.next = 10; break; case 7: gui.close(UI_TimesOver); Hall.getInstance().player.use_item(5); //增加时间 gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.resume); case 10: case "end": return _context.stop(); } }, _callee); }))); case 10: case "end": return _context2.stop(); } }, _callee2, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); return UI_TimesOver; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); System.register("chunks:///_virtual/UI_Win.ts", ['./rollupPluginModLoBabelHelpers.js', 'cc', './ui.ts', './ui_base.ts', './ResUtil.ts', './ModuleDef.ts', './SceneDef.ts', './UI_Hall.ts', './UI_Main.ts', './Layout_Win.ts', './Container_Manager.ts', './Hall.ts'], function (exports) { var _inheritsLoose, _asyncToGenerator, _regeneratorRuntime, cclegacy, _decorator, find, Sprite, GameUILayers, gui, ui_base, ResUtil, ModuleDef, SceneDef, UI_Hall, ani_ui, UI_Main, Layout_Win, Container_Manager, Hall; return { setters: [function (module) { _inheritsLoose = module.inheritsLoose; _asyncToGenerator = module.asyncToGenerator; _regeneratorRuntime = module.regeneratorRuntime; }, function (module) { cclegacy = module.cclegacy; _decorator = module._decorator; find = module.find; Sprite = module.Sprite; }, function (module) { GameUILayers = module.GameUILayers; gui = module.gui; }, function (module) { ui_base = module.default; }, function (module) { ResUtil = module.ResUtil; }, function (module) { ModuleDef = module.ModuleDef; }, function (module) { SceneDef = module.SceneDef; }, function (module) { UI_Hall = module.UI_Hall; }, function (module) { ani_ui = module.ani_ui; UI_Main = module.UI_Main; }, function (module) { Layout_Win = module.Layout_Win; }, function (module) { Container_Manager = module.Container_Manager; }, function (module) { Hall = module.Hall; }], execute: function () { var _dec, _class; cclegacy._RF.push({}, "83142byQEVIGK9m///c1wq2", "UI_Win", undefined); var ccclass = _decorator.ccclass, property = _decorator.property; var UI_Win = exports('UI_Win', (_dec = ccclass('UI_Win'), _dec(_class = /*#__PURE__*/function (_ui_base) { _inheritsLoose(UI_Win, _ui_base); function UI_Win() { return _ui_base.call(this, ModuleDef.GAME, 'ui/UI_Win/Win', GameUILayers.HUD, Layout_Win) || this; } var _proto = UI_Win.prototype; _proto.onCreated = /*#__PURE__*/function () { var _onCreated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { var layout; return _regeneratorRuntime().wrap(function _callee4$(_context4) { while (1) switch (_context4.prev = _context4.next) { case 0: layout = this.getLayout(); ani_ui(layout.Three_Btn.node.parent.parent); layout.Container = find('Container').getComponent(Container_Manager); Hall.getInstance().player.set_coin(Hall.getInstance().player.get_coin() + 50); this.onButtonEvent(layout.Three_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(button) { var ret; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 2; return chsdk.playRewardAd('三倍获取铜币'); case 2: ret = _context.sent; if (ret) { Hall.getInstance().player.set_coin(Hall.getInstance().player.get_coin() + 150 - 50); //按钮置灰 点击无效 layout.Three_Btn.interactable = false; layout.Three_Btn.node.getComponent(Sprite).grayscale = true; layout.Txt.string = '铜币+150'; } case 4: case "end": return _context.stop(); } }, _callee); })), this); this.onButtonEvent(layout.Next_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(button) { return _regeneratorRuntime().wrap(function _callee2$(_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: //下一关 gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.next_level); gui.close(UI_Win); layout.Container.level_idioms(); gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.update_ui_idioms); gui.get(UI_Main).evt.emit(gui.get(UI_Main).evt.key.update_remain); //关卡难度 //重新选词 //刷新UI_Idioms //计时刷新,剩余方块数量刷新 case 5: case "end": return _context2.stop(); } }, _callee2); })), this); this.onButtonEvent(layout.ReturnHall_Btn, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(button) { return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: _context3.next = 2; return gui.closeAll(); case 2: gui.show(UI_Hall); ResUtil.loadScene(SceneDef.Hall, ModuleDef.GAME, true); case 4: case "end": return _context3.stop(); } }, _callee3); })), this); case 7: case "end": return _context4.stop(); } }, _callee4, this); })); function onCreated() { return _onCreated.apply(this, arguments); } return onCreated; }(); return UI_Win; }(ui_base)) || _class)); cclegacy._RF.pop(); } }; }); (function(r) { r('virtual:///prerequisite-imports/module_game', 'chunks:///_virtual/module_game'); })(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 () { } }; }); });