XXXXXXXXXXXXXXXXXXXXX
This commit is contained in:
@@ -30,10 +30,10 @@ export default class InputHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
startDisableTimer(): void {
|
startDisableTimer(): void {
|
||||||
mp.gui.chat.push("RENDER REGISTRIEREN");
|
//mp.gui.chat.push("RENDER REGISTRIEREN");
|
||||||
mp.events.add("render", () => {
|
mp.events.add("render", () => {
|
||||||
|
|
||||||
game.ui.sendChatMessage("render in inputhelper - state = " + InputHelper.active);
|
//game.ui.sendChatMessage("render in inputhelper - state = " + InputHelper.active);
|
||||||
|
|
||||||
if (InputHelper.active) {
|
if (InputHelper.active) {
|
||||||
mp.game.controls.disableAllControlActions(0);
|
mp.game.controls.disableAllControlActions(0);
|
||||||
@@ -52,6 +52,7 @@ export default class InputHelper {
|
|||||||
this.startDisableTimer();
|
this.startDisableTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.data.InMenu = true;
|
||||||
this.data.InInput = true;
|
this.data.InInput = true;
|
||||||
this.created = true;
|
this.created = true;
|
||||||
this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html');
|
this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html');
|
||||||
@@ -62,9 +63,9 @@ export default class InputHelper {
|
|||||||
if (this.browser) {
|
if (this.browser) {
|
||||||
mp.events.remove('cef_inputhelper_sendvalue');
|
mp.events.remove('cef_inputhelper_sendvalue');
|
||||||
mp.events.remove('cef_request_title');
|
mp.events.remove('cef_request_title');
|
||||||
InputHelper.active = false;
|
|
||||||
this.browser.destroy();
|
this.browser.destroy();
|
||||||
this.data.InInput = false;
|
this.data.InInput = false;
|
||||||
|
this.data.InMenu = false;
|
||||||
this.created = false;
|
this.created = false;
|
||||||
this.browser = null;
|
this.browser = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user