diff --git a/ReallifeGamemode.Client/inputhelper/index.ts b/ReallifeGamemode.Client/inputhelper/index.ts index 0afd0934..e6c5de12 100644 --- a/ReallifeGamemode.Client/inputhelper/index.ts +++ b/ReallifeGamemode.Client/inputhelper/index.ts @@ -7,10 +7,6 @@ export default class InputHelper { private browser: BrowserMp; private data: IGlobalData; - static active: boolean = false; - - static timerStarted: boolean = false; - constructor(title: string, globalData?: IGlobalData) { this.title = title; this.data = globalData || GlobalData; @@ -29,34 +25,13 @@ export default class InputHelper { this.value = undefined; } - startDisableTimer(): void { - //mp.gui.chat.push("RENDER REGISTRIEREN"); - mp.events.add("render", () => { - - //game.ui.sendChatMessage("render in inputhelper - state = " + InputHelper.active); - - if (InputHelper.active) { - mp.game.controls.disableAllControlActions(0); - mp.game.controls.disableAllControlActions(1); - mp.game.controls.disableAllControlActions(2); - mp.game.controls.disableAllControlActions(27); - } - }) - } - show() { if (this.created) return; - if (!InputHelper.timerStarted) { - InputHelper.timerStarted = true; - this.startDisableTimer(); - } - this.data.InMenu = true; this.data.InInput = true; this.created = true; this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html'); - InputHelper.active = true; } private finish() {