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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user