MenuTimer is in SWME; move SM_MenuTimer there, too. (Screen no longer
needs GAMESTATE.)
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "Screen.h"
|
#include "Screen.h"
|
||||||
#include "GameState.h"
|
|
||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "RageSound.h"
|
#include "RageSound.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
@@ -189,16 +188,7 @@ void Screen::Input( const InputEventPlus &input )
|
|||||||
|
|
||||||
void Screen::HandleScreenMessage( const ScreenMessage SM )
|
void Screen::HandleScreenMessage( const ScreenMessage SM )
|
||||||
{
|
{
|
||||||
if( SM == SM_MenuTimer )
|
if( SM == SM_GoToNextScreen || SM == SM_GoToPrevScreen )
|
||||||
{
|
|
||||||
FOREACH_HumanPlayer(p)
|
|
||||||
{
|
|
||||||
InputEventPlus iep;
|
|
||||||
iep.pn = p;
|
|
||||||
MenuStart( iep );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if( SM == SM_GoToNextScreen || SM == SM_GoToPrevScreen )
|
|
||||||
{
|
{
|
||||||
if( SCREENMAN->IsStackedScreen(this) )
|
if( SCREENMAN->IsStackedScreen(this) )
|
||||||
SCREENMAN->PopTopScreen( m_smSendOnPop );
|
SCREENMAN->PopTopScreen( m_smSendOnPop );
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
#include "ScreenManager.h"
|
#include "ScreenManager.h"
|
||||||
#include "GameSoundManager.h"
|
#include "GameSoundManager.h"
|
||||||
#include "MemoryCardDisplay.h"
|
#include "MemoryCardDisplay.h"
|
||||||
|
#include "InputEventPlus.h"
|
||||||
|
|
||||||
#define TIMER_STEALTH THEME->GetMetricB(m_sName,"TimerStealth")
|
#define TIMER_STEALTH THEME->GetMetricB(m_sName,"TimerStealth")
|
||||||
#define STYLE_ICON THEME->GetMetricB(m_sName,"StyleIcon")
|
#define STYLE_ICON THEME->GetMetricB(m_sName,"StyleIcon")
|
||||||
@@ -156,6 +157,21 @@ void ScreenWithMenuElements::BeginScreen()
|
|||||||
this->PlayCommand( "FirstUpdate" );
|
this->PlayCommand( "FirstUpdate" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScreenWithMenuElements::HandleScreenMessage( const ScreenMessage SM )
|
||||||
|
{
|
||||||
|
if( SM == SM_MenuTimer )
|
||||||
|
{
|
||||||
|
FOREACH_HumanPlayer(p)
|
||||||
|
{
|
||||||
|
InputEventPlus iep;
|
||||||
|
iep.pn = p;
|
||||||
|
MenuStart( iep );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Screen::HandleScreenMessage( SM );
|
||||||
|
}
|
||||||
|
|
||||||
void ScreenWithMenuElements::TweenOnScreen()
|
void ScreenWithMenuElements::TweenOnScreen()
|
||||||
{
|
{
|
||||||
ON_COMMAND( m_autoHeader );
|
ON_COMMAND( m_autoHeader );
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ public:
|
|||||||
virtual void BeginScreen();
|
virtual void BeginScreen();
|
||||||
virtual ~ScreenWithMenuElements();
|
virtual ~ScreenWithMenuElements();
|
||||||
|
|
||||||
|
virtual void HandleScreenMessage( const ScreenMessage SM );
|
||||||
void Update( float fDeltaTime );
|
void Update( float fDeltaTime );
|
||||||
void StartTransitioningScreen( ScreenMessage smSendWhenDone );
|
void StartTransitioningScreen( ScreenMessage smSendWhenDone );
|
||||||
virtual void Cancel( ScreenMessage smSendWhenDone );
|
virtual void Cancel( ScreenMessage smSendWhenDone );
|
||||||
|
|||||||
Reference in New Issue
Block a user