populate mini menu with values of the current BGChange.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "GameConstantsAndTypes.h"
|
||||
#include "PrefsManager.h"
|
||||
#include "ThemeManager.h"
|
||||
#include "Foreach.h"
|
||||
|
||||
|
||||
const float LABEL_X = 200;
|
||||
@@ -316,6 +317,18 @@ MenuRowInternal::MenuRowInternal( const MenuRow &r )
|
||||
#undef PUSH
|
||||
}
|
||||
|
||||
void MenuRowInternal::SetDefaultChoiceIfPresent( const CString &s )
|
||||
{
|
||||
FOREACH( CString, choices, c )
|
||||
{
|
||||
if( *c == s )
|
||||
{
|
||||
defaultChoice = c - choices.begin();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* (c) 2003-2004 Chris Danford
|
||||
* All rights reserved.
|
||||
|
||||
Reference in New Issue
Block a user