Add locale chooser GUI test for devs

This commit is contained in:
Vortrex
2022-05-17 08:56:05 -05:00
parent 46cb86d25b
commit 865ac8af7c
3 changed files with 13 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ function addAllNetworkHandlers() {
// Locale
addNetworkEventHandler("vrr.locale", setLocale);
addNetworkEventHandler("vrr.localeChooser", toggleLocaleChooserGUI);
// Misc
addNetworkEventHandler("vrr.mouseCursor", toggleMouseCursor);

View File

@@ -1195,4 +1195,10 @@ function sendPlayerLocaleId(client, localeId) {
sendNetworkEventToPlayer("vrr.locale", client, localeId);
}
// ==========================================================================
function showLocaleChooserForPlayer(client) {
sendNetworkEventToPlayer("vrr.localeChooser", client);
}
// ==========================================================================

View File

@@ -677,3 +677,9 @@ function reloadEconomyConfigurationCommand(command, params, client) {
}
// ===========================================================================
function showLocalePickerTestCommand(command, params, client) {
showLocaleChooserForPlayer(client);
}
// ===========================================================================