Quick fix to change to a "wait" hourglass cursor while the game is loading. Note that the placeholder icon has been ripped from AoM and should be replaced before we ship. :)
This was SVN commit r3551.
This commit is contained in:
parent
169889bcbc
commit
a4c10bba1e
@ -34,6 +34,8 @@ function startMap (mapName, losSetting, openWindow)
|
||||
{
|
||||
// Failed to start the game; go back to the main menu.
|
||||
guiSwitch ("ld", "pg");
|
||||
// Restore default cursor.
|
||||
setCursor ("arrow-default");
|
||||
// Show an error message
|
||||
btCaptions = new Array("OK");
|
||||
btCode = new Array("");
|
||||
@ -59,6 +61,8 @@ function startLoadingScreen()
|
||||
{
|
||||
// Switch screens from main menu to loading screen.
|
||||
guiSwitch ("pg", "ld");
|
||||
// Set to "hourglass" cursor.
|
||||
setCursor("cursor-wait");
|
||||
console.write ("Loading " + g_GameAttributes.mapFile + " (" + g_GameAttributes.numPlayers + " players) ...");
|
||||
|
||||
// Generate random number for random concept art (should be depending on the selected civ later)
|
||||
@ -112,6 +116,9 @@ function reallyStartGame()
|
||||
|
||||
// Switch GUI from loading screen to game session.
|
||||
guiSwitch ("ld", "sn");
|
||||
|
||||
// Restore default cursor.
|
||||
setCursor ("arrow-default");
|
||||
}
|
||||
|
||||
// ====================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user