Remove inInput -> replace with inMenu
This commit is contained in:
@@ -13,12 +13,12 @@ export default function Introduction(globalData: IGlobalData): void {
|
||||
if (IntroductionBrowser !== null) {
|
||||
IntroductionBrowser.destroy();
|
||||
IntroductionBrowser = 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;
|
||||
IntroductionBrowser = mp.browsers.new('package://assets/html/Introduction/Introduction.html');
|
||||
mp.gui.chat.activate(false);
|
||||
mp.gui.cursor.show(true, true);
|
||||
@@ -31,10 +31,10 @@ export default function Introduction(globalData: IGlobalData): void {
|
||||
if (IntroductionBrowser == null) {
|
||||
return;
|
||||
}
|
||||
else if (globalData.InInput) {
|
||||
else if (globalData.InMenu) {
|
||||
IntroductionBrowser.destroy();
|
||||
IntroductionBrowser = 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