85fd69e1a920288617adf1b8791df9dbe36d4a4c.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2"], function (_export, _context) {
  2. "use strict";
  3. var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, ecs, CCComp, Label, _dec, _dec2, _class, _crd, ccclass, property, DemoViewComp;
  4. function _reportPossibleCrUseOfecs(extras) {
  5. _reporterNs.report("ecs", "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS", _context.meta, extras);
  6. }
  7. function _reportPossibleCrUseOfCCComp(extras) {
  8. _reporterNs.report("CCComp", "../../../../../extensions/oops-plugin-framework/assets/module/common/CCComp", _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. Label = _cc.Label;
  19. }, function (_unresolved_2) {
  20. ecs = _unresolved_2.ecs;
  21. }, function (_unresolved_3) {
  22. CCComp = _unresolved_3.CCComp;
  23. }],
  24. execute: function () {
  25. _crd = true;
  26. _cclegacy._RF.push({}, "78b5dVjj81IxoHGx2PAK8bT", "DemoViewComp", undefined);
  27. /*
  28. * @Author: mojunshou 1637302775@qq.com
  29. * @Date: 2025-02-26 17:11:55
  30. * @LastEditors: mojunshou 1637302775@qq.com
  31. * @LastEditTime: 2025-02-27 16:29:40
  32. * @FilePath: \Cocos_android\assets\script\game\account\view\DemoViewComp.ts
  33. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  34. */
  35. __checkObsolete__(['_decorator']);
  36. __checkObsolete__(['Label']);
  37. ({
  38. ccclass,
  39. property
  40. } = _decorator);
  41. /** 视图层对象 */
  42. _export("DemoViewComp", DemoViewComp = (_dec = ccclass('DemoViewComp'), _dec2 = (_crd && ecs === void 0 ? (_reportPossibleCrUseOfecs({
  43. error: Error()
  44. }), ecs) : ecs).register('DemoView', false), _dec(_class = _dec2(_class = class DemoViewComp extends (_crd && CCComp === void 0 ? (_reportPossibleCrUseOfCCComp({
  45. error: Error()
  46. }), CCComp) : CCComp) {
  47. start() {
  48. var _this$node$getChildBy;
  49. const text = (_this$node$getChildBy = this.node.getChildByName("textLb")) == null ? void 0 : _this$node$getChildBy.getComponent(Label);
  50. if (text) {
  51. text.string = "这是开始游戏的场景";
  52. }
  53. }
  54. reset() {
  55. this.node.destroy();
  56. }
  57. }) || _class) || _class));
  58. _cclegacy._RF.pop();
  59. _crd = false;
  60. }
  61. };
  62. });
  63. //# sourceMappingURL=85fd69e1a920288617adf1b8791df9dbe36d4a4c.js.map