0ad/binaries/data/mods/public/gui/loading/loading.js
elexis c16eddaedc Rewrite loading screen to use class semantics, refs #5387.
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.
2019-11-12 15:54:09 +00:00

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();
}