(function() {
var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
var __module = nodeEnv ? module : {exports:{}};
var __filename = 'preview-scripts/__qc_index__.js';
var __require = nodeEnv ? function (request) {
return cc.require(request);
} : function (request) {
return __quick_compile_project__.require(request, __filename);
};
function __define (exports, require, module) {
if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}
require('./assets/scripts/framework/3rd/protobuf');
require('./assets/scripts/framework/common/UIFunciton');
require('./assets/scripts/framework/common/UserInfo');
require('./assets/scripts/framework/config/EventDefine');
require('./assets/scripts/framework/config/GameAppConfig');
require('./assets/scripts/framework/config/GameHoodleConfig');
require('./assets/scripts/framework/config/LSDefine');
require('./assets/scripts/framework/config/PlatForm');
require('./assets/scripts/framework/manager/AudioManager');
require('./assets/scripts/framework/manager/EventManager');
require('./assets/scripts/framework/manager/ResourceManager');
require('./assets/scripts/framework/manager/SceneManager');
require('./assets/scripts/framework/manager/TimerManager');
require('./assets/scripts/framework/uibase/BaseScene');
require('./assets/scripts/framework/uibase/UIController');
require('./assets/scripts/framework/utils/ArrayUtil');
require('./assets/scripts/framework/utils/Base64');
require('./assets/scripts/framework/utils/BezierMaker');
require('./assets/scripts/framework/utils/DataViewUtil');
require('./assets/scripts/framework/utils/DateUtil');
require('./assets/scripts/framework/utils/HttpUtil');
require('./assets/scripts/framework/utils/Log');
require('./assets/scripts/framework/utils/Queue');
require('./assets/scripts/framework/utils/SDKAdapter');
require('./assets/scripts/framework/utils/Scroll/UIScrollSelectY');
require('./assets/scripts/framework/utils/Scroll/cores/UISuperItem');
require('./assets/scripts/framework/utils/Scroll/cores/UISuperLayout');
require('./assets/scripts/framework/utils/Scroll/cores/UISuperScrollView');
require('./assets/scripts/framework/utils/Scroll/verticalItem');
require('./assets/scripts/framework/utils/Scroll/verticalSimple');
require('./assets/scripts/framework/utils/Storage');
require('./assets/scripts/framework/utils/StringUtil');
require('./assets/scripts/gamebase/GameApp');
require('./assets/scripts/gamebase/Model/EquipModel');
require('./assets/scripts/gamebase/Model/LanguageModel');
require('./assets/scripts/gamebase/OC/OCManager');
require('./assets/scripts/gamebase/common/Global');
require('./assets/scripts/gamebase/common/State');
require('./assets/scripts/gamebase/scene/Bag/BagItem');
require('./assets/scripts/gamebase/scene/Bag/BagPanel');
require('./assets/scripts/gamebase/scene/Panels/AboutUI');
require('./assets/scripts/gamebase/scene/Panels/DayUI');
require('./assets/scripts/gamebase/scene/Panels/LoseUI');
require('./assets/scripts/gamebase/scene/Panels/PauseUI');
require('./assets/scripts/gamebase/scene/Panels/SetUI');
require('./assets/scripts/gamebase/scene/Panels/TeachUI');
require('./assets/scripts/gamebase/scene/Panels/TeamUI');
require('./assets/scripts/gamebase/scene/Panels/TurntableUI');
require('./assets/scripts/gamebase/scene/Panels/WinUI');
require('./assets/scripts/gamebase/scene/gameScene/EnemyCtrl');
require('./assets/scripts/gamebase/scene/gameScene/GameScene');
require('./assets/scripts/gamebase/scene/gameScene/GameSceneCtrl');
require('./assets/scripts/gamebase/scene/gameScene/HeroCtrl');
require('./assets/scripts/gamebase/scene/mainScene/MainScene');
require('./assets/scripts/gamebase/scene/mainScene/MainSceneCtrl');
require('./assets/scripts/gamebase/scene/startScene/StartScene');
require('./assets/scripts/gamebase/scene/startScene/StartSceneCtrl');
}
if (nodeEnv) {
__define(__module.exports, __require, __module);
}
else {
__quick_compile_project__.registerModuleFunc(__filename, function () {
__define(__module.exports, __require, __module);
});
}
})();
//------QC-SOURCE-SPLIT------
(function() {
var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
var __module = nodeEnv ? module : {exports:{}};
var __filename = 'preview-scripts/assets/scripts/gamebase/scene/Bag/BagPanel.js';
var __require = nodeEnv ? function (request) {
return cc.require(request);
} : function (request) {
return __quick_compile_project__.require(request, __filename);
};
function __define (exports, require, module) {
if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, '327f8Pq+V1FcIHV8c2yRdEi', 'BagPanel');
// scripts/gamebase/scene/Bag/BagPanel.ts
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const UserInfo_1 = require("../../../framework/common/UserInfo");
const EventManager_1 = require("../../../framework/manager/EventManager");
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const UIController_1 = require("../../../framework/uibase/UIController");
const StringUtil_1 = require("../../../framework/utils/StringUtil");
const EquipModel_1 = require("../../Model/EquipModel");
const BagItem_1 = require("./BagItem");
const { ccclass, property } = cc._decorator;
let BagPanel = /** @class */ (() => {
let BagPanel = class BagPanel extends UIController_1.default {
constructor() {
super(...arguments);
/**所有的格子 */
this.Cells = [];
/**物品的预设体 */
this.ShopItem = null;
/**所有的标准物体,未随机属性 */
this.allModels = [];
/**所有的普通标准物品 */
this.CommonPool = [];
/**所有的稀有标准物品 */
this.RarePool = [];
/**所有的精良标准物品 */
this.EpicPool = [];
/**所有的传说标准物品 */
this.LegendaryPool = [];
/**显示的信息,可删除 */
this.AllShowLabel = [];
/**选中效果 */
this.ChooseItem = null;
/**当前装备ID */
this.CurrentEquipID = null;
this.CurrentItem = null;
}
onLoad() {
super.onLoad();
this.Cells = this.AllView("cell");
this.ChooseItem = this.view["ChooseItem"];
this.ChooseItem.active = false;