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;
|
||||
|
||||
@@ -88,6 +88,7 @@ class ScreenMiniMenu : public ScreenOptions
|
||||
public:
|
||||
static void MiniMenu( MenuDef* pDef, ScreenMessage smSendOnOK, ScreenMessage smSendOnCancel = SM_None, float fX = 0, float fY = 0 );
|
||||
|
||||
void BeginScreen();
|
||||
void LoadMenu( const MenuDef* pDef );
|
||||
void HandleScreenMessage( const ScreenMessage SM );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user