hack to fix start on MiniMenu

(I have some thoughts to clean this up, on the lines of allowing NextScreen
to expicitly say "pop a screen", but I need to think about it some more.)
This commit is contained in:
Glenn Maynard
2006-01-17 23:43:20 +00:00
parent 04a702ea22
commit 9234462123
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -31,6 +31,16 @@ void ScreenMiniMenu::MiniMenu( MenuDef* pDef, ScreenMessage SM_SendOnOK, ScreenM
//REGISTER_SCREEN_CLASS( ScreenMiniMenu );
void ScreenMiniMenu::BeginScreen()
{
ScreenOptions::BeginScreen();
/* HACK: An OptionRow exits if a screen is set. ScreenMiniMenu is always pushed, so we
* don't set screens to load. Set a dummy screen, so ScreenOptions::GetNextScreenForSelection
* will know to move on. */
m_sNextScreen = "xxx";
}
void ScreenMiniMenu::LoadMenu( const MenuDef* pDef )
{
m_vMenuRows = pDef->rows;