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

  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, _cc, MergeManager, _dec, _class, _crd, cc, ccclass, property, scene2;

  function _reportPossibleCrUseOfMergeManager(extras) {
    _reporterNs.report("MergeManager", "./MergeManager", _context.meta, extras);
  }

  return {
    setters: [function (_unresolved_) {
      _reporterNs = _unresolved_;
    }, function (_cc2) {
      _cclegacy = _cc2.cclegacy;
      __checkObsolete__ = _cc2.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc2.__checkObsoleteInNamespace__;
      _decorator = _cc2._decorator;
      Component = _cc2.Component;
      _cc = _cc2;
    }, function (_unresolved_2) {
      MergeManager = _unresolved_2.MergeManager;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "7e378EqZElGGZJYrs63KbTx", "scene2a", undefined);

      __checkObsolete__(['_decorator', 'Component', 'Node', 'Camera', 'RenderTexture', 'sys', 'UITransform', 'gfx', 'director', 'ImageAsset', 'Texture2D', 'SpriteFrame', 'Sprite', 'view', 'tween', 'Vec3', 'isValid']);

      cc = __checkObsoleteInNamespace__(_cc);
      ({
        ccclass,
        property
      } = _decorator);

      _export("scene2", scene2 = (_dec = ccclass('scene2'), _dec(_class = class scene2 extends Component {
        onLoad() {
          //禁用动态合图
          cc.DynamicAtlasManager.instance.enabled = false;
          var node = cc.find("Canvas/node");
          this.loadAutoMagre();
        }

        loadAutoMagre() {
          var img = cc.find("Canvas/img");
          var img2 = cc.find("Canvas/img2"); // let url = 'http://172.17.196.11:800/fairy/props/props/prop_';
          // let  paths = [url+'1.png', url+'2.png', url+'3.png', url+'4.png'];
          // var mmm = new MergeManager(paths, 2,2, 145, 145);

          var url = 'http://172.17.196.11:800/fairy/build/';
          var paths = [url + '1020-1-101.png', url + '1021-1-101.png'];
          paths.push(paths[0]);
          paths.push(paths[0]);
          var mmm = new (_crd && MergeManager === void 0 ? (_reportPossibleCrUseOfMergeManager({
            error: Error()
          }), MergeManager) : MergeManager)(paths, 2, 2, 400, 400);
          mmm.init();

          mmm.onLoaded = _mergeTexture => {
            img = img2;
            var sp = img.getComponent(cc.Sprite);
            sp.spriteFrame = new cc.SpriteFrame();
            sp.spriteFrame.texture = _mergeTexture;
            var uit = img.getComponent(cc.UITransform);
            uit.width = 290;
            uit.height = 290;
            uit.width = 800;
            uit.height = 800;
          };
        }

      }) || _class));

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=04eb190eb2f7c5fc9bcacb60fa6cc2dae6db7706.js.map