finish ctor transition
This commit is contained in:
@@ -17,13 +17,6 @@ void RegisterScreenClass( const CString& sClassName, CreateScreenFn pfn );
|
|||||||
|
|
||||||
// Each Screen class should have a REGISTER_SCREEN_CLASS in its CPP file.
|
// Each Screen class should have a REGISTER_SCREEN_CLASS in its CPP file.
|
||||||
#define REGISTER_SCREEN_CLASS( className ) \
|
#define REGISTER_SCREEN_CLASS( className ) \
|
||||||
static Screen* Create##className( const CString &sName ) { Screen *pRet = new className( sName ); Screen::InitScreen( pRet ); return pRet; } \
|
|
||||||
struct Register##className { \
|
|
||||||
Register##className() { RegisterScreenClass( #className,Create##className); } \
|
|
||||||
}; \
|
|
||||||
static Register##className register_##className;
|
|
||||||
|
|
||||||
#define REGISTER_SCREEN_CLASS_NEW( className ) \
|
|
||||||
static Screen* Create##className( const CString &sName ) { Screen *pRet = new className; pRet->SetName( sName ); Screen::InitScreen( pRet ); return pRet; } \
|
static Screen* Create##className( const CString &sName ) { Screen *pRet = new className; pRet->SetName( sName ); Screen::InitScreen( pRet ); return pRet; } \
|
||||||
struct Register##className { \
|
struct Register##className { \
|
||||||
Register##className() { RegisterScreenClass( #className,Create##className); } \
|
Register##className() { RegisterScreenClass( #className,Create##className); } \
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
ThemeMetric<bool> BACK_GOES_TO_START_SCREEN( "ScreenAttract", "BackGoesToStartScreen" );
|
ThemeMetric<bool> BACK_GOES_TO_START_SCREEN( "ScreenAttract", "BackGoesToStartScreen" );
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenAttract );
|
REGISTER_SCREEN_CLASS( ScreenAttract );
|
||||||
ScreenAttract::ScreenAttract( bool bResetGameState )
|
ScreenAttract::ScreenAttract( bool bResetGameState )
|
||||||
{
|
{
|
||||||
if( bResetGameState )
|
if( bResetGameState )
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "LocalizedString.h"
|
#include "LocalizedString.h"
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenBookkeeping );
|
REGISTER_SCREEN_CLASS( ScreenBookkeeping );
|
||||||
|
|
||||||
void ScreenBookkeeping::Init()
|
void ScreenBookkeeping::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
static ThemeMetric<bool> ALLOW_RESIZE("ScreenCenterImage","AllowResize");
|
static ThemeMetric<bool> ALLOW_RESIZE("ScreenCenterImage","AllowResize");
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenCenterImage );
|
REGISTER_SCREEN_CLASS( ScreenCenterImage );
|
||||||
|
|
||||||
void ScreenCenterImage::Init()
|
void ScreenCenterImage::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include "AnnouncerManager.h"
|
#include "AnnouncerManager.h"
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenCredits );
|
REGISTER_SCREEN_CLASS( ScreenCredits );
|
||||||
|
|
||||||
void ScreenCredits::Init()
|
void ScreenCredits::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ static bool IsGameplay()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenDebugOverlay );
|
REGISTER_SCREEN_CLASS( ScreenDebugOverlay );
|
||||||
|
|
||||||
ScreenDebugOverlay::~ScreenDebugOverlay()
|
ScreenDebugOverlay::~ScreenDebugOverlay()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#define SECONDS_TO_SHOW THEME->GetMetricF(m_sName,"SecondsToShow")
|
#define SECONDS_TO_SHOW THEME->GetMetricF(m_sName,"SecondsToShow")
|
||||||
#define ALLOW_STYLE_TYPES THEME->GetMetric (m_sName,"AllowStyleTypes")
|
#define ALLOW_STYLE_TYPES THEME->GetMetric (m_sName,"AllowStyleTypes")
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenDemonstration );
|
REGISTER_SCREEN_CLASS( ScreenDemonstration );
|
||||||
ScreenDemonstration::ScreenDemonstration()
|
ScreenDemonstration::ScreenDemonstration()
|
||||||
{
|
{
|
||||||
m_bDemonstration = true;
|
m_bDemonstration = true;
|
||||||
|
|||||||
@@ -612,7 +612,7 @@ static int g_iLastInsertTapAttackTrack = -1;
|
|||||||
static float g_fLastInsertAttackDurationSeconds = -1;
|
static float g_fLastInsertAttackDurationSeconds = -1;
|
||||||
static BackgroundLayer g_CurrentBGChangeLayer = BACKGROUND_LAYER_INVALID;
|
static BackgroundLayer g_CurrentBGChangeLayer = BACKGROUND_LAYER_INVALID;
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenEdit );
|
REGISTER_SCREEN_CLASS( ScreenEdit );
|
||||||
|
|
||||||
void ScreenEdit::Init()
|
void ScreenEdit::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include "ScreenEditCourseMods.h"
|
#include "ScreenEditCourseMods.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenEditCourseMods );
|
REGISTER_SCREEN_CLASS( ScreenEditCourseMods );
|
||||||
|
|
||||||
void ScreenEditCourseMods::Init()
|
void ScreenEditCourseMods::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
AutoScreenMessage( SM_RefreshSelector )
|
AutoScreenMessage( SM_RefreshSelector )
|
||||||
AutoScreenMessage( SM_BackFromEditDescription )
|
AutoScreenMessage( SM_BackFromEditDescription )
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenEditMenu );
|
REGISTER_SCREEN_CLASS( ScreenEditMenu );
|
||||||
|
|
||||||
void ScreenEditMenu::Init()
|
void ScreenEditMenu::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ CString GetStatsLineValue( PlayerNumber pn, EndingStatsLine line )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenEnding );
|
REGISTER_SCREEN_CLASS( ScreenEnding );
|
||||||
ScreenEnding::ScreenEnding() : ScreenAttract( false/*dont reset GAMESTATE*/ )
|
ScreenEnding::ScreenEnding() : ScreenAttract( false/*dont reset GAMESTATE*/ )
|
||||||
{
|
{
|
||||||
if( PREFSMAN->m_bScreenTestMode )
|
if( PREFSMAN->m_bScreenTestMode )
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ static const int NUM_SHOWN_RADAR_CATEGORIES = 5;
|
|||||||
AutoScreenMessage( SM_PlayCheer )
|
AutoScreenMessage( SM_PlayCheer )
|
||||||
AutoScreenMessage( SM_AddBonus )
|
AutoScreenMessage( SM_AddBonus )
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenEvaluation );
|
REGISTER_SCREEN_CLASS( ScreenEvaluation );
|
||||||
ScreenEvaluation::ScreenEvaluation()
|
ScreenEvaluation::ScreenEvaluation()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenEvaluationMultiplayer );
|
REGISTER_SCREEN_CLASS( ScreenEvaluationMultiplayer );
|
||||||
ScreenEvaluationMultiplayer::ScreenEvaluationMultiplayer()
|
ScreenEvaluationMultiplayer::ScreenEvaluationMultiplayer()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
* is annoying, because sounds might be deleted at any time; they aren't ours to have
|
* is annoying, because sounds might be deleted at any time; they aren't ours to have
|
||||||
* references to. Also, it's better to quit on command instead of waiting several seconds
|
* references to. Also, it's better to quit on command instead of waiting several seconds
|
||||||
* for a sound to stop. */
|
* for a sound to stop. */
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenExit );
|
REGISTER_SCREEN_CLASS( ScreenExit );
|
||||||
|
|
||||||
void ScreenExit::Init()
|
void ScreenExit::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const float TWEEN_TIME = 0.5f;
|
|||||||
|
|
||||||
AutoScreenMessage( SM_NoSongs )
|
AutoScreenMessage( SM_NoSongs )
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenEz2SelectMusic );
|
REGISTER_SCREEN_CLASS( ScreenEz2SelectMusic );
|
||||||
|
|
||||||
void ScreenEz2SelectMusic::Init()
|
void ScreenEz2SelectMusic::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
const float TWEEN_TIME = 0.35f;
|
const float TWEEN_TIME = 0.35f;
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenEz2SelectPlayer );
|
REGISTER_SCREEN_CLASS( ScreenEz2SelectPlayer );
|
||||||
|
|
||||||
void ScreenEz2SelectPlayer::Init()
|
void ScreenEz2SelectPlayer::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "StatsManager.h"
|
#include "StatsManager.h"
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenGameplayLesson );
|
REGISTER_SCREEN_CLASS( ScreenGameplayLesson );
|
||||||
ScreenGameplayLesson::ScreenGameplayLesson()
|
ScreenGameplayLesson::ScreenGameplayLesson()
|
||||||
{
|
{
|
||||||
m_iCurrentPageIndex = 0;
|
m_iCurrentPageIndex = 0;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenGameplayMultiplayer );
|
REGISTER_SCREEN_CLASS( ScreenGameplayMultiplayer );
|
||||||
|
|
||||||
void ScreenGameplayMultiplayer::Init()
|
void ScreenGameplayMultiplayer::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include "ScreenGameplayNormal.h"
|
#include "ScreenGameplayNormal.h"
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenGameplayNormal );
|
REGISTER_SCREEN_CLASS( ScreenGameplayNormal );
|
||||||
|
|
||||||
void ScreenGameplayNormal::FillPlayerInfo( vector<PlayerInfo> &vPlayerInfoOut )
|
void ScreenGameplayNormal::FillPlayerInfo( vector<PlayerInfo> &vPlayerInfoOut )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ static bool HaveAllCharAnimations()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenHowToPlay );
|
REGISTER_SCREEN_CLASS( ScreenHowToPlay );
|
||||||
ScreenHowToPlay::ScreenHowToPlay()
|
ScreenHowToPlay::ScreenHowToPlay()
|
||||||
{
|
{
|
||||||
m_iW2s = 0;
|
m_iW2s = 0;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include "ScreenInstructions.h"
|
#include "ScreenInstructions.h"
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenInstructions );
|
REGISTER_SCREEN_CLASS( ScreenInstructions );
|
||||||
|
|
||||||
void ScreenInstructions::Init()
|
void ScreenInstructions::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ static const char *MultiPlayerStatusNames[] = {
|
|||||||
XToString( MultiPlayerStatus, NUM_MultiPlayerStatus );
|
XToString( MultiPlayerStatus, NUM_MultiPlayerStatus );
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenJoinMultiplayer );
|
REGISTER_SCREEN_CLASS( ScreenJoinMultiplayer );
|
||||||
ScreenJoinMultiplayer::ScreenJoinMultiplayer()
|
ScreenJoinMultiplayer::ScreenJoinMultiplayer()
|
||||||
{
|
{
|
||||||
FOREACH_MultiPlayer( p )
|
FOREACH_MultiPlayer( p )
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#define SHOW_COURSE_MODIFIERS_PROBABILITY THEME->GetMetricF(m_sName,"ShowCourseModifiersProbability")
|
#define SHOW_COURSE_MODIFIERS_PROBABILITY THEME->GetMetricF(m_sName,"ShowCourseModifiersProbability")
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenJukebox );
|
REGISTER_SCREEN_CLASS( ScreenJukebox );
|
||||||
void ScreenJukebox::SetSong()
|
void ScreenJukebox::SetSong()
|
||||||
{
|
{
|
||||||
ThemeMetric<bool> ALLOW_ADVANCED_MODIFIERS(m_sName,"AllowAdvancedModifiers");
|
ThemeMetric<bool> ALLOW_ADVANCED_MODIFIERS(m_sName,"AllowAdvancedModifiers");
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ static const float g_fSecondsToWaitForInput = 0.05f;
|
|||||||
// reserve the 3rd slot for hard-coded keys
|
// reserve the 3rd slot for hard-coded keys
|
||||||
static const int NUM_CHANGABLE_SLOTS = NUM_SHOWN_GAME_TO_DEVICE_SLOTS-1;
|
static const int NUM_CHANGABLE_SLOTS = NUM_SHOWN_GAME_TO_DEVICE_SLOTS-1;
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenMapControllers );
|
REGISTER_SCREEN_CLASS( ScreenMapControllers );
|
||||||
|
|
||||||
void ScreenMapControllers::Init()
|
void ScreenMapControllers::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const CString CREDIT_LINES[] =
|
|||||||
const unsigned NUM_CREDIT_LINES = sizeof(CREDIT_LINES) / sizeof(CString);
|
const unsigned NUM_CREDIT_LINES = sizeof(CREDIT_LINES) / sizeof(CString);
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenMusicScroll );
|
REGISTER_SCREEN_CLASS( ScreenMusicScroll );
|
||||||
|
|
||||||
void ScreenMusicScroll::Init()
|
void ScreenMusicScroll::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ float GetClosestCharYPos( float fFakeBeat )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenNameEntry );
|
REGISTER_SCREEN_CLASS( ScreenNameEntry );
|
||||||
ScreenNameEntry::ScreenNameEntry()
|
ScreenNameEntry::ScreenNameEntry()
|
||||||
{
|
{
|
||||||
// DEBUGGING STUFF
|
// DEBUGGING STUFF
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ float HighScoreWheel::Scroll()
|
|||||||
return GetTweenTimeLeft();
|
return GetTweenTimeLeft();
|
||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenNameEntryTraditional );
|
REGISTER_SCREEN_CLASS( ScreenNameEntryTraditional );
|
||||||
ScreenNameEntryTraditional::ScreenNameEntryTraditional():
|
ScreenNameEntryTraditional::ScreenNameEntryTraditional():
|
||||||
CHANGE_COMMAND("stoptweening;decelerate,.12")
|
CHANGE_COMMAND("stoptweening;decelerate,.12")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const int NUM_SCORE_DIGITS = 9;
|
|||||||
|
|
||||||
AutoScreenMessage( SM_GotEval )
|
AutoScreenMessage( SM_GotEval )
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenNetEvaluation );
|
REGISTER_SCREEN_CLASS( ScreenNetEvaluation );
|
||||||
|
|
||||||
void ScreenNetEvaluation::Init()
|
void ScreenNetEvaluation::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ AutoScreenMessage( SM_SMOnlinePack )
|
|||||||
AutoScreenMessage( SM_BackFromRoomName )
|
AutoScreenMessage( SM_BackFromRoomName )
|
||||||
AutoScreenMessage( SM_BackFromRoomDesc )
|
AutoScreenMessage( SM_BackFromRoomDesc )
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenNetRoom );
|
REGISTER_SCREEN_CLASS( ScreenNetRoom );
|
||||||
|
|
||||||
void ScreenNetRoom::Init()
|
void ScreenNetRoom::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ AutoScreenMessage( SM_AddToChat )
|
|||||||
AutoScreenMessage( SM_UsersUpdate )
|
AutoScreenMessage( SM_UsersUpdate )
|
||||||
AutoScreenMessage( SM_SMOnlinePack )
|
AutoScreenMessage( SM_SMOnlinePack )
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenNetSelectBase );
|
REGISTER_SCREEN_CLASS( ScreenNetSelectBase );
|
||||||
|
|
||||||
void ScreenNetSelectBase::Init()
|
void ScreenNetSelectBase::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ const CString AllGroups = "[ALL MUSIC]";
|
|||||||
#define DIFFBG_WIDTH THEME->GetMetricF(m_sName,"DiffBGWidth")
|
#define DIFFBG_WIDTH THEME->GetMetricF(m_sName,"DiffBGWidth")
|
||||||
#define DIFFBG_HEIGHT THEME->GetMetricF(m_sName,"DiffBGHeight")
|
#define DIFFBG_HEIGHT THEME->GetMetricF(m_sName,"DiffBGHeight")
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenNetSelectMusic );
|
REGISTER_SCREEN_CLASS( ScreenNetSelectMusic );
|
||||||
|
|
||||||
void ScreenNetSelectMusic::Init()
|
void ScreenNetSelectMusic::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ AutoScreenMessage( SM_ServerNameEnter )
|
|||||||
|
|
||||||
Preference<CString> g_sLastServer( "LastConnectedServer", "" );
|
Preference<CString> g_sLastServer( "LastConnectedServer", "" );
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenNetworkOptions );
|
REGISTER_SCREEN_CLASS( ScreenNetworkOptions );
|
||||||
|
|
||||||
void ScreenNetworkOptions::Init()
|
void ScreenNetworkOptions::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ static MenuDef g_TempMenu(
|
|||||||
"ScreenMiniMenuContext"
|
"ScreenMiniMenuContext"
|
||||||
);
|
);
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenOptionsEditCourse );
|
REGISTER_SCREEN_CLASS( ScreenOptionsEditCourse );
|
||||||
|
|
||||||
void ScreenOptionsEditCourse::Init()
|
void ScreenOptionsEditCourse::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ static void FillSongsAndChoices( const CString &sSongGroup, vector<Song*> &vpSon
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenOptionsEditCourseEntry );
|
REGISTER_SCREEN_CLASS( ScreenOptionsEditCourseEntry );
|
||||||
|
|
||||||
void ScreenOptionsEditCourseEntry::Init()
|
void ScreenOptionsEditCourseEntry::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ enum EditProfileRow
|
|||||||
ROW_CHARACTER,
|
ROW_CHARACTER,
|
||||||
};
|
};
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenOptionsEditProfile );
|
REGISTER_SCREEN_CLASS( ScreenOptionsEditProfile );
|
||||||
|
|
||||||
void ScreenOptionsEditProfile::Init()
|
void ScreenOptionsEditProfile::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ static bool ValidateEditCourseName( const CString &sAnswer, CString &sErrorOut )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenOptionsManageCourses );
|
REGISTER_SCREEN_CLASS( ScreenOptionsManageCourses );
|
||||||
|
|
||||||
void ScreenOptionsManageCourses::Init()
|
void ScreenOptionsManageCourses::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ static bool ValidateEditStepsDescription( const CString &sAnswer, CString &sErro
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenOptionsManageEditSteps );
|
REGISTER_SCREEN_CLASS( ScreenOptionsManageEditSteps );
|
||||||
|
|
||||||
void ScreenOptionsManageEditSteps::Init()
|
void ScreenOptionsManageEditSteps::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ static bool ValidateLocalProfileName( const CString &sAnswer, CString &sErrorOut
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenOptionsManageProfiles );
|
REGISTER_SCREEN_CLASS( ScreenOptionsManageProfiles );
|
||||||
|
|
||||||
ScreenOptionsManageProfiles::~ScreenOptionsManageProfiles()
|
ScreenOptionsManageProfiles::~ScreenOptionsManageProfiles()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#define LINE(sLineName) THEME->GetMetric (m_sName,ssprintf("Line%s",sLineName.c_str()))
|
#define LINE(sLineName) THEME->GetMetric (m_sName,ssprintf("Line%s",sLineName.c_str()))
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenOptionsMaster );
|
REGISTER_SCREEN_CLASS( ScreenOptionsMaster );
|
||||||
|
|
||||||
void ScreenOptionsMaster::Init()
|
void ScreenOptionsMaster::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "LocalizedString.h"
|
#include "LocalizedString.h"
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenOptionsMemoryCard );
|
REGISTER_SCREEN_CLASS( ScreenOptionsMemoryCard );
|
||||||
|
|
||||||
void ScreenOptionsMemoryCard::Init()
|
void ScreenOptionsMemoryCard::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
AutoScreenMessage( SM_BackFromURL )
|
AutoScreenMessage( SM_BackFromURL )
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenPackages );
|
REGISTER_SCREEN_CLASS( ScreenPackages );
|
||||||
|
|
||||||
void ScreenPackages::Init()
|
void ScreenPackages::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include "Foreach.h"
|
#include "Foreach.h"
|
||||||
#include "InputEventPlus.h"
|
#include "InputEventPlus.h"
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenPlayerOptions );
|
REGISTER_SCREEN_CLASS( ScreenPlayerOptions );
|
||||||
|
|
||||||
void ScreenPlayerOptions::Init()
|
void ScreenPlayerOptions::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ void ScreenPrompt::Prompt( ScreenMessage smSendOnPop, const CString &sText, Prom
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenPrompt );
|
REGISTER_SCREEN_CLASS( ScreenPrompt );
|
||||||
|
|
||||||
void ScreenPrompt::Init()
|
void ScreenPrompt::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -84,9 +84,9 @@ static void GetAllCoursesToShow( vector<Course*> &vpOut, CourseType ct, bool bSh
|
|||||||
|
|
||||||
static CString STEPS_TYPE_COLOR_NAME( size_t i ) { return ssprintf("StepsTypeColor%d",int(i+1)); }
|
static CString STEPS_TYPE_COLOR_NAME( size_t i ) { return ssprintf("StepsTypeColor%d",int(i+1)); }
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenRanking );
|
REGISTER_SCREEN_CLASS( ScreenRanking );
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenRankingScroller );
|
REGISTER_SCREEN_CLASS( ScreenRankingScroller );
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenRankingLines );
|
REGISTER_SCREEN_CLASS( ScreenRankingLines );
|
||||||
|
|
||||||
ScreenRanking::ScreenRanking():
|
ScreenRanking::ScreenRanking():
|
||||||
ScreenAttract( false /*dont reset GAMESTATE*/ )
|
ScreenAttract( false /*dont reset GAMESTATE*/ )
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public:
|
|||||||
* this for the initial load, since we don't want to start up the display
|
* this for the initial load, since we don't want to start up the display
|
||||||
* until we finish loading songs; that way, people can continue to use their
|
* until we finish loading songs; that way, people can continue to use their
|
||||||
* computer while songs load. */
|
* computer while songs load. */
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenReloadSongs );
|
REGISTER_SCREEN_CLASS( ScreenReloadSongs );
|
||||||
|
|
||||||
void ScreenReloadSongs::Init()
|
void ScreenReloadSongs::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#include "Profile.h"
|
#include "Profile.h"
|
||||||
#include "LocalizedString.h"
|
#include "LocalizedString.h"
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW(ScreenSMOnlineLogin);
|
REGISTER_SCREEN_CLASS(ScreenSMOnlineLogin);
|
||||||
|
|
||||||
AutoScreenMessage( SM_SMOnlinePack )
|
AutoScreenMessage( SM_SMOnlinePack )
|
||||||
AutoScreenMessage( SM_PasswordDone )
|
AutoScreenMessage( SM_PasswordDone )
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSandbox );
|
REGISTER_SCREEN_CLASS( ScreenSandbox );
|
||||||
|
|
||||||
void ScreenSandbox::HandleScreenMessage( const ScreenMessage SM )
|
void ScreenSandbox::HandleScreenMessage( const ScreenMessage SM )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ static void RevertSyncChanges( void* pThrowAway )
|
|||||||
GAMESTATE->RevertSyncChanges();
|
GAMESTATE->RevertSyncChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSaveSync );
|
REGISTER_SCREEN_CLASS( ScreenSaveSync );
|
||||||
void ScreenSaveSync::Init()
|
void ScreenSaveSync::Init()
|
||||||
{
|
{
|
||||||
ScreenPrompt::Init();
|
ScreenPrompt::Init();
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const PlayerNumber CPU_PLAYER[NUM_PLAYERS] = { PLAYER_2, PLAYER_1 };
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSelectCharacter );
|
REGISTER_SCREEN_CLASS( ScreenSelectCharacter );
|
||||||
|
|
||||||
|
|
||||||
void ScreenSelectCharacter::Init()
|
void ScreenSelectCharacter::Init()
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#define IGNORED_ELEMENT_COMMAND THEME->GetMetricA(m_sName,"IgnoredElementOnCommand")
|
#define IGNORED_ELEMENT_COMMAND THEME->GetMetricA(m_sName,"IgnoredElementOnCommand")
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSelectDifficulty );
|
REGISTER_SCREEN_CLASS( ScreenSelectDifficulty );
|
||||||
|
|
||||||
void ScreenSelectDifficulty::Init()
|
void ScreenSelectDifficulty::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#define BANNER_HEIGHT THEME->GetMetricF("ScreenSelectGroup","BannerHeight")
|
#define BANNER_HEIGHT THEME->GetMetricF("ScreenSelectGroup","BannerHeight")
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSelectGroup );
|
REGISTER_SCREEN_CLASS( ScreenSelectGroup );
|
||||||
|
|
||||||
static LocalizedString ALL_MUSIC_STRING( "ScreenSelectGroup", "ALL MUSIC" );
|
static LocalizedString ALL_MUSIC_STRING( "ScreenSelectGroup", "ALL MUSIC" );
|
||||||
void ScreenSelectGroup::Init()
|
void ScreenSelectGroup::Init()
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ CString CURSOR_OFFSET_Y_FROM_ICON_NAME( size_t p ) { return ssprintf("CursorP%dO
|
|||||||
/* e.g. "OptionOrderLeft=0:1,1:2,2:3,3:4" */
|
/* e.g. "OptionOrderLeft=0:1,1:2,2:3,3:4" */
|
||||||
CString OPTION_ORDER_NAME( size_t dir ) { return "OptionOrder"+MenuDirToString((MenuDir)dir); }
|
CString OPTION_ORDER_NAME( size_t dir ) { return "OptionOrder"+MenuDirToString((MenuDir)dir); }
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSelectMaster );
|
REGISTER_SCREEN_CLASS( ScreenSelectMaster );
|
||||||
|
|
||||||
void ScreenSelectMaster::Init()
|
void ScreenSelectMaster::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ ScreenSelectMode (Constructor)
|
|||||||
Desc: Sets up the screen display
|
Desc: Sets up the screen display
|
||||||
************************************/
|
************************************/
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSelectMode );
|
REGISTER_SCREEN_CLASS( ScreenSelectMode );
|
||||||
|
|
||||||
void ScreenSelectMode::Init()
|
void ScreenSelectMode::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ static bool g_bBannerWaiting = false;
|
|||||||
static bool g_bSampleMusicWaiting = false;
|
static bool g_bSampleMusicWaiting = false;
|
||||||
static RageTimer g_StartedLoadingAt(RageZeroTimer);
|
static RageTimer g_StartedLoadingAt(RageZeroTimer);
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSelectMusic );
|
REGISTER_SCREEN_CLASS( ScreenSelectMusic );
|
||||||
ScreenSelectMusic::ScreenSelectMusic()
|
ScreenSelectMusic::ScreenSelectMusic()
|
||||||
{
|
{
|
||||||
if( PREFSMAN->m_bScreenTestMode )
|
if( PREFSMAN->m_bScreenTestMode )
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#define DISABLED_COMMAND THEME->GetMetricA(m_sName,"DisabledCommand")
|
#define DISABLED_COMMAND THEME->GetMetricA(m_sName,"DisabledCommand")
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSelectStyle );
|
REGISTER_SCREEN_CLASS( ScreenSelectStyle );
|
||||||
|
|
||||||
void ScreenSelectStyle::Init()
|
void ScreenSelectStyle::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -448,7 +448,7 @@ static CString ResetPreferences()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenServiceAction );
|
REGISTER_SCREEN_CLASS( ScreenServiceAction );
|
||||||
void ScreenServiceAction::Init()
|
void ScreenServiceAction::Init()
|
||||||
{
|
{
|
||||||
ScreenPrompt::Init();
|
ScreenPrompt::Init();
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ static float GetTitleY( SetTimeSelection s ) { return g_Y[s]; }
|
|||||||
static float GetValueX( SetTimeSelection s ) { return g_X[s] + 80; }
|
static float GetValueX( SetTimeSelection s ) { return g_X[s] + 80; }
|
||||||
static float GetValueY( SetTimeSelection s ) { return g_Y[s]; }
|
static float GetValueY( SetTimeSelection s ) { return g_Y[s]; }
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSetTime );
|
REGISTER_SCREEN_CLASS( ScreenSetTime );
|
||||||
|
|
||||||
void ScreenSetTime::Init()
|
void ScreenSetTime::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSongOptions );
|
REGISTER_SCREEN_CLASS( ScreenSongOptions );
|
||||||
|
|
||||||
void ScreenSongOptions::Init()
|
void ScreenSongOptions::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
AutoScreenMessage( SM_PrepScreen )
|
AutoScreenMessage( SM_PrepScreen )
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSplash );
|
REGISTER_SCREEN_CLASS( ScreenSplash );
|
||||||
|
|
||||||
void ScreenSplash::Init()
|
void ScreenSplash::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
AutoScreenMessage( SM_PrepScreen )
|
AutoScreenMessage( SM_PrepScreen )
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenStage );
|
REGISTER_SCREEN_CLASS( ScreenStage );
|
||||||
|
|
||||||
void ScreenStage::Init()
|
void ScreenStage::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "ScreenDimensions.h"
|
#include "ScreenDimensions.h"
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenStatsOverlay );
|
REGISTER_SCREEN_CLASS( ScreenStatsOverlay );
|
||||||
|
|
||||||
void ScreenStatsOverlay::Init()
|
void ScreenStatsOverlay::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ static bool IsGameplay()
|
|||||||
return SCREENMAN && SCREENMAN->GetTopScreen() && SCREENMAN->GetTopScreen()->GetScreenType() == gameplay;
|
return SCREENMAN && SCREENMAN->GetTopScreen() && SCREENMAN->GetTopScreen()->GetScreenType() == gameplay;
|
||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSyncOverlay );
|
REGISTER_SCREEN_CLASS( ScreenSyncOverlay );
|
||||||
|
|
||||||
void ScreenSyncOverlay::Init()
|
void ScreenSyncOverlay::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#include "ScreenDimensions.h"
|
#include "ScreenDimensions.h"
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenSystemLayer );
|
REGISTER_SCREEN_CLASS( ScreenSystemLayer );
|
||||||
void ScreenSystemLayer::Init()
|
void ScreenSystemLayer::Init()
|
||||||
{
|
{
|
||||||
SubscribeToMessage( "RefreshCreditText" );
|
SubscribeToMessage( "RefreshCreditText" );
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ void ScreenTest::SetScreen(int num)
|
|||||||
current=SCREENMAN->MakeNewScreen("ScreenTestFonts");
|
current=SCREENMAN->MakeNewScreen("ScreenTestFonts");
|
||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenTest );
|
REGISTER_SCREEN_CLASS( ScreenTest );
|
||||||
ScreenTest::ScreenTest()
|
ScreenTest::ScreenTest()
|
||||||
{
|
{
|
||||||
current = NULL;
|
current = NULL;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ void ScreenTestFonts::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
SetText( g_sCustomText );
|
SetText( g_sCustomText );
|
||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenTestFonts );
|
REGISTER_SCREEN_CLASS( ScreenTestFonts );
|
||||||
|
|
||||||
void ScreenTestFonts::Init()
|
void ScreenTestFonts::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#include "LocalizedString.h"
|
#include "LocalizedString.h"
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenTestInput );
|
REGISTER_SCREEN_CLASS( ScreenTestInput );
|
||||||
|
|
||||||
void ScreenTestInput::Init()
|
void ScreenTestInput::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include "InputEventPlus.h"
|
#include "InputEventPlus.h"
|
||||||
#include "LocalizedString.h"
|
#include "LocalizedString.h"
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenTestLights );
|
REGISTER_SCREEN_CLASS( ScreenTestLights );
|
||||||
|
|
||||||
void ScreenTestLights::Init()
|
void ScreenTestLights::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "InputEventPlus.h"
|
#include "InputEventPlus.h"
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenTestSound );
|
REGISTER_SCREEN_CLASS( ScreenTestSound );
|
||||||
|
|
||||||
void ScreenTestSound::Init()
|
void ScreenTestSound::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ bool ScreenTextEntry::s_bCancelledLast = false;
|
|||||||
* XXX: Don't allow internal-use codepoints (above 0xFFFF); those are
|
* XXX: Don't allow internal-use codepoints (above 0xFFFF); those are
|
||||||
* subject to change and shouldn't be written to disk.
|
* subject to change and shouldn't be written to disk.
|
||||||
*/
|
*/
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenTextEntry );
|
REGISTER_SCREEN_CLASS( ScreenTextEntry );
|
||||||
|
|
||||||
void ScreenTextEntry::Init()
|
void ScreenTextEntry::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#define COIN_MODE_CHANGE_SCREEN THEME->GetMetric (m_sName,"CoinModeChangeScreen")
|
#define COIN_MODE_CHANGE_SCREEN THEME->GetMetric (m_sName,"CoinModeChangeScreen")
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenTitleMenu );
|
REGISTER_SCREEN_CLASS( ScreenTitleMenu );
|
||||||
ScreenTitleMenu::ScreenTitleMenu()
|
ScreenTitleMenu::ScreenTitleMenu()
|
||||||
{
|
{
|
||||||
/* XXX We really need two common calls: 1, something run when exiting from gameplay
|
/* XXX We really need two common calls: 1, something run when exiting from gameplay
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#define TIME_TO_DISPLAY THEME->GetMetricF("ScreenUnlock", "TimeToDisplay")
|
#define TIME_TO_DISPLAY THEME->GetMetricF("ScreenUnlock", "TimeToDisplay")
|
||||||
#define POINTS_ZOOM THEME->GetMetricF("ScreenUnlock","PointsZoom")
|
#define POINTS_ZOOM THEME->GetMetricF("ScreenUnlock","PointsZoom")
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS_NEW( ScreenUnlock );
|
REGISTER_SCREEN_CLASS( ScreenUnlock );
|
||||||
|
|
||||||
void ScreenUnlock::Init()
|
void ScreenUnlock::Init()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user