{
  "code": "import { SwitchButton } from \"./Component/SwitchButton\";\r\nimport { WindowManager, WindowType } from \"./WindowManager\";\r\nimport { ui } from \"../ui/layaMaxUI\";\r\nimport PlaySoundManager from \"../Scripts/Game/PlaySoundManager\";\r\nimport WxApi from \"../WXSDK/wxsdk\";\r\nimport { PlayerAccount, AccountUser } from \"../Scripts/Network/PlayerAccount\";\r\nimport ADPlayer from \"../WXSDK/ADPlayer\";\r\nexport class SettingWindow extends ui.Window.SettingWindowUI {\r\n    constructor() {\r\n        super();\r\n        SettingWindow.instance = this;\r\n    }\r\n    static get Instance() {\r\n        return SettingWindow.instance;\r\n    }\r\n    OnOpen(_data = null) {\r\n        this.userid.text = \"用户ID:\" + PlayerAccount.CurrentAccount.CurAccountData.GetUser(AccountUser.user_id);\r\n        this.closeBtn.clickHandler = Laya.Handler.create(this, this.OnCLickClose);\r\n        this.soundswitctbutton = this.soundPan.addComponent(SwitchButton);\r\n        this.shakeswitchbutton = this.shakePan.addComponent(SwitchButton);\r\n        this.soundswitctbutton.Init(PlaySoundManager.CanPlaySound, Laya.Handler.create(this, this.OnOpenSound, [true], false), Laya.Handler.create(this, this.OnOpenSound, [false], false));\r\n        this.shakeswitchbutton.Init(WxApi.CanShake, Laya.Handler.create(this, this.OnOpenShake, [true], false), Laya.Handler.create(this, this.OnOpenShake, [false], false));\r\n        ADPlayer.showBannerAd();\r\n        this.height = Laya.stage.height;\r\n    }\r\n    OnOpenSound(_open) {\r\n        PlaySoundManager.CanPlaySound = _open;\r\n    }\r\n    OnOpenShake(_open) {\r\n        WxApi.CanShake = _open;\r\n    }\r\n    OnCLickClose() {\r\n        WindowManager.Instance.ShowWindow(WindowType.HomeWindow);\r\n    }\r\n    OnHide() {\r\n    }\r\n}\r\n//# sourceMappingURL=SettingWindow.js.map",
  "references": [
    "C:/Users/admin/Desktop/runner/src/Window/Component/IWindow.ts",
    "C:/Users/admin/Desktop/runner/src/Window/Component/SwitchButton.ts",
    "C:/Users/admin/Desktop/runner/src/Window/WindowManager.ts",
    "C:/Users/admin/Desktop/runner/src/ui/layaMaxUI.ts",
    "C:/Users/admin/Desktop/runner/src/Scripts/Game/PlaySoundManager.ts",
    "C:/Users/admin/Desktop/runner/src/WXSDK/wxsdk.ts",
    "C:/Users/admin/Desktop/runner/src/Scripts/Network/PlayerAccount.ts",
    "C:/Users/admin/Desktop/runner/src/WXSDK/ADPlayer.ts"
  ],
  "map": "{\"version\":3,\"file\":\"SettingWindow.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Window/SettingWindow.ts\"],\"names\":[],\"mappings\":\"AAEA,OAAO,EAAE,YAAY,EAAqB,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAGzC,MAAM,OAAO,aAAc,SAAQ,EAAE,CAAC,MAAM,CAAC,eAAe;IAGxD;QAEI,KAAK,EAAE,CAAC;QACR,aAAa,CAAC,QAAQ,GAAG,IAAI,CAAC;IAClC,CAAC;IAEM,MAAM,KAAK,QAAQ;QAEtB,OAAO,aAAa,CAAC,QAAQ,CAAC;IAClC,CAAC;IAKD,MAAM,CAAC,KAAK,GAAG,IAAI;QAEf,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,OAAO,GAAG,aAAa,CAAC,cAAc,CAAC,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAEtG,IAAI,CAAC,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEzE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