Commit 7578952c authored by Gerhard Stein's avatar Gerhard Stein

Load savestate fixes

parent ad93b1df
......@@ -159,6 +159,8 @@ void CControlSettingsBase::ponder(const float deltaT)
//GameButton::ponder(0);
}
GameMenu::ponder(deltaT);
}
void CControlSettingsBase::release()
......
......@@ -42,14 +42,28 @@ GameMenu( GsRect<float>(0.1f, 0.0f, 0.8f, 1.0f),
{
for( int j = 0 ; j<8 ; j++ )
{
GsButton *button = new BorderedButton( "Empty",
new LoadGameSlotFunctorEvent(j),
style);
mpMenuDialog->addControl( button,
GsRect<float>(
0.0f, 0.1f+(j*0.1f), 0.8f, 0.1f) );
button->enable( false );
GsButton *button;
if(style == GsControl::Style::GALAXY)
{
button = new BorderedButton( "Empty",
new LoadGameSlotFunctorEvent(j),
style);
mpMenuDialog->addControl( button,
GsRect<float>(
0.0f, 0.1f+(j*0.1f), 0.8f, 0.1f) );
}
else
{
button = new GameButton( "Empty",
new LoadGameSlotFunctorEvent(j),
style);
mpMenuDialog->addControl( button );
}
button->enable( false );
}
setMenuLabel("LOADMENULABEL");
......
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