"use strict"; cc._RF.push(module, 'a3f2cpUFp5CJaJp5uFrMS2H', 'PopOutPanelView'); // Script/view/popView/PopOutPanelView.ts "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); 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 }); var BaseView_1 = require("../../../lightMVC/core/base/BaseView"); var App_1 = require("../../Manager/App"); var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property; var PopOutPanelView = /** @class */ (function (_super) { __extends(PopOutPanelView, _super); function PopOutPanelView() { return _super !== null && _super.apply(this, arguments) || this; } PopOutPanelView.prototype.drawView = function () { var _this = this; // 关闭按钮 var closeBtn = this.ui.getNode("close_button"); closeBtn.on(cc.Node.EventType.TOUCH_END, function () { //this.node.parent.getChildByName("blackBg").destroy(); _this.closeView(); }, this); var out_rule = this.ui.getNode("out_rule"); out_rule.on(cc.Node.EventType.TOUCH_END, function () { // App.Facade.popView(RulePanelMediator, RulePanel, "规则", true); }, this); this.xunlian(); this.work(); }; PopOutPanelView.prototype.setLevelDisplay = function (lv) { var levelLabel = this.ui.getComponent("des_label", cc.Label); levelLabel.string = "当前等级为:" + lv; }; //训练 PopOutPanelView.prototype.xunlian = function () { var xunlian = this.ui.getNode("xunlian"); var join = xunlian.getChildByName("out_join"); join.on(cc.Node.EventType.TOUCH_END, function () { App_1.App.TipsManager.showmid("功能暂未开放,敬请期待"); }, this); }; //训练 PopOutPanelView.prototype.work = function () { var work = this.ui.getNode("work"); var join = work.getChildByName("out_join"); join.on(cc.Node.EventType.TOUCH_END, function () { App_1.App.TipsManager.showmid("功能暂未开放,敬请期待"); }, this); }; PopOutPanelView.path = function () { return "prefabs/PopOutPanel"; }; PopOutPanelView.UPDATE_LEVEL = "UPDATE_LEVEL"; PopOutPanelView = __decorate([ ccclass ], PopOutPanelView); return PopOutPanelView; }(BaseView_1.BaseView)); exports.default = PopOutPanelView; cc._RF.pop();