123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- var t = require;
- var e = module;
- var i = exports;
- var s,
- 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;
- },
- o =
- (this && this.__awaiter) ||
- function(t, n, r, l) {
- return new(r = r || Promise)(function(i, e) {
- function s(t) {
- try {
- a(l.next(t));
- } catch (t) {
- e(t);
- }
- }
- function o(t) {
- try {
- a(l.throw(t));
- } catch (t) {
- e(t);
- }
- }
- function a(t) {
- var e;
- t.done ?
- i(t.value) :
- ((e = t.value) instanceof r ?
- e :
- new r(function(t) {
- t(e);
- })
- ).then(s, o);
- }
- a((l = l.apply(t, n || [])).next());
- });
- };
- Object.defineProperty(i, "__esModule", { value: !0 });
- const a = t("App"),
- { property: n, ccclass: r, menu: l } = cc._decorator;
- t = s = class extends cc.Component {
- constructor() {
- super(...arguments), (this.desc = null), (this.img = null);
- }
- static newInstance() {
- return o(this, void 0, void 0, function*() {
- var t = yield AssetManager.instance.autoLoadAssetAsync(s.ASSET_REQUEST);
- return cc.instantiate(t).getComponent(s);
- });
- }
- setLabel(t) {
- t
- ?
- (this.img && (this.img.node.active = !0), a.default.CommonUtils.setSpriteFrame("Font/" + t, this.img)) :
- this.img && (this.img.node.active = !1);
- }
- dispose() {
- this.node.removeFromParent(), this.destroy();
- }
- };
- (t.ASSET_REQUEST = { url: "prefab/view/guide/GodArrow", clazz: cc.Prefab, cache: !0, local: !0 }),
- e([n(cc.Label)], t.prototype, "desc", void 0),
- e([n(cc.Sprite)], t.prototype, "img", void 0),
- (t = s = e([r], t)),
- (i.default = t = s);
|