Commit 8748b732 authored by Gerhard Stein's avatar Gerhard Stein

More code for loading the game

parent 76ae09da
......@@ -83,13 +83,12 @@ void CMainMenu::createGalaxyMenu( const bool openedGamePlay )
CGUIButton *loadButton = new CGUIButton( "Load",
new OpenMenuEvent( new CLoadMenu() ) );
mpMenuDialog->addControl( loadButton );
loadButton->mEnabled = false;
loadButton->mEnabled = true;
CGUIButton *saveButton = new CGUIButton( "Save",
new OpenMenuEvent( new CSaveMenu() ) );
mpMenuDialog->addControl( saveButton );
//saveButton->mEnabled = openedGamePlay;
saveButton->mEnabled = false;
saveButton->mEnabled = openedGamePlay;
mpMenuDialog->addControl(new CGUIButton( "Settings",
new OpenMenuEvent( new CSettingsMenu() ) ) );
......
......@@ -53,7 +53,8 @@ bool CPlayGameGalaxy::loadGameState()
// Load number of Players
savedGame.decodeData(m_NumPlayers);
// TODO: We need to load both Levels first, before we do the writing from the saved state.
// We need to load both Levels first, before we do the writing from the saved state.
init(); // This will do the job
m_Inventory << savedGame;
m_WorldMap << savedGame;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment