Use locale for button text on some GUI

This commit is contained in:
Vortrex
2022-02-04 10:36:48 -06:00
parent 447285fcf8
commit 8da7880efd

View File

@@ -403,23 +403,23 @@ function showPlayerCharacterSelectFailedGUI(client) {
// =========================================================================== // ===========================================================================
function showPlayerPromptGUI(client, promptMessage, promptTitle) { function showPlayerPromptGUI(client, promptMessage, promptTitle, yesButtonText, noButtonText) {
logToConsole(LOG_DEBUG, `[VRR.Client] Sending show prompt GUI signal to ${getPlayerDisplayForConsole(client)} (Title: ${promptTitle}, Message: ${promptMessage})`); logToConsole(LOG_DEBUG, `[VRR.Client] Sending show prompt GUI signal to ${getPlayerDisplayForConsole(client)} (Title: ${promptTitle}, Message: ${promptMessage})`);
sendNetworkEventToPlayer("vrr.showPrompt", client, promptMessage, promptTitle); sendNetworkEventToPlayer("vrr.showPrompt", client, promptMessage, promptTitle, yesButtonText, noButtonText);
} }
// =========================================================================== // ===========================================================================
function showPlayerInfoGUI(client, infoMessage, infoTitle) { function showPlayerInfoGUI(client, infoMessage, infoTitle) {
logToConsole(LOG_DEBUG, `[VRR.Client] Sending show info GUI signal to ${getPlayerDisplayForConsole(client)} (Title: ${infoTitle}, Message: ${infoMessage})`); logToConsole(LOG_DEBUG, `[VRR.Client] Sending show info GUI signal to ${getPlayerDisplayForConsole(client)} (Title: ${infoTitle}, Message: ${infoMessage})`);
sendNetworkEventToPlayer("vrr.showInfo", client, infoMessage, infoTitle); sendNetworkEventToPlayer("vrr.showInfo", client, infoMessage, infoTitle, buttonText);
} }
// =========================================================================== // ===========================================================================
function showPlayerErrorGUI(client, errorMessage, errorTitle) { function showPlayerErrorGUI(client, errorMessage, errorTitle) {
logToConsole(LOG_DEBUG, `[VRR.Client] Sending show error GUI signal to ${getPlayerDisplayForConsole(client)} (Title: ${errorTitle}, Message: ${errorMessage})`); logToConsole(LOG_DEBUG, `[VRR.Client] Sending show error GUI signal to ${getPlayerDisplayForConsole(client)} (Title: ${errorTitle}, Message: ${errorMessage})`);
sendNetworkEventToPlayer("vrr.showInfo", client, errorMessage, errorTitle); sendNetworkEventToPlayer("vrr.showInfo", client, errorMessage, errorTitle, buttonText);
} }
// =========================================================================== // ===========================================================================
@@ -937,6 +937,7 @@ function playerFinishedSkinSelection(client, allowedSkinIndex) {
} }
restorePlayerCamera(client); restorePlayerCamera(client);
setPlayerControlState(client, true);
deleteItem(getPlayerData(client).itemActionItem); deleteItem(getPlayerData(client).itemActionItem);
switchPlayerActiveHotBarSlot(client, -1); switchPlayerActiveHotBarSlot(client, -1);