Transition away from Screen(sName).
This commit is contained in:
@@ -10,10 +10,7 @@
|
||||
#include "LocalizedString.h"
|
||||
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenBookkeeping );
|
||||
ScreenBookkeeping::ScreenBookkeeping( CString sClassName ) : ScreenWithMenuElements( sClassName )
|
||||
{
|
||||
}
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenBookkeeping );
|
||||
|
||||
void ScreenBookkeeping::Init()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,6 @@ const int NUM_BOOKKEEPING_COLS = 4;
|
||||
class ScreenBookkeeping : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenBookkeeping( CString sName );
|
||||
virtual void Init();
|
||||
virtual ~ScreenBookkeeping();
|
||||
|
||||
|
||||
@@ -13,14 +13,12 @@
|
||||
|
||||
static ThemeMetric<bool> ALLOW_RESIZE("ScreenCenterImage","AllowResize");
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenCenterImage );
|
||||
ScreenCenterImage::ScreenCenterImage( CString sClassName ) : ScreenWithMenuElements( sClassName )
|
||||
{
|
||||
ZERO( m_fScale );
|
||||
}
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenCenterImage );
|
||||
|
||||
void ScreenCenterImage::Init()
|
||||
{
|
||||
ZERO( m_fScale );
|
||||
|
||||
ScreenWithMenuElements::Init();
|
||||
|
||||
#if defined(XBOX)
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
class ScreenCenterImage : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenCenterImage( CString sName );
|
||||
void Init();
|
||||
virtual ~ScreenCenterImage();
|
||||
|
||||
|
||||
@@ -612,15 +612,13 @@ static int g_iLastInsertTapAttackTrack = -1;
|
||||
static float g_fLastInsertAttackDurationSeconds = -1;
|
||||
static BackgroundLayer g_CurrentBGChangeLayer = BACKGROUND_LAYER_INVALID;
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenEdit );
|
||||
ScreenEdit::ScreenEdit( CString sName ) : ScreenWithMenuElements( sName )
|
||||
{
|
||||
ASSERT( GAMESTATE->m_pCurSong );
|
||||
ASSERT( GAMESTATE->m_pCurSteps[0] );
|
||||
}
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenEdit );
|
||||
|
||||
void ScreenEdit::Init()
|
||||
{
|
||||
ASSERT( GAMESTATE->m_pCurSong );
|
||||
ASSERT( GAMESTATE->m_pCurSteps[0] );
|
||||
|
||||
EDIT_MODE.Load(m_sName,"EditMode");
|
||||
ScreenWithMenuElements::Init();
|
||||
|
||||
|
||||
@@ -148,7 +148,6 @@ struct MapEditToDI
|
||||
class ScreenEdit : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenEdit( CString sName );
|
||||
virtual void Init();
|
||||
virtual ~ScreenEdit();
|
||||
virtual void Update( float fDeltaTime );
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
#include "ScreenEditCourseMods.h"
|
||||
#include "RageLog.h"
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenEditCourseMods );
|
||||
ScreenEditCourseMods::ScreenEditCourseMods( CString sName ) : ScreenEdit( sName )
|
||||
{
|
||||
}
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenEditCourseMods );
|
||||
|
||||
void ScreenEditCourseMods::Init()
|
||||
{
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
class ScreenEditCourseMods : public ScreenEdit
|
||||
{
|
||||
public:
|
||||
ScreenEditCourseMods( CString sName );
|
||||
|
||||
void Init();
|
||||
|
||||
protected:
|
||||
|
||||
@@ -22,16 +22,14 @@
|
||||
AutoScreenMessage( SM_RefreshSelector )
|
||||
AutoScreenMessage( SM_BackFromEditDescription )
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenEditMenu );
|
||||
ScreenEditMenu::ScreenEditMenu( CString sName ) : ScreenWithMenuElements( sName )
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenEditMenu );
|
||||
|
||||
void ScreenEditMenu::Init()
|
||||
{
|
||||
/* Enable all players. */
|
||||
FOREACH_PlayerNumber( pn )
|
||||
GAMESTATE->m_bSideIsJoined[pn] = true;
|
||||
}
|
||||
|
||||
void ScreenEditMenu::Init()
|
||||
{
|
||||
ScreenWithMenuElements::Init();
|
||||
|
||||
m_Selector.SetName( "EditMenu" );
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
class ScreenEditMenu : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenEditMenu( CString sName );
|
||||
virtual void Init();
|
||||
|
||||
virtual void HandleScreenMessage( const ScreenMessage SM );
|
||||
|
||||
@@ -81,8 +81,8 @@ static const int NUM_SHOWN_RADAR_CATEGORIES = 5;
|
||||
AutoScreenMessage( SM_PlayCheer )
|
||||
AutoScreenMessage( SM_AddBonus )
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenEvaluation );
|
||||
ScreenEvaluation::ScreenEvaluation( CString sClassName ) : ScreenWithMenuElements(sClassName)
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenEvaluation );
|
||||
ScreenEvaluation::ScreenEvaluation()
|
||||
{
|
||||
//
|
||||
// debugging
|
||||
|
||||
@@ -42,7 +42,7 @@ enum StatLine
|
||||
class ScreenEvaluation : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenEvaluation( CString sClassName );
|
||||
ScreenEvaluation();
|
||||
virtual void Init();
|
||||
virtual void Input( const InputEventPlus &input );
|
||||
virtual void HandleScreenMessage( const ScreenMessage SM );
|
||||
|
||||
@@ -106,8 +106,8 @@ public:
|
||||
};
|
||||
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenEvaluationMultiplayer );
|
||||
ScreenEvaluationMultiplayer::ScreenEvaluationMultiplayer( CString sClassName ) : ScreenWithMenuElements( sClassName )
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenEvaluationMultiplayer );
|
||||
ScreenEvaluationMultiplayer::ScreenEvaluationMultiplayer()
|
||||
{
|
||||
//
|
||||
// debugging
|
||||
|
||||
@@ -21,7 +21,7 @@ enum MultiplayerJudgeLine
|
||||
class ScreenEvaluationMultiplayer : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenEvaluationMultiplayer( CString sName );
|
||||
ScreenEvaluationMultiplayer();
|
||||
~ScreenEvaluationMultiplayer();
|
||||
virtual void Init();
|
||||
|
||||
|
||||
@@ -69,15 +69,13 @@ const float TWEEN_TIME = 0.5f;
|
||||
|
||||
AutoScreenMessage( SM_NoSongs )
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenEz2SelectMusic );
|
||||
ScreenEz2SelectMusic::ScreenEz2SelectMusic( CString sName ) : ScreenWithMenuElements( sName )
|
||||
{
|
||||
/* Finish any previous stage. It's OK to call this when we havn't played a stage yet. */
|
||||
GAMESTATE->FinishStage();
|
||||
}
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenEz2SelectMusic );
|
||||
|
||||
void ScreenEz2SelectMusic::Init()
|
||||
{
|
||||
/* Finish any previous stage. It's OK to call this when we havn't played a stage yet. */
|
||||
GAMESTATE->FinishStage();
|
||||
|
||||
ScreenWithMenuElements::Init();
|
||||
|
||||
i_SkipAheadOffset = 0;
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
class ScreenEz2SelectMusic : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenEz2SelectMusic( CString sName );
|
||||
virtual void Init();
|
||||
|
||||
virtual void Update( float fDeltaTime );
|
||||
|
||||
@@ -27,23 +27,14 @@
|
||||
const float TWEEN_TIME = 0.35f;
|
||||
|
||||
|
||||
/************************************
|
||||
ScreenEz2SelectPlayer (Constructor)
|
||||
Desc: Sets up the screen display
|
||||
************************************/
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenEz2SelectPlayer );
|
||||
ScreenEz2SelectPlayer::ScreenEz2SelectPlayer( CString sName ) : ScreenWithMenuElements( sName )
|
||||
{
|
||||
// Unjoin the players, then let them join back in on this screen
|
||||
// GAMESTATE->m_bPlayersCanJoin = true;
|
||||
FOREACH_PlayerNumber( p )
|
||||
GAMESTATE->m_bSideIsJoined[p] = false;
|
||||
}
|
||||
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenEz2SelectPlayer );
|
||||
|
||||
void ScreenEz2SelectPlayer::Init()
|
||||
{
|
||||
// Unjoin the players, then let them join back in on this screen
|
||||
FOREACH_PlayerNumber( p )
|
||||
GAMESTATE->m_bSideIsJoined[p] = false;
|
||||
|
||||
ScreenWithMenuElements::Init();
|
||||
|
||||
FOREACH_PlayerNumber( p )
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
class ScreenEz2SelectPlayer : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenEz2SelectPlayer( CString sName );
|
||||
virtual void Init();
|
||||
virtual ~ScreenEz2SelectPlayer();
|
||||
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
#include "ScreenInstructions.h"
|
||||
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenInstructions );
|
||||
ScreenInstructions::ScreenInstructions( CString sName ) : ScreenWithMenuElements( sName )
|
||||
{
|
||||
}
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenInstructions );
|
||||
|
||||
void ScreenInstructions::Init()
|
||||
{
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
class ScreenInstructions : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenInstructions( CString sName );
|
||||
virtual void Init();
|
||||
|
||||
virtual void Input( const InputEventPlus &input );
|
||||
|
||||
@@ -24,8 +24,8 @@ static const char *MultiPlayerStatusNames[] = {
|
||||
XToString( MultiPlayerStatus, NUM_MultiPlayerStatus );
|
||||
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenJoinMultiplayer );
|
||||
ScreenJoinMultiplayer::ScreenJoinMultiplayer( CString sClassName ) : ScreenWithMenuElements( sClassName )
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenJoinMultiplayer );
|
||||
ScreenJoinMultiplayer::ScreenJoinMultiplayer()
|
||||
{
|
||||
FOREACH_MultiPlayer( p )
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ const CString& MultiPlayerStatusToString( MultiPlayerStatus i );
|
||||
class ScreenJoinMultiplayer : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenJoinMultiplayer( CString sName );
|
||||
ScreenJoinMultiplayer();
|
||||
virtual void Init();
|
||||
|
||||
virtual void Input( const InputEventPlus &input );
|
||||
|
||||
@@ -23,10 +23,7 @@ static const float g_fSecondsToWaitForInput = 0.05f;
|
||||
// reserve the 3rd slot for hard-coded keys
|
||||
static const int NUM_CHANGABLE_SLOTS = NUM_SHOWN_GAME_TO_DEVICE_SLOTS-1;
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenMapControllers );
|
||||
ScreenMapControllers::ScreenMapControllers( CString sClassName ) : ScreenWithMenuElements( sClassName )
|
||||
{
|
||||
}
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenMapControllers );
|
||||
|
||||
void ScreenMapControllers::Init()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,6 @@ enum { NUM_SHOWN_GAME_TO_DEVICE_SLOTS = 3 };
|
||||
class ScreenMapControllers : public ScreenWithMenuElements
|
||||
{
|
||||
public:
|
||||
ScreenMapControllers( CString sName );
|
||||
virtual void Init();
|
||||
virtual void BeginScreen();
|
||||
|
||||
|
||||
@@ -19,10 +19,7 @@ const int NUM_SCORE_DIGITS = 9;
|
||||
|
||||
AutoScreenMessage( SM_GotEval )
|
||||
|
||||
REGISTER_SCREEN_CLASS( ScreenNetEvaluation );
|
||||
ScreenNetEvaluation::ScreenNetEvaluation (const CString & sClassName) : ScreenEvaluation( sClassName )
|
||||
{
|
||||
}
|
||||
REGISTER_SCREEN_CLASS_NEW( ScreenNetEvaluation );
|
||||
|
||||
void ScreenNetEvaluation::Init()
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
class ScreenNetEvaluation: public ScreenEvaluation
|
||||
{
|
||||
public:
|
||||
ScreenNetEvaluation (const CString& sClassName);
|
||||
virtual void Init();
|
||||
|
||||
protected:
|
||||
|
||||
@@ -21,6 +21,15 @@
|
||||
#define WAIT_FOR_CHILDREN_BEFORE_TWEENING_OUT THEME->GetMetricB(m_sName,"WaitForChildrenBeforeTweeningOut")
|
||||
|
||||
//REGISTER_SCREEN_CLASS( ScreenWithMenuElements );
|
||||
ScreenWithMenuElements::ScreenWithMenuElements()
|
||||
{
|
||||
m_MenuTimer = NULL;
|
||||
m_textHelp = new HelpDisplay;
|
||||
FOREACH_PlayerNumber( p )
|
||||
m_MemoryCardDisplay[p] = NULL;
|
||||
m_MenuTimer = NULL;
|
||||
}
|
||||
|
||||
ScreenWithMenuElements::ScreenWithMenuElements( CString sClassName ) : Screen( sClassName )
|
||||
{
|
||||
m_MenuTimer = NULL;
|
||||
@@ -28,17 +37,15 @@ ScreenWithMenuElements::ScreenWithMenuElements( CString sClassName ) : Screen( s
|
||||
FOREACH_PlayerNumber( p )
|
||||
m_MemoryCardDisplay[p] = NULL;
|
||||
m_MenuTimer = NULL;
|
||||
|
||||
// Needs to be in the constructor in case a derivitive decides to skip
|
||||
// itself and sends SM_GoToNextScreen to ScreenAttract.
|
||||
PLAY_MUSIC .Load( m_sName, "PlayMusic" );
|
||||
TIMER_SECONDS .Load( m_sName, "TimerSeconds" );
|
||||
}
|
||||
|
||||
void ScreenWithMenuElements::Init()
|
||||
{
|
||||
LOG->Trace( "ScreenWithMenuElements::Init()" );
|
||||
|
||||
PLAY_MUSIC.Load( m_sName, "PlayMusic" );
|
||||
TIMER_SECONDS.Load( m_sName, "TimerSeconds" );
|
||||
|
||||
Screen::Init();
|
||||
|
||||
ASSERT( this->m_SubActors.empty() ); // don't call Init twice!
|
||||
|
||||
@@ -15,6 +15,7 @@ class MemoryCardDisplay;
|
||||
class ScreenWithMenuElements : public Screen
|
||||
{
|
||||
public:
|
||||
ScreenWithMenuElements();
|
||||
ScreenWithMenuElements( CString sName );
|
||||
virtual void Init();
|
||||
virtual void BeginScreen();
|
||||
|
||||
Reference in New Issue
Block a user