add on, off debugs
This commit is contained in:
@@ -1009,6 +1009,8 @@ Reload=Reload
|
|||||||
Reload Theme and Textures=Reload Theme and Textures
|
Reload Theme and Textures=Reload Theme and Textures
|
||||||
Rendering Stats=Rendering Stats
|
Rendering Stats=Rendering Stats
|
||||||
Screen Test Mode=Screen Test Mode
|
Screen Test Mode=Screen Test Mode
|
||||||
|
Send Off To Screen=Send Off To Screen
|
||||||
|
Send On To Screen=Send On To Screen
|
||||||
Send Notes Ended=Send Notes Ended
|
Send Notes Ended=Send Notes Ended
|
||||||
Slow=Slow
|
Slow=Slow
|
||||||
Song=Song
|
Song=Song
|
||||||
|
|||||||
@@ -428,6 +428,8 @@ static LocalizedString FILL_MACHINE_STATS ( "ScreenDebugOverlay", "Fill Machine
|
|||||||
static LocalizedString SEND_NOTES_ENDED ( "ScreenDebugOverlay", "Send Notes Ended" );
|
static LocalizedString SEND_NOTES_ENDED ( "ScreenDebugOverlay", "Send Notes Ended" );
|
||||||
static LocalizedString RELOAD ( "ScreenDebugOverlay", "Reload" );
|
static LocalizedString RELOAD ( "ScreenDebugOverlay", "Reload" );
|
||||||
static LocalizedString RESTART ( "ScreenDebugOverlay", "Restart" );
|
static LocalizedString RESTART ( "ScreenDebugOverlay", "Restart" );
|
||||||
|
static LocalizedString SCREEN_ON ( "ScreenDebugOverlay", "Send On To Screen" );
|
||||||
|
static LocalizedString SCREEN_OFF ( "ScreenDebugOverlay", "Send Off To Screen" );
|
||||||
static LocalizedString RELOAD_THEME_AND_TEXTURES( "ScreenDebugOverlay", "Reload Theme and Textures" );
|
static LocalizedString RELOAD_THEME_AND_TEXTURES( "ScreenDebugOverlay", "Reload Theme and Textures" );
|
||||||
static LocalizedString WRITE_PROFILES ( "ScreenDebugOverlay", "Write Profiles" );
|
static LocalizedString WRITE_PROFILES ( "ScreenDebugOverlay", "Write Profiles" );
|
||||||
static LocalizedString WRITE_PREFERENCES ( "ScreenDebugOverlay", "Write Preferences" );
|
static LocalizedString WRITE_PREFERENCES ( "ScreenDebugOverlay", "Write Preferences" );
|
||||||
@@ -743,7 +745,7 @@ class DebugLineFillMachineStats : public IDebugLine
|
|||||||
virtual bool IsEnabled() { return true; }
|
virtual bool IsEnabled() { return true; }
|
||||||
virtual void DoAndMakeSystemMessage( RString &sMessageOut )
|
virtual void DoAndMakeSystemMessage( RString &sMessageOut )
|
||||||
{
|
{
|
||||||
Profile* pProfile = PROFILEMAN->GetMachineProfile();
|
Profile* pProfile = PROFILEMAN->GetProfile(PLAYER_1);
|
||||||
FillProfileStats( pProfile );
|
FillProfileStats( pProfile );
|
||||||
PROFILEMAN->SaveMachineProfile();
|
PROFILEMAN->SaveMachineProfile();
|
||||||
IDebugLine::DoAndMakeSystemMessage( sMessageOut );
|
IDebugLine::DoAndMakeSystemMessage( sMessageOut );
|
||||||
@@ -794,6 +796,32 @@ class DebugLineRestartCurrentScreen : public IDebugLine
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class DebugLineCurrentScreenOn : public IDebugLine
|
||||||
|
{
|
||||||
|
virtual RString GetDisplayTitle() { return SCREEN_ON.GetValue(); }
|
||||||
|
virtual RString GetDisplayValue() { return SCREENMAN && SCREENMAN->GetTopScreen()? SCREENMAN->GetTopScreen()->GetName() : RString(); }
|
||||||
|
virtual bool IsEnabled() { return true; }
|
||||||
|
virtual void DoAndMakeSystemMessage( RString &sMessageOut )
|
||||||
|
{
|
||||||
|
SCREENMAN->GetTopScreen()->PlayCommand("On");
|
||||||
|
IDebugLine::DoAndMakeSystemMessage( sMessageOut );
|
||||||
|
sMessageOut = "";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
class DebugLineCurrentScreenOff : public IDebugLine
|
||||||
|
{
|
||||||
|
virtual RString GetDisplayTitle() { return SCREEN_OFF.GetValue(); }
|
||||||
|
virtual RString GetDisplayValue() { return SCREENMAN && SCREENMAN->GetTopScreen()? SCREENMAN->GetTopScreen()->GetName() : RString(); }
|
||||||
|
virtual bool IsEnabled() { return true; }
|
||||||
|
virtual void DoAndMakeSystemMessage( RString &sMessageOut )
|
||||||
|
{
|
||||||
|
SCREENMAN->GetTopScreen()->PlayCommand("Off");
|
||||||
|
IDebugLine::DoAndMakeSystemMessage( sMessageOut );
|
||||||
|
sMessageOut = "";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
class DebugLineReloadTheme : public IDebugLine
|
class DebugLineReloadTheme : public IDebugLine
|
||||||
{
|
{
|
||||||
virtual RString GetDisplayTitle() { return RELOAD_THEME_AND_TEXTURES.GetValue(); }
|
virtual RString GetDisplayTitle() { return RELOAD_THEME_AND_TEXTURES.GetValue(); }
|
||||||
@@ -940,6 +968,8 @@ DECLARE_ONE( DebugLineFillMachineStats );
|
|||||||
DECLARE_ONE( DebugLineSendNotesEnded );
|
DECLARE_ONE( DebugLineSendNotesEnded );
|
||||||
DECLARE_ONE( DebugLineReloadCurrentScreen );
|
DECLARE_ONE( DebugLineReloadCurrentScreen );
|
||||||
DECLARE_ONE( DebugLineRestartCurrentScreen );
|
DECLARE_ONE( DebugLineRestartCurrentScreen );
|
||||||
|
DECLARE_ONE( DebugLineCurrentScreenOn );
|
||||||
|
DECLARE_ONE( DebugLineCurrentScreenOff );
|
||||||
DECLARE_ONE( DebugLineReloadTheme );
|
DECLARE_ONE( DebugLineReloadTheme );
|
||||||
DECLARE_ONE( DebugLineWriteProfiles );
|
DECLARE_ONE( DebugLineWriteProfiles );
|
||||||
DECLARE_ONE( DebugLineWritePreferences );
|
DECLARE_ONE( DebugLineWritePreferences );
|
||||||
|
|||||||
Reference in New Issue
Block a user