CostumeSpecialItem.js 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. var t = require;
  2. var e = module;
  3. var i = exports;
  4. e =
  5. (this && this.__decorate) ||
  6. function (t, e, i, s) {
  7. var o,
  8. a = arguments.length,
  9. n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s;
  10. if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s);
  11. else
  12. for (var r = t.length - 1; 0 <= r; r--)
  13. (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n);
  14. return 3 < a && n && Object.defineProperty(e, i, n), n;
  15. };
  16. Object.defineProperty(i, "__esModule", {value: !0});
  17. const s = t("SwitchFrame"),
  18. {ccclass: o, property: a} = cc._decorator;
  19. t = class extends cc.Component {
  20. constructor() {
  21. super(...arguments), (this.str = null), (this.lockNode = null), (this.switchFrame = null);
  22. }
  23. setData(t, e, i, s) {
  24. (this.str.string = t), (this.lockNode.active = !i), (this.switchFrame.frameIndex = s ? 0 : 1);
  25. }
  26. };
  27. e([a(cc.RichText)], t.prototype, "str", void 0),
  28. e([a(cc.Node)], t.prototype, "lockNode", void 0),
  29. e([a(s.default)], t.prototype, "switchFrame", void 0),
  30. (t = e([o], t)),
  31. (i.default = t);