Fix small typo
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user