{
  "code": "import { ui } from \"../ui/layaMaxUI\";\r\nimport { ViewManager, ViewType } from \"./ViewManager\";\r\nimport { Switch } from \"../Tool/Switch\";\r\nimport { AudioManager } from \"../Tool/AudioManager\";\r\nimport { WXSDK } from \"../Net/WXSDK\";\r\nimport { AccountManager } from \"../Net/AccountManager\";\r\nexport default class SetView extends ui.SetViewUI {\r\n    constructor() {\r\n        super();\r\n    }\r\n    static get Instance() {\r\n        if (SetView.ins) {\r\n            return SetView.ins;\r\n        }\r\n        else {\r\n            return new SetView();\r\n        }\r\n    }\r\n    Show() {\r\n        this.userid.text = AccountManager.Instance.curplayerData.userId;\r\n        this.CloseBtn.clickHandler = Laya.Handler.create(this, this.ClickClose);\r\n        this.SoundSwitch = this.Sound.addComponent(Switch);\r\n        this.ShakeSwitch = this.Shake.addComponent(Switch);\r\n        this.SoundSwitch.ListenOn_Off(AudioManager.open, Laya.Handler.create(this, this.OpenSound, [true], false), Laya.Handler.create(this, this.OpenSound, [false], false));\r\n        this.ShakeSwitch.ListenOn_Off(WXSDK.shake, Laya.Handler.create(this, this.OpenShake, [true], false), Laya.Handler.create(this, this.OpenShake, [false], false));\r\n        this.height = Laya.stage.height;\r\n        Laya.stage.on(Laya.Event.RESIZE, this, () => {\r\n            this.height = Laya.stage.height;\r\n        });\r\n    }\r\n    Close() {\r\n    }\r\n    ClickClose() {\r\n        ViewManager.Instance.ShowView(ViewType.MainView);\r\n    }\r\n    OpenSound(_open) {\r\n        AudioManager.open = _open;\r\n    }\r\n    OpenShake(_open) {\r\n        WXSDK.shake = _open;\r\n    }\r\n}\r\n//# sourceMappingURL=SetView.js.map",
  "references": [
    "E:/LayaProject/2048_laya/src/ui/layaMaxUI.ts",
    "E:/LayaProject/2048_laya/src/View/ViewManager.ts",
    "E:/LayaProject/2048_laya/src/Tool/Switch.ts",
    "E:/LayaProject/2048_laya/src/Tool/AudioManager.ts",
    "E:/LayaProject/2048_laya/src/Net/WXSDK.ts",
    "E:/LayaProject/2048_laya/src/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