From 4d3d26e02898e73f9daeafa315936f04c95c12c2 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 22 May 2022 13:31:32 -0500 Subject: [PATCH] Fix some GUI stuff --- scripts/server/client.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/server/client.js b/scripts/server/client.js index de4bbd08..e19f6c25 100644 --- a/scripts/server/client.js +++ b/scripts/server/client.js @@ -272,13 +272,6 @@ function sendJobRouteLocationToPlayer(client, position, colour) { // =========================================================================== -function showPlayerChangePasswordGUI(client) { - logToConsole(LOG_DEBUG, `[VRR.Client] Sending change password GUI signal to ${getPlayerDisplayForConsole(client)}`); - sendNetworkEventToPlayer("vrr.changePassword", client); -} - -// =========================================================================== - function showPlayerLoginSuccessGUI(client) { logToConsole(LOG_DEBUG, `[VRR.Client] Sending login success GUI signal to ${getPlayerDisplayForConsole(client)}`); sendNetworkEventToPlayer("vrr.loginSuccess", client); @@ -344,18 +337,25 @@ function showPlayerNewCharacterGUI(client) { function showPlayerChangePasswordGUI(client, errorMessage = "") { logToConsole(LOG_DEBUG, `[VRR.Client] Sending show change password GUI signal to ${getPlayerDisplayForConsole(client)}`); - sendNetworkEventToPlayer("vrr.showChangePassword", client); + sendNetworkEventToPlayer("vrr.showChangePassword", client, errorMessage); } // =========================================================================== function showPlayerResetPasswordCodeInputGUI(client) { - logToConsole(LOG_DEBUG, `[VRR.Client] Sending show reset password GUI signal to ${getPlayerDisplayForConsole(client)}`); + logToConsole(LOG_DEBUG, `[VRR.Client] Sending show reset password code input GUI signal to ${getPlayerDisplayForConsole(client)}`); sendNetworkEventToPlayer("vrr.showResetPasswordCodeInput", client); } // =========================================================================== +function showPlayerResetPasswordEmailInputGUI(client) { + logToConsole(LOG_DEBUG, `[VRR.Client] Sending show reset password email input GUI signal to ${getPlayerDisplayForConsole(client)}`); + sendNetworkEventToPlayer("vrr.showResetPasswordEmailInput", client); +} + +// =========================================================================== + function showPlayerCharacterSelectGUI(client, firstName, lastName, cash, clan, lastPlayed, skin) { logToConsole(LOG_DEBUG, `[VRR.Client] Sending character select GUI signal to ${getPlayerDisplayForConsole(client)}`); sendNetworkEventToPlayer("vrr.showCharacterSelect", client, firstName, lastName, cash, clan, lastPlayed, skin); @@ -400,7 +400,7 @@ function showPlayerInfoGUI(client, infoMessage, infoTitle, buttonText = "OK") { function showPlayerErrorGUI(client, errorMessage, errorTitle, buttonText = "OK") { logToConsole(LOG_DEBUG, `[VRR.Client] Sending show error GUI signal to ${getPlayerDisplayForConsole(client)} (Title: ${errorTitle}, Message: ${errorMessage})`); - sendNetworkEventToPlayer("vrr.showInfo", client, errorMessage, errorTitle, buttonText); + sendNetworkEventToPlayer("vrr.showError", client, errorMessage, errorTitle, buttonText); } // ===========================================================================