wasolldas
This commit is contained in:
@@ -33,7 +33,7 @@ export default class InputHelper {
|
|||||||
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");
|
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);
|
||||||
@@ -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() {
|
show() {
|
||||||
if (this.created) return;
|
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) {
|
if (!InputHelper.timerStarted) {
|
||||||
InputHelper.timerStarted = true;
|
InputHelper.timerStarted = true;
|
||||||
this.startDisableTimer();
|
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() {
|
private finish() {
|
||||||
|
|||||||
Reference in New Issue
Block a user