wasolldas

This commit is contained in:
hydrant
2020-07-30 22:13:45 +02:00
parent 02ec46864e
commit 8783c093f4

View File

@@ -33,7 +33,7 @@ export default class InputHelper {
mp.gui.chat.push("RENDER REGISTRIEREN");
mp.events.add("render", () => {
game.ui.sendChatMessage("render in inputhelper");
game.ui.sendChatMessage("render in inputhelper - state = " + InputHelper.active);
if (InputHelper.active) {
mp.game.controls.disableAllControlActions(0);
@@ -44,26 +44,18 @@ export default class InputHelper {
})
}
private disableControls() {
//for (var x = 0; x < 358; x++) {
// mp.game.controls.disableControlAction(1, x, true);
//}
}
show() {
if (this.created) return;
this.data.InInput = true;
this.created = true;
this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html');
InputHelper.active = true;
if (!InputHelper.timerStarted) {
InputHelper.timerStarted = true;
this.startDisableTimer();
}
this.data.InInput = true;
this.created = true;
this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html');
InputHelper.active = true;
}
private finish() {