wasolldas
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user