use ModeChoice

This commit is contained in:
Glenn Maynard
2004-01-25 16:49:05 +00:00
parent 174062553b
commit 8f1680b8da
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -17,6 +17,7 @@
#include "RageSounds.h" #include "RageSounds.h"
#include "GameConstantsAndTypes.h" #include "GameConstantsAndTypes.h"
#include "PrefsManager.h" #include "PrefsManager.h"
#include "SongManager.h"
#include "GameManager.h" #include "GameManager.h"
#include "RageLog.h" #include "RageLog.h"
#include "AnnouncerManager.h" #include "AnnouncerManager.h"
@@ -69,6 +70,9 @@ ScreenSelect::ScreenSelect( CString sClassName ) : Screen(sClassName)
m_aCodes.push_back( code ); m_aCodes.push_back( code );
m_aCodeActions.push_back( CODE_ACTION(c) ); m_aCodeActions.push_back( CODE_ACTION(c) );
ModeChoice mc;
mc.Load( c, CODE_ACTION(c) );
m_aCodeChoices.push_back( mc );
} }
} }
@@ -144,6 +148,7 @@ void ScreenSelect::Input( const DeviceInput& DeviceI, const InputEventType type,
SOUND->PlayOnce( THEME->GetPathToS( asBits[1] ) ); SOUND->PlayOnce( THEME->GetPathToS( asBits[1] ) );
} }
m_aCodeChoices[i].Apply( MenuI.player );
} }
Screen::Input( DeviceI, type, GameI, MenuI, StyleI ); // default input handler Screen::Input( DeviceI, type, GameI, MenuI, StyleI ); // default input handler
} }
+1
View File
@@ -46,6 +46,7 @@ protected:
vector<ModeChoice> m_aModeChoices; // derived classes should look here for what choices are available vector<ModeChoice> m_aModeChoices; // derived classes should look here for what choices are available
vector<CodeItem> m_aCodes; vector<CodeItem> m_aCodes;
vector<ModeChoice> m_aCodeChoices;
vector<CString> m_aCodeActions; vector<CString> m_aCodeActions;
}; };