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;
mexui.focusedControl = passwordChange.passwordInput;
guiSubmitKey = checkChangePassword;
showLocaleChooserGUI();
}
// ===========================================================================

View File

@@ -170,6 +170,8 @@ function showCharacterSelectGUI(firstName, lastName, cash, clan, lastPlayed, ski
guiSubmitKey = selectThisCharacter;
guiLeftKey = selectPreviousCharacter;
guiRightKey = selectNextCharacter;
showLocaleChooserGUI();
}
// ===========================================================================

View File

@@ -156,6 +156,8 @@ function showLoginGUI() {
login.window.shown = true;
mexui.focusedControl = login.passwordInput;
guiSubmitKey = checkLogin;
showLocaleChooserGUI();
//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,
firstNameInput: null,
lastNameInput: null,
createButton: null,
createCharacterButton: null,
mainLogoImage: null,
};
@@ -159,6 +159,8 @@ function showNewCharacterGUI() {
newCharacter.window.shown = true;
mexui.focusedInput = newCharacter.firstNameInput;
guiSubmitButton = checkNewCharacter;
showLocaleChooserGUI();
}
// ===========================================================================

View File

@@ -161,6 +161,9 @@ function showRegistrationGUI() {
register.window.shown = true;
mexui.focusedControl = register.passwordInput;
guiSubmitKey = checkRegistration;
showLocaleChooserGUI();
//showSmallGameMessage(`If you don't have a mouse cursor, press ${toUpperCase(getKeyNameFromId(disableGUIKey))} to disable GUI`, COLOUR_WHITE, 7500);
}