Modify AutoScreenMessage to keep map of all non-standard ScreenMessages.

This has a lot of advantages over the old ways.  Some of the initial ones are that
you can log a list of all screenmessages and their respective number and another
is that it would be fairly easy to add a reverse lookup, so you could get the name
of a ScreenMessage for log use by getting the ScreenMessage number.
This commit is contained in:
Charles Lohr
2005-03-28 08:01:36 +00:00
parent b2b3a80625
commit 8c5909ebe9
39 changed files with 139 additions and 109 deletions
+9 -10
View File
@@ -65,24 +65,23 @@ static ThemeMetric<float> SECONDS_BETWEEN_COMMENTS ("ScreenGameplay","SecondsBet
/* Global, so it's accessible from ShowSavePrompt: */
static float g_fOldOffset; // used on offset screen to calculate difference
const AutoScreenMessage SM_PlayReady;
const AutoScreenMessage SM_PlayGo;
AutoScreenMessage( SM_PlayReady )
AutoScreenMessage( SM_PlayGo )
// received while STATE_DANCING
const AutoScreenMessage SM_NotesEnded;
const AutoScreenMessage SM_LoadNextSong;
const AutoScreenMessage SM_StartLoadingNextSong;
AutoScreenMessage( SM_LoadNextSong )
AutoScreenMessage( SM_StartLoadingNextSong )
// received while STATE_OUTRO
const AutoScreenMessage SM_SaveChangedBeforeGoingBack;
const AutoScreenMessage SM_GoToScreenAfterBack;
AutoScreenMessage( SM_SaveChangedBeforeGoingBack )
AutoScreenMessage( SM_GoToScreenAfterBack )
const AutoScreenMessage SM_BeginFailed;
AutoScreenMessage( SM_BeginFailed )
// received while STATE_INTRO
const AutoScreenMessage SM_StartHereWeGo;
const AutoScreenMessage SM_StopHereWeGo;
AutoScreenMessage( SM_StartHereWeGo )
AutoScreenMessage( SM_StopHereWeGo )
static Preference<float> g_fNetStartOffset( Options, "NetworkStartOffset", -3.0 );