1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- var t = require;
- var e = module;
- var i = exports;
- var s =
- (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 }), (i.PanelAni = void 0);
- const { ccclass: o, menu: a } = cc._decorator;
- (e = class extends cc.Component {
- constructor() {
- super(...arguments), (this.isPlaying = !1);
- }
- showPanel() {
- this.node.stopAllActions(),
- cc
- .tween(this.node)
- .to(0.05, { scaleX: 1, scaleY: 1.1 })
- .to(0.2, { scaleX: 1.05, scaleY: 1 }, { easing: cc.easing.quadOut })
- .to(0.2, { scaleX: 1 }, { easing: cc.easing.quadOut })
- .start();
- }
- hidePanel(t) {
- (this.isPlaying = !0),
- this.node.stopAllActions(),
- cc
- .tween(this.node)
- .to(0.05, { scale: 0 })
- .call(() => {
- t && t();
- })
- .start();
- }
- }),
- (e = s([o], e));
- i.PanelAni = e;
|