47c8e77781a159f10d589db5916314688580bc33.js 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. System.register(["__unresolved_0", "cc", "__unresolved_1"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, Sprite, SpriteFrame, Hall, _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2, _crd, ccclass, property, UI_Head_Icon;
  4. function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
  5. function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
  6. function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
  7. function _reportPossibleCrUseOfHall(extras) {
  8. _reporterNs.report("Hall", "db://assets/Scripts/Hall", _context.meta, extras);
  9. }
  10. return {
  11. setters: [function (_unresolved_) {
  12. _reporterNs = _unresolved_;
  13. }, function (_cc) {
  14. _cclegacy = _cc.cclegacy;
  15. __checkObsolete__ = _cc.__checkObsolete__;
  16. __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
  17. _decorator = _cc._decorator;
  18. Component = _cc.Component;
  19. Sprite = _cc.Sprite;
  20. SpriteFrame = _cc.SpriteFrame;
  21. }, function (_unresolved_2) {
  22. Hall = _unresolved_2.Hall;
  23. }],
  24. execute: function () {
  25. _crd = true;
  26. _cclegacy._RF.push({}, "32da00Ug65PLLJF/VDL1/LR", "UI_Head_Icon", undefined);
  27. __checkObsolete__(['_decorator', 'Component', 'Node', 'Sprite', 'SpriteFrame']);
  28. ({
  29. ccclass,
  30. property
  31. } = _decorator);
  32. _export("UI_Head_Icon", UI_Head_Icon = (_dec = ccclass('UI_Head_Icon'), _dec2 = property(Sprite), _dec3 = property([SpriteFrame]), _dec(_class = (_class2 = class UI_Head_Icon extends Component {
  33. constructor() {
  34. super(...arguments);
  35. _initializerDefineProperty(this, "head", _descriptor, this);
  36. _initializerDefineProperty(this, "default_head", _descriptor2, this);
  37. }
  38. start() {}
  39. update(deltaTime) {}
  40. show(uid, head) {
  41. var rc = this.default_head[0];
  42. (_crd && Hall === void 0 ? (_reportPossibleCrUseOfHall({
  43. error: Error()
  44. }), Hall) : Hall).getInstance().head_icon.showIcon(uid, head, this.head, rc);
  45. }
  46. }, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "head", [_dec2], {
  47. configurable: true,
  48. enumerable: true,
  49. writable: true,
  50. initializer: null
  51. }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "default_head", [_dec3], {
  52. configurable: true,
  53. enumerable: true,
  54. writable: true,
  55. initializer: function initializer() {
  56. return [];
  57. }
  58. })), _class2)) || _class));
  59. _cclegacy._RF.pop();
  60. _crd = false;
  61. }
  62. };
  63. });
  64. //# sourceMappingURL=47c8e77781a159f10d589db5916314688580bc33.js.map