Index: ps/trunk/binaries/data/mods/mod/gui/common/modern/styles.xml
===================================================================
--- ps/trunk/binaries/data/mods/mod/gui/common/modern/styles.xml (revision 22965)
+++ ps/trunk/binaries/data/mods/mod/gui/common/modern/styles.xml (revision 22966)
@@ -1,192 +1,191 @@
Index: ps/trunk/binaries/data/mods/public/gui/credits/credits.xml
===================================================================
--- ps/trunk/binaries/data/mods/public/gui/credits/credits.xml (revision 22965)
+++ ps/trunk/binaries/data/mods/public/gui/credits/credits.xml (revision 22966)
@@ -1,38 +1,38 @@
Index: ps/trunk/binaries/data/mods/public/gui/locale/locale.js
===================================================================
--- ps/trunk/binaries/data/mods/public/gui/locale/locale.js (revision 22965)
+++ ps/trunk/binaries/data/mods/public/gui/locale/locale.js (revision 22966)
@@ -1,74 +1,77 @@
function init()
{
var languageList = Engine.GetGUIObjectByName("languageList");
languageList.list = Engine.GetSupportedLocaleDisplayNames();
languageList.list_data = Engine.GetSupportedLocaleBaseNames();
var currentLocale = Engine.GetCurrentLocale();
var currentLocaleDictName = Engine.GetFallbackToAvailableDictLocale(currentLocale);
var useLongStrings = Engine.UseLongStrings();
var index = -1;
if (useLongStrings)
index = languageList.list_data.indexOf("long");
if (index == -1)
index = languageList.list_data.indexOf(currentLocaleDictName);
if (index != -1)
languageList.selected = index;
var localeText = Engine.GetGUIObjectByName("localeText");
if (useLongStrings)
localeText.caption = "long";
else
localeText.caption = currentLocale;
}
function cancelSetup()
{
Engine.PopGuiPage();
}
function applySelectedLocale()
{
var localeText = Engine.GetGUIObjectByName("localeText");
if(!Engine.SaveLocale(localeText.caption))
{
warn("Selected locale could not be saved in the configuration!");
return;
}
Engine.ReevaluateCurrentLocaleAndReload();
Engine.SwitchGuiPage("page_pregame.xml");
}
function languageSelectionChanged()
{
var languageList = Engine.GetGUIObjectByName("languageList");
var locale = languageList.list_data[languageList.selected];
if (locale == "long")
warn("'long' is not an actual language, just a collection of all longest strings extracted from some languages");
else if(!Engine.ValidateLocale(locale))
warn("Selected locale is not valid! This is not expected, please report the issue.");
var localeText = Engine.GetGUIObjectByName("localeText");
localeText.caption = locale;
}
function openAdvancedMenu()
{
let localeText = Engine.GetGUIObjectByName("localeText");
Engine.PushGuiPage("page_locale_advanced.xml", { "locale": localeText.caption }, applyFromAdvancedMenu);
}
function applyFromAdvancedMenu(locale)
{
+ if (!locale)
+ return;
+
var languageList = Engine.GetGUIObjectByName("languageList");
var currentLocaleDictName = Engine.GetFallbackToAvailableDictLocale(locale);
var index = -1;
index = languageList.list_data.indexOf(currentLocaleDictName);
if (index != -1)
languageList.selected = index;
var localeText = Engine.GetGUIObjectByName("localeText");
localeText.caption = locale;
}
Index: ps/trunk/binaries/data/mods/public/gui/session/session.xml
===================================================================
--- ps/trunk/binaries/data/mods/public/gui/session/session.xml (revision 22965)
+++ ps/trunk/binaries/data/mods/public/gui/session/session.xml (revision 22966)
@@ -1,159 +1,159 @@
onTick();
onWindowResized();
restoreSavedGameData(arguments[0]);
onSimulationUpdate();
onReplayFinished();
onReplayOutOfSync(arguments[0], arguments[1], arguments[2]);
Engine.ConfigDB_CreateValue("user", "gui.session.timeelapsedcounter", String(Engine.ConfigDB_GetValue("user", "gui.session.timeelapsedcounter") != "true"));
Engine.ConfigDB_CreateValue("user", "gui.session.ceasefirecounter", String(Engine.ConfigDB_GetValue("user", "gui.session.ceasefirecounter") != "true"));
Exit
leaveGame();
-
+
Game Paused
Click to Resume Game
togglePause();