Show locale chooser when certain GUI is active

This commit is contained in:
Vortrex
2022-05-15 04:15:39 -05:00
parent b86dcb2bf4
commit 3229cfd0e8
5 changed files with 12 additions and 1 deletions

View File

@@ -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();
} }
// =========================================================================== // ===========================================================================

View File

@@ -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();
} }
// =========================================================================== // ===========================================================================

View File

@@ -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);
} }

View File

@@ -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();
} }
// =========================================================================== // ===========================================================================

View File

@@ -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);
} }