1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- var t = require;
- var e = module;
- var i = exports;
- e =
- (this && this.__decorate) ||
- function (t, e, i, s) {
- var o,
- a = arguments.length,
- n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s);
- else
- for (var r = t.length - 1; 0 <= r; r--)
- (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n);
- return 3 < a && n && Object.defineProperty(e, i, n), n;
- };
- Object.defineProperty(i, "__esModule", {value: !0});
- const s = t("App"),
- o = t("BaseView"),
- a = t("EffectUtils"),
- n = t("BagController"),
- {ccclass: r, property: l} = cc._decorator;
- t = class extends o.default {
- constructor() {
- super(...arguments),
- (this.diamondCntLab = null),
- (this.diamondIcon = null),
- (this.bgType = 1),
- (this.item = null);
- }
- initUI() {
- super.initUI();
- }
- open(t) {
- super.open(), (this.num = t), (this.diamondCntLab.string = "" + t);
- }
- playDiamonAni() {
- if (this.num) {
- const i = s.default.ViewManager.uiRoot;
- var t = this.node.convertToWorldSpaceAR(cc.Vec2.ZERO),
- t = i.convertToNodeSpaceAR(t),
- e = this.diamondIcon.convertToWorldSpaceAR(cc.Vec2.ZERO),
- e = i.convertToNodeSpaceAR(e);
- a.default.instance.playMoneyAni(t, e, n.CostType.diamond, i, this.num);
- }
- }
- onTouchClose() {
- super.onTouchClose(), this.playDiamonAni();
- }
- };
- e([l({type: cc.Label})], t.prototype, "diamondCntLab", void 0),
- e([l({type: cc.Node})], t.prototype, "diamondIcon", void 0),
- (t = e([r], t)),
- (i.default = t);
|