"use strict";

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

  var _decorator, Component, Node, ButtonComponent, _dec, _dec2, _class, _class2, _descriptor, _temp, ccclass, property, SettingControl;

  _export({
    _dec: void 0,
    _dec2: void 0,
    _class: void 0,
    _class2: void 0,
    _descriptor: void 0,
    _temp: void 0
  });

  return {
    setters: [function (_cc) {
      _decorator = _cc._decorator;
      Component = _cc.Component;
      Node = _cc.Node;
      ButtonComponent = _cc.ButtonComponent;
    }],
    execute: function () {
      cc._RF.push(window.module || {}, "b8c6efmgSJNtZtu3QfMUr+x", "SettingControl"); // begin SettingControl


      ccclass = _decorator.ccclass;
      property = _decorator.property;

      _export("SettingControl", SettingControl = (_dec = ccclass("SettingControl"), _dec2 = property({
        type: Node
      }), _dec(_class = (_class2 = (_temp =
      /*#__PURE__*/
      function (_Component) {
        babelHelpers.inherits(SettingControl, _Component);

        function SettingControl() {
          var _babelHelpers$getProt;

          var _this;

          babelHelpers.classCallCheck(this, SettingControl);

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = babelHelpers.possibleConstructorReturn(this, (_babelHelpers$getProt = babelHelpers.getPrototypeOf(SettingControl)).call.apply(_babelHelpers$getProt, [this].concat(args)));
          babelHelpers.initializerDefineProperty(_this, "homepage", _descriptor, babelHelpers.assertThisInitialized(_this));
          _this.backBtn = null;
          return _this;
        }

        babelHelpers.createClass(SettingControl, [{
          key: "onLoad",
          value: function onLoad() {
            /**获取按钮组件 */
            this.backBtn = this.node.getChildByName("backBtn").getComponent(ButtonComponent);
            /**按钮监听 */

            this.backBtn.node.on("click", this.settingMove, this);
          }
        }, {
          key: "settingMove",
          value: function settingMove() {
            this.node.active = false;
            this.homepage.active = true;
          }
        }, {
          key: "onDisable",
          value: function onDisable() {
            /**获取按钮组件 */
            this.backBtn = this.node.getChildByName("backBtn").getComponent(ButtonComponent);
            /**按钮监听 */

            this.backBtn.node.on("click", this.settingMove, this);
          }
        }]);
        return SettingControl;
      }(Component), _temp), (_descriptor = babelHelpers.applyDecoratedDescriptor(_class2.prototype, "homepage", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cc._RF.pop(); // end SettingControl

    }
  };
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2plY3Q6Ly8vYXNzZXRzL3N1Yi90cy9VSXNlY2VuL1NldHRpbmdDb250cm9sLnRzIl0sIm5hbWVzIjpbIl9kZWNvcmF0b3IiLCJDb21wb25lbnQiLCJOb2RlIiwiQnV0dG9uQ29tcG9uZW50IiwiY2NjbGFzcyIsInByb3BlcnR5IiwiU2V0dGluZ0NvbnRyb2wiLCJ0eXBlIiwiYmFja0J0biIsIm5vZGUiLCJnZXRDaGlsZEJ5TmFtZSIsImdldENvbXBvbmVudCIsIm9uIiwic2V0dGluZ01vdmUiLCJhY3RpdmUiLCJob21lcGFnZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQVNBLE1BQUFBLFUsT0FBQUEsVTtBQUFZQyxNQUFBQSxTLE9BQUFBLFM7QUFBV0MsTUFBQUEsSSxPQUFBQSxJO0FBQTJCQyxNQUFBQSxlLE9BQUFBLGU7OztxRkFFYzs7O0FBQ2pFQyxNQUFBQSxPLEdBQXNCSixVLENBQXRCSSxPO0FBQVNDLE1BQUFBLFEsR0FBYUwsVSxDQUFiSyxROztnQ0FHSkMsYyxXQURaRixPQUFPLENBQUMsZ0JBQUQsQyxVQUVIQyxRQUFRLENBQUM7QUFBRUUsUUFBQUEsSUFBSSxFQUFFTDtBQUFSLE9BQUQsQzs7Ozs7Ozs7Ozs7Ozs7Ozs7O2dCQUlETSxPLEdBQTJCLEk7Ozs7OzttQ0FFMUI7QUFDTDtBQUNBLGlCQUFLQSxPQUFMLEdBQWUsS0FBS0MsSUFBTCxDQUFVQyxjQUFW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