System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3"], function (_export, _context) {
  "use strict";

  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, ecs, CCComp, Label, oops, _dec, _dec2, _class, _crd, ccclass, property, DemoViewComp;

  function _reportPossibleCrUseOfecs(extras) {
    _reporterNs.report("ecs", "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS", _context.meta, extras);
  }

  function _reportPossibleCrUseOfCCComp(extras) {
    _reporterNs.report("CCComp", "../../../../../extensions/oops-plugin-framework/assets/module/common/CCComp", _context.meta, extras);
  }

  function _reportPossibleCrUseOfoops(extras) {
    _reporterNs.report("oops", "db://oops-framework/core/Oops", _context.meta, extras);
  }

  return {
    setters: [function (_unresolved_) {
      _reporterNs = _unresolved_;
    }, function (_cc) {
      _cclegacy = _cc.cclegacy;
      __checkObsolete__ = _cc.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
      _decorator = _cc._decorator;
      Label = _cc.Label;
    }, function (_unresolved_2) {
      ecs = _unresolved_2.ecs;
    }, function (_unresolved_3) {
      CCComp = _unresolved_3.CCComp;
    }, function (_unresolved_4) {
      oops = _unresolved_4.oops;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "78b5dVjj81IxoHGx2PAK8bT", "DemoViewComp", undefined);
      /*
       * @Author: mojunshou 1637302775@qq.com
       * @Date: 2025-02-26 17:11:55
       * @LastEditors: mojunshou 1637302775@qq.com
       * @LastEditTime: 2025-03-11 17:21:52
       * @FilePath: \Cocos_android\assets\script\game\account\view\DemoViewComp.ts
       * @Description: DemoView场景文件
       */


      __checkObsolete__(['_decorator']);

      __checkObsolete__(['Label']);

      __checkObsolete__(['EventTouch']);

      ({
        ccclass,
        property
      } = _decorator);
      /** 视图层对象 */

      _export("DemoViewComp", DemoViewComp = (_dec = ccclass('DemoViewComp'), _dec2 = (_crd && ecs === void 0 ? (_reportPossibleCrUseOfecs({
        error: Error()
      }), ecs) : ecs).register('DemoView', false), _dec(_class = _dec2(_class = class DemoViewComp extends (_crd && CCComp === void 0 ? (_reportPossibleCrUseOfCCComp({
        error: Error()
      }), CCComp) : CCComp) {
        start() {
          var _this$getNode;

          this.setButton();
          this.setEvent("onGlobal1", "onGlobal2");
          const Lb = this.getNode("textLb");
          console.log("Lb", Lb);
          const text = (_this$getNode = this.getNode("textLb")) == null ? void 0 : _this$getNode.getComponent(Label);

          if (text) {
            text.string = "这是开始游戏的场景";
          }
        }

        btn_simple(event) {
          (_crd && oops === void 0 ? (_reportPossibleCrUseOfoops({
            error: Error()
          }), oops) : oops).gui.toast("触发简单按钮触摸事件");
          (_crd && oops === void 0 ? (_reportPossibleCrUseOfoops({
            error: Error()
          }), oops) : oops).message.dispatchEvent("onGlobal1", "触发全局事件1");
        }

        onGlobal1(event, args) {
          (_crd && oops === void 0 ? (_reportPossibleCrUseOfoops({
            error: Error()
          }), oops) : oops).gui.toast(args);
        }

        onGlobal2(event, args) {
          (_crd && oops === void 0 ? (_reportPossibleCrUseOfoops({
            error: Error()
          }), oops) : oops).gui.toast(args);
        }

        reset() {
          this.node.destroy();
        }

      }) || _class) || _class));

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=85fd69e1a920288617adf1b8791df9dbe36d4a4c.js.map