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.game.ui.displayHud(false);
mp.game.ui.displayRadar(false);
GlobalData.InInput = true;
GlobalData.InMenu = true;
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.displayRadar(true);
inAtm = false;
GlobalData.InInput = false;
GlobalData.InMenu = false;
atmBrowser.destroy();
});

View File

@@ -36,7 +36,6 @@ export default class InputHelper {
show() {
if (this.created) return;
this.data.InMenu = true;
this.data.InInput = true;
this.created = true;
this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html');
mp.gui.cursor.show(true, true);
@@ -50,7 +49,6 @@ export default class InputHelper {
mp.events.remove('cef_request_title');
mp.events.remove('closeinputhelper');
this.browser.destroy();
this.data.InInput = false;
this.data.InMenu = false;
this.created = false;
this.browser = null;

View File

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