mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-18 14:23:56 -07:00
Add config option to display the loading screen stage description. Add tip functions for future use, refs D1730. Harmonize coordinates. Differential Revision: https://code.wildfiregames.com/D2418 This was SVN commit r23150.
24 lines
548 B
JavaScript
24 lines
548 B
JavaScript
var g_LoadingPage;
|
|
|
|
function init(data)
|
|
{
|
|
g_LoadingPage = {
|
|
"initData": data,
|
|
"progressBar": new ProgressBar(),
|
|
"quoteDisplay": new QuoteDisplay(),
|
|
"tipDisplay": new TipDisplay(),
|
|
"titleDisplay": new TitleDisplay(data)
|
|
};
|
|
|
|
Engine.SetCursor("cursor-wait");
|
|
}
|
|
|
|
/**
|
|
* This is a reserved function name that is executed by the engine when it is ready
|
|
* to start the game (i.e. loading progress has reached 100%).
|
|
*/
|
|
function reallyStartGame()
|
|
{
|
|
Engine.SwitchGuiPage("page_session.xml", g_LoadingPage.initData);
|
|
Engine.ResetCursor();
|
|
}
|