Show locale chooser when certain GUI is active
This commit is contained in:
@@ -141,6 +141,8 @@ function showChangePasswordGUI() {
|
|||||||
passwordChange.window.shown = true;
|
passwordChange.window.shown = true;
|
||||||
mexui.focusedControl = passwordChange.passwordInput;
|
mexui.focusedControl = passwordChange.passwordInput;
|
||||||
guiSubmitKey = checkChangePassword;
|
guiSubmitKey = checkChangePassword;
|
||||||
|
|
||||||
|
showLocaleChooserGUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
@@ -170,6 +170,8 @@ function showCharacterSelectGUI(firstName, lastName, cash, clan, lastPlayed, ski
|
|||||||
guiSubmitKey = selectThisCharacter;
|
guiSubmitKey = selectThisCharacter;
|
||||||
guiLeftKey = selectPreviousCharacter;
|
guiLeftKey = selectPreviousCharacter;
|
||||||
guiRightKey = selectNextCharacter;
|
guiRightKey = selectNextCharacter;
|
||||||
|
|
||||||
|
showLocaleChooserGUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
@@ -156,6 +156,8 @@ function showLoginGUI() {
|
|||||||
login.window.shown = true;
|
login.window.shown = true;
|
||||||
mexui.focusedControl = login.passwordInput;
|
mexui.focusedControl = login.passwordInput;
|
||||||
guiSubmitKey = checkLogin;
|
guiSubmitKey = checkLogin;
|
||||||
|
|
||||||
|
showLocaleChooserGUI();
|
||||||
//showSmallGameMessage(`If you don't have a mouse cursor, press ${toUpperCase(getKeyNameFromId(disableGUIKey))} to disable GUI`, COLOUR_WHITE, 7500);
|
//showSmallGameMessage(`If you don't have a mouse cursor, press ${toUpperCase(getKeyNameFromId(disableGUIKey))} to disable GUI`, COLOUR_WHITE, 7500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ let newCharacter = {
|
|||||||
messageLabel: null,
|
messageLabel: null,
|
||||||
firstNameInput: null,
|
firstNameInput: null,
|
||||||
lastNameInput: null,
|
lastNameInput: null,
|
||||||
createButton: null,
|
createCharacterButton: null,
|
||||||
mainLogoImage: null,
|
mainLogoImage: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -159,6 +159,8 @@ function showNewCharacterGUI() {
|
|||||||
newCharacter.window.shown = true;
|
newCharacter.window.shown = true;
|
||||||
mexui.focusedInput = newCharacter.firstNameInput;
|
mexui.focusedInput = newCharacter.firstNameInput;
|
||||||
guiSubmitButton = checkNewCharacter;
|
guiSubmitButton = checkNewCharacter;
|
||||||
|
|
||||||
|
showLocaleChooserGUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
@@ -161,6 +161,9 @@ function showRegistrationGUI() {
|
|||||||
register.window.shown = true;
|
register.window.shown = true;
|
||||||
mexui.focusedControl = register.passwordInput;
|
mexui.focusedControl = register.passwordInput;
|
||||||
guiSubmitKey = checkRegistration;
|
guiSubmitKey = checkRegistration;
|
||||||
|
|
||||||
|
showLocaleChooserGUI();
|
||||||
|
|
||||||
//showSmallGameMessage(`If you don't have a mouse cursor, press ${toUpperCase(getKeyNameFromId(disableGUIKey))} to disable GUI`, COLOUR_WHITE, 7500);
|
//showSmallGameMessage(`If you don't have a mouse cursor, press ${toUpperCase(getKeyNameFromId(disableGUIKey))} to disable GUI`, COLOUR_WHITE, 7500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user