MenuTimer is in SWME; move SM_MenuTimer there, too. (Screen no longer
needs GAMESTATE.)
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "ScreenManager.h"
|
||||
#include "GameSoundManager.h"
|
||||
#include "MemoryCardDisplay.h"
|
||||
#include "InputEventPlus.h"
|
||||
|
||||
#define TIMER_STEALTH THEME->GetMetricB(m_sName,"TimerStealth")
|
||||
#define STYLE_ICON THEME->GetMetricB(m_sName,"StyleIcon")
|
||||
@@ -156,6 +157,21 @@ void ScreenWithMenuElements::BeginScreen()
|
||||
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()
|
||||
{
|
||||
ON_COMMAND( m_autoHeader );
|
||||
|
||||
Reference in New Issue
Block a user