m_sName for ScreenAttract::StartScreen
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
#include "BGAnimation.h"
|
#include "BGAnimation.h"
|
||||||
|
|
||||||
#define NEXT_SCREEN THEME->GetMetric (m_sName,"NextScreen")
|
#define NEXT_SCREEN THEME->GetMetric (m_sName,"NextScreen")
|
||||||
#define START_SCREEN THEME->GetMetric ("ScreenAttract","StartScreen")
|
#define START_SCREEN(sScreenName) THEME->GetMetric (sScreenName,"StartScreen")
|
||||||
|
|
||||||
|
|
||||||
REGISTER_SCREEN_CLASS( ScreenAttract );
|
REGISTER_SCREEN_CLASS( ScreenAttract );
|
||||||
@@ -49,10 +49,10 @@ void ScreenAttract::Input( const DeviceInput& DeviceI, const InputEventType type
|
|||||||
{
|
{
|
||||||
// LOG->Trace( "ScreenAttract::Input()" );
|
// LOG->Trace( "ScreenAttract::Input()" );
|
||||||
|
|
||||||
AttractInput( DeviceI, type, GameI, MenuI, StyleI, m_In.IsTransitioning() || m_Out.IsTransitioning() );
|
AttractInput( DeviceI, type, GameI, MenuI, StyleI, m_In.IsTransitioning() || m_Out.IsTransitioning(), m_sName );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenAttract::AttractInput( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI, bool bTransitioning )
|
void ScreenAttract::AttractInput( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI, bool bTransitioning, CString sScreenName )
|
||||||
{
|
{
|
||||||
if(type != IET_FIRST_PRESS)
|
if(type != IET_FIRST_PRESS)
|
||||||
return; // don't care
|
return; // don't care
|
||||||
@@ -82,7 +82,7 @@ void ScreenAttract::AttractInput( const DeviceInput& DeviceI, const InputEventTy
|
|||||||
SCREENMAN->SendMessageToTopScreen( SM_StopMusic );
|
SCREENMAN->SendMessageToTopScreen( SM_StopMusic );
|
||||||
usleep( (int)(JOIN_PAUSE_SECONDS*1000*1000) ); // do a little pause, like the arcade does
|
usleep( (int)(JOIN_PAUSE_SECONDS*1000*1000) ); // do a little pause, like the arcade does
|
||||||
LOG->Trace("ScreenAttract::AttractInput: go to START_SCREEN" );
|
LOG->Trace("ScreenAttract::AttractInput: go to START_SCREEN" );
|
||||||
SCREENMAN->SetNewScreen( START_SCREEN );
|
SCREENMAN->SetNewScreen( START_SCREEN(sScreenName) );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public:
|
|||||||
virtual ~ScreenAttract();
|
virtual ~ScreenAttract();
|
||||||
|
|
||||||
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
|
virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );
|
||||||
static void AttractInput( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI, bool bTransitioning );
|
static void AttractInput( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI, bool bTransitioning, CString sScreenName );
|
||||||
virtual void Update( float fDelta );
|
virtual void Update( float fDelta );
|
||||||
virtual void HandleScreenMessage( const ScreenMessage SM );
|
virtual void HandleScreenMessage( const ScreenMessage SM );
|
||||||
|
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ void ScreenJukebox::Input( const DeviceInput& DeviceI, const InputEventType type
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScreenAttract::AttractInput( DeviceI, type, GameI, MenuI, StyleI, m_Out.IsTransitioning() );
|
ScreenAttract::AttractInput( DeviceI, type, GameI, MenuI, StyleI, m_Out.IsTransitioning(), m_sName );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenJukebox::HandleScreenMessage( const ScreenMessage SM )
|
void ScreenJukebox::HandleScreenMessage( const ScreenMessage SM )
|
||||||
|
|||||||
Reference in New Issue
Block a user