change ScreenTitleMenu to derive from ScreenSelectMaster

This commit is contained in:
Chris Danford
2005-01-04 11:06:12 +00:00
parent 5cbe07e450
commit b7729bfa4c
5 changed files with 191 additions and 312 deletions
+7 -3
View File
@@ -7,12 +7,11 @@
#include "BGAnimation.h"
#include "GameCommand.h"
#include "CodeDetector.h"
#include "ThemeMetric.h"
// Derived classes must send this when done
const ScreenMessage SM_AllDoneChoosing = (ScreenMessage)(SM_User+123); // unique
#define MAX_CHOICES 30
class ScreenSelect : public ScreenWithMenuElements
{
public:
@@ -26,7 +25,6 @@ public:
virtual void MenuBack( PlayerNumber pn );
protected:
virtual int GetSelectionIndex( PlayerNumber pn ) = 0;
virtual void UpdateSelectableChoices() = 0; // derived screens must handle this
@@ -37,6 +35,12 @@ protected:
vector<CodeItem> m_aCodes;
vector<GameCommand> m_aCodeChoices;
RageTimer m_timerIdleComment; // count up to time between idle comment announcer sounds
RageTimer m_timerIdleTimeout; // count up to go to the timeout screen
ThemeMetric<float> IDLE_COMMENT_SECONDS;
ThemeMetric<float> IDLE_TIMEOUT_SECONDS;
};
#endif