a3f2ca54-169e-4225-a269-e6e16b312d87.js 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. "use strict";
  2. cc._RF.push(module, 'a3f2cpUFp5CJaJp5uFrMS2H', 'PopOutPanelView');
  3. // Script/view/popView/PopOutPanelView.ts
  4. "use strict";
  5. var __extends = (this && this.__extends) || (function () {
  6. var extendStatics = function (d, b) {
  7. extendStatics = Object.setPrototypeOf ||
  8. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  9. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  10. return extendStatics(d, b);
  11. };
  12. return function (d, b) {
  13. extendStatics(d, b);
  14. function __() { this.constructor = d; }
  15. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  16. };
  17. })();
  18. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  19. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  20. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  21. 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;
  22. return c > 3 && r && Object.defineProperty(target, key, r), r;
  23. };
  24. Object.defineProperty(exports, "__esModule", { value: true });
  25. var BaseView_1 = require("../../../lightMVC/core/base/BaseView");
  26. var App_1 = require("../../Manager/App");
  27. var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
  28. var PopOutPanelView = /** @class */ (function (_super) {
  29. __extends(PopOutPanelView, _super);
  30. function PopOutPanelView() {
  31. return _super !== null && _super.apply(this, arguments) || this;
  32. }
  33. PopOutPanelView.prototype.drawView = function () {
  34. var _this = this;
  35. // 关闭按钮
  36. var closeBtn = this.ui.getNode("close_button");
  37. closeBtn.on(cc.Node.EventType.TOUCH_END, function () {
  38. //this.node.parent.getChildByName("blackBg").destroy();
  39. _this.closeView();
  40. }, this);
  41. var out_rule = this.ui.getNode("out_rule");
  42. out_rule.on(cc.Node.EventType.TOUCH_END, function () {
  43. // App.Facade.popView(RulePanelMediator, RulePanel, "规则", true);
  44. }, this);
  45. this.xunlian();
  46. this.work();
  47. };
  48. PopOutPanelView.prototype.setLevelDisplay = function (lv) {
  49. var levelLabel = this.ui.getComponent("des_label", cc.Label);
  50. levelLabel.string = "当前等级为:" + lv;
  51. };
  52. //训练
  53. PopOutPanelView.prototype.xunlian = function () {
  54. var xunlian = this.ui.getNode("xunlian");
  55. var join = xunlian.getChildByName("out_join");
  56. join.on(cc.Node.EventType.TOUCH_END, function () {
  57. App_1.App.TipsManager.showmid("功能暂未开放,敬请期待");
  58. }, this);
  59. };
  60. //训练
  61. PopOutPanelView.prototype.work = function () {
  62. var work = this.ui.getNode("work");
  63. var join = work.getChildByName("out_join");
  64. join.on(cc.Node.EventType.TOUCH_END, function () {
  65. App_1.App.TipsManager.showmid("功能暂未开放,敬请期待");
  66. }, this);
  67. };
  68. PopOutPanelView.path = function () {
  69. return "prefabs/PopOutPanel";
  70. };
  71. PopOutPanelView.UPDATE_LEVEL = "UPDATE_LEVEL";
  72. PopOutPanelView = __decorate([
  73. ccclass
  74. ], PopOutPanelView);
  75. return PopOutPanelView;
  76. }(BaseView_1.BaseView));
  77. exports.default = PopOutPanelView;
  78. cc._RF.pop();