simplify
This commit is contained in:
@@ -1,22 +1,18 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "ScreenLogo.h"
|
#include "ScreenLogo.h"
|
||||||
|
#include "ActorUtil.h"
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
#include "GameDef.h"
|
#include "GameDef.h"
|
||||||
#include "RageLog.h"
|
|
||||||
#include "SongManager.h"
|
|
||||||
|
|
||||||
#define LOGO_ON_COMMAND THEME->GetMetric("ScreenLogo","LogoOnCommand")
|
|
||||||
|
|
||||||
|
|
||||||
ScreenLogo::ScreenLogo( CString sName ) : ScreenAttract( sName )
|
ScreenLogo::ScreenLogo( CString sName ) : ScreenAttract( sName )
|
||||||
{
|
{
|
||||||
|
m_sprLogo.SetName( "Logo" );
|
||||||
m_sprLogo.Load( THEME->GetPathToG(ssprintf("ScreenLogo %s",GAMESTATE->GetCurrentGameDef()->m_szName)) );
|
m_sprLogo.Load( THEME->GetPathToG(ssprintf("ScreenLogo %s",GAMESTATE->GetCurrentGameDef()->m_szName)) );
|
||||||
m_sprLogo.Command( LOGO_ON_COMMAND );
|
ON_COMMAND( m_sprLogo );
|
||||||
this->AddChild( &m_sprLogo );
|
this->AddChild( &m_sprLogo );
|
||||||
|
|
||||||
this->MoveToTail( &m_In ); // put it in the back so it covers up the stuff we just added
|
this->SortByDrawOrder();
|
||||||
this->MoveToTail( &m_Out ); // put it in the back so it covers up the stuff we just added
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user