Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.js
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | if (Engine.ConfigDB_GetValue("user", "gui.splashscreen.enable") === "true" || | ||||
ShowSplashScreen(); | ShowSplashScreen(); | ||||
else | else | ||||
ShowRenderPathMessage(); | ShowRenderPathMessage(); | ||||
} | } | ||||
} | } | ||||
function ShowSplashScreen() | function ShowSplashScreen() | ||||
{ | { | ||||
Engine.PushGuiPage("page_splashscreen.xml", { | Engine.PushGuiPage("page_splashscreen.xml", {}, ShowRenderPathMessage); | ||||
"callback": "ShowRenderPathMessage" | |||||
}); | |||||
} | } | ||||
function ShowRenderPathMessage() | function ShowRenderPathMessage() | ||||
{ | { | ||||
// Warn about removing fixed render path | // Warn about removing fixed render path | ||||
if (Engine.Renderer_GetRenderPath() == "fixed") | if (Engine.Renderer_GetRenderPath() == "fixed") | ||||
messageBox( | messageBox( | ||||
600, 300, | 600, 300, | ||||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | messageBox( | ||||
translate("Error") | translate("Error") | ||||
); | ); | ||||
} | } | ||||
function getLobbyDisabledByBuild() | function getLobbyDisabledByBuild() | ||||
{ | { | ||||
return translate("Launch the multiplayer lobby to join and host publicly visible games and chat with other players. \\[DISABLED BY BUILD]"); | return translate("Launch the multiplayer lobby to join and host publicly visible games and chat with other players. \\[DISABLED BY BUILD]"); | ||||
} | } | ||||
function openStrucTree(page) | |||||
{ | |||||
closeMenu(); | |||||
Engine.PushGuiPage(page, {}, storeCivInfoPage); | |||||
} | |||||
function storeCivInfoPage(data) | |||||
{ | |||||
if (data.nextPage) | |||||
Engine.PushGuiPage(data.nextPage, { "civ": data.civ }, storeCivInfoPage); | |||||
} |
Wildfire Games · Phabricator