2003-02-16 04:01:45 +00:00
|
|
|
#include "global.h"
|
2003-01-11 08:55:21 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: ScreenLogo
|
|
|
|
|
|
|
|
|
|
Desc: See header.
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "ScreenLogo.h"
|
|
|
|
|
#include "ThemeManager.h"
|
|
|
|
|
#include "GameState.h"
|
|
|
|
|
#include "GameDef.h"
|
|
|
|
|
#include "RageLog.h"
|
|
|
|
|
#include "SongManager.h"
|
|
|
|
|
|
2003-03-09 00:55:49 +00:00
|
|
|
#define LOGO_ON_COMMAND THEME->GetMetric("ScreenLogo","LogoOnCommand")
|
|
|
|
|
#define VERSION_ON_COMMAND THEME->GetMetric("ScreenLogo","VersionOnCommand")
|
|
|
|
|
#define SONGS_ON_COMMAND THEME->GetMetric("ScreenLogo","SongsOnCommand")
|
2003-01-11 08:55:21 +00:00
|
|
|
|
|
|
|
|
|
2003-03-09 00:55:49 +00:00
|
|
|
ScreenLogo::ScreenLogo() : ScreenAttract("ScreenLogo")
|
2003-01-11 08:55:21 +00:00
|
|
|
{
|
2003-03-09 00:55:49 +00:00
|
|
|
m_sprLogo.Load( THEME->GetPathTo("Graphics",ssprintf("ScreenLogo %s",GAMESTATE->GetCurrentGameDef()->m_szName)) );
|
|
|
|
|
m_sprLogo.Command( LOGO_ON_COMMAND );
|
2003-01-11 08:55:21 +00:00
|
|
|
this->AddChild( &m_sprLogo );
|
|
|
|
|
|
2003-03-30 18:12:57 +00:00
|
|
|
m_textVersion.LoadFromFont( THEME->GetPathTo("Fonts","Common normal") );
|
2003-03-09 00:55:49 +00:00
|
|
|
m_textVersion.Command( VERSION_ON_COMMAND );
|
2003-03-24 22:05:49 +00:00
|
|
|
m_textVersion.SetText( "CVS" );
|
2003-01-11 08:55:21 +00:00
|
|
|
this->AddChild( &m_textVersion );
|
|
|
|
|
|
|
|
|
|
|
2003-03-30 18:12:57 +00:00
|
|
|
m_textSongs.LoadFromFont( THEME->GetPathTo("Fonts","Common normal") );
|
2003-03-09 00:55:49 +00:00
|
|
|
m_textSongs.Command( SONGS_ON_COMMAND );
|
2003-03-24 22:05:49 +00:00
|
|
|
m_textSongs.SetText( ssprintf("%d songs in %d groups, %d courses", SONGMAN->GetNumSongs(), SONGMAN->GetNumGroups(), SONGMAN->GetNumCourses()) );
|
2003-01-11 08:55:21 +00:00
|
|
|
this->AddChild( &m_textSongs );
|
|
|
|
|
|
2003-03-09 00:55:49 +00:00
|
|
|
this->MoveToTail( &m_In ); // put it in the back so it covers up the stuff we just added
|
|
|
|
|
this->MoveToTail( &m_Out ); // put it in the back so it covers up the stuff we just added
|
2003-01-11 08:55:21 +00:00
|
|
|
}
|