Fix small typo

This commit is contained in:
kookroach
2021-04-03 20:34:34 +02:00
parent 1e05bb108c
commit 64fcd3749f
3 changed files with 3 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ export default function worldInteraction() {
mp.gui.chat.show(false); mp.gui.chat.show(false);
mp.game.ui.displayHud(false); mp.game.ui.displayHud(false);
mp.game.ui.displayRadar(false); mp.game.ui.displayRadar(false);
GlobalData.InInput = true; GlobalData.InMenu = true;
atmBrowser = mp.browsers.new("package://assets/html/atm/index.html"); atmBrowser = mp.browsers.new("package://assets/html/atm/index.html");
} }
}); });
@@ -23,7 +23,7 @@ export default function worldInteraction() {
mp.game.ui.displayHud(true); mp.game.ui.displayHud(true);
mp.game.ui.displayRadar(true); mp.game.ui.displayRadar(true);
inAtm = false; inAtm = false;
GlobalData.InInput = false; GlobalData.InMenu = false;
atmBrowser.destroy(); atmBrowser.destroy();
}); });

View File

@@ -36,7 +36,6 @@ export default class InputHelper {
show() { show() {
if (this.created) return; if (this.created) return;
this.data.InMenu = true; this.data.InMenu = 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');
mp.gui.cursor.show(true, true); mp.gui.cursor.show(true, true);
@@ -50,7 +49,6 @@ export default class InputHelper {
mp.events.remove('cef_request_title'); mp.events.remove('cef_request_title');
mp.events.remove('closeinputhelper'); mp.events.remove('closeinputhelper');
this.browser.destroy(); this.browser.destroy();
this.data.InInput = false;
this.data.InMenu = false; this.data.InMenu = false;
this.created = false; this.created = false;
this.browser = null; this.browser = null;

View File

@@ -62,7 +62,7 @@ export default function planeSchoolHandle(globalData: IGlobalData) {
}; };
function keyPressHandler() { function keyPressHandler() {
if (globalData.InChat || globalData.InMenu || globalData.InMenu) return; if (globalData.InChat || globalData.InMenu) return;
mp.events.call('removeplaneSchoolMenu', false); mp.events.call('removeplaneSchoolMenu', false);
mp.events.callRemote('startplaneSchool'); mp.events.callRemote('startplaneSchool');