Added loading screen game state, which the state manager keeps one instance of internally. Loading screen is triggered by calling CGameStateManager::notify_initiate_loading() and ended by calling CGameStateManager::notify_loading_finished().
The loading screen state doesn't replace the state manager's current held state, but "interrupts" it, during which time the game is considered paused and world and UI rendering is disabled. This way, loading screens can be triggered in the middle of gameplay without the need to recreate an entire state.
Long loading operations (loading data files when the game first starts, savegame operations) are now performed in a separate thread and trigger the loading screen.
Added loading screen game state, which the state manager keeps one instance of internally. Loading screen is triggered by calling
CGameStateManager::notify_initiate_loading()
and ended by callingCGameStateManager::notify_loading_finished()
.The loading screen state doesn't replace the state manager's current held state, but "interrupts" it, during which time the game is considered paused and world and UI rendering is disabled. This way, loading screens can be triggered in the middle of gameplay without the need to recreate an entire state.
Long loading operations (loading data files when the game first starts, savegame operations) are now performed in a separate thread and trigger the loading screen.
A main menu title graphic was added.