populate mini menu with values of the current BGChange.

This commit is contained in:
Chris Danford
2004-08-11 07:30:41 +00:00
parent d7953ded5c
commit 09d8807927
3 changed files with 36 additions and 2 deletions
+13
View File
@@ -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.