Remove inInput -> replace with inMenu
This commit is contained in:
@@ -12,12 +12,12 @@ export default function Introduction(globalData: IGlobalData): void {
|
||||
if (DrivingSchoolBrowser !== null) {
|
||||
DrivingSchoolBrowser.destroy();
|
||||
DrivingSchoolBrowser = null;
|
||||
globalData.InInput = false;
|
||||
globalData.InMenu = false;
|
||||
mp.gui.cursor.show(false, false);
|
||||
mp.gui.chat.activate(true);
|
||||
}
|
||||
else if (!globalData.InInput) {
|
||||
globalData.InInput = true;
|
||||
else if (!globalData.InMenu) {
|
||||
globalData.InMenu = true;
|
||||
DrivingSchoolBrowser = mp.browsers.new('package://assets/html/School/DrivingSchool.html');
|
||||
mp.gui.chat.activate(false);
|
||||
mp.gui.cursor.show(true, true);
|
||||
@@ -28,10 +28,10 @@ export default function Introduction(globalData: IGlobalData): void {
|
||||
if (DrivingSchoolBrowser == null) {
|
||||
return;
|
||||
}
|
||||
else if (globalData.InInput) {
|
||||
else if (globalData.InMenu) {
|
||||
DrivingSchoolBrowser.destroy();
|
||||
DrivingSchoolBrowser = null;
|
||||
globalData.InInput = false;
|
||||
globalData.InMenu = false;
|
||||
mp.gui.cursor.show(false, false);
|
||||
mp.gui.chat.activate(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user