Select Player Now with Background Animations
This commit is contained in:
@@ -54,9 +54,23 @@ ScreenEz2SelectPlayer::ScreenEz2SelectPlayer()
|
|||||||
|
|
||||||
LOG->Trace( "ScreenEz2SelectPlayer::ScreenEz2SelectPlayer()" );
|
LOG->Trace( "ScreenEz2SelectPlayer::ScreenEz2SelectPlayer()" );
|
||||||
|
|
||||||
|
m_Menu.Load(
|
||||||
|
THEME->GetPathTo("Graphics","select player background"),
|
||||||
|
THEME->GetPathTo("Graphics","select player top edge"),
|
||||||
|
HELP_TEXT, false, true, TIMER_SECONDS
|
||||||
|
);
|
||||||
|
this->AddChild( &m_Menu );
|
||||||
|
|
||||||
|
m_Background.LoadFromAniDir( THEME->GetPathTo("BGAnimations","ez2 select player") );
|
||||||
|
this->AddChild( &m_Background ); // animated background =)
|
||||||
|
|
||||||
|
m_logo.Load( THEME->GetPathTo("Graphics","select player logo"));
|
||||||
|
m_logo.SetXY( CENTER_X, CENTER_Y);
|
||||||
|
this->AddChild( &m_logo );
|
||||||
|
|
||||||
for( p=0; p<NUM_PLAYERS; p++ )
|
for( p=0; p<NUM_PLAYERS; p++ )
|
||||||
{
|
{
|
||||||
m_sprControllers[p].Load( THEME->GetPathTo("Graphics","select player controller") );
|
m_sprControllers[p].Load( THEME->GetPathTo("Graphics",ssprintf("select player controller p%d", p+1)) ); // two of these for pump support.
|
||||||
m_sprControllers[p].SetXY( CONTROLLER_X(p), CONTROLLER_Y(p) );
|
m_sprControllers[p].SetXY( CONTROLLER_X(p), CONTROLLER_Y(p) );
|
||||||
this->AddChild( &m_sprControllers[p] );
|
this->AddChild( &m_sprControllers[p] );
|
||||||
|
|
||||||
@@ -66,13 +80,6 @@ ScreenEz2SelectPlayer::ScreenEz2SelectPlayer()
|
|||||||
this->AddChild( &m_sprCursors[p] );
|
this->AddChild( &m_sprCursors[p] );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_Menu.Load(
|
|
||||||
THEME->GetPathTo("Graphics","select player background"),
|
|
||||||
THEME->GetPathTo("Graphics","select player top edge"),
|
|
||||||
HELP_TEXT, false, true, TIMER_SECONDS
|
|
||||||
);
|
|
||||||
this->AddChild( &m_Menu );
|
|
||||||
|
|
||||||
m_soundSelect.Load( THEME->GetPathTo("Sounds","menu start") );
|
m_soundSelect.Load( THEME->GetPathTo("Sounds","menu start") );
|
||||||
|
|
||||||
SOUND->PlayOnceStreamedFromDir( ANNOUNCER->GetPathTo("select player intro") );
|
SOUND->PlayOnceStreamedFromDir( ANNOUNCER->GetPathTo("select player intro") );
|
||||||
|
|||||||
@@ -35,8 +35,10 @@ private:
|
|||||||
|
|
||||||
Sprite m_sprCursors[NUM_PLAYERS];
|
Sprite m_sprCursors[NUM_PLAYERS];
|
||||||
Sprite m_sprControllers[NUM_PLAYERS];
|
Sprite m_sprControllers[NUM_PLAYERS];
|
||||||
|
Sprite m_logo;
|
||||||
|
|
||||||
MenuElements m_Menu;
|
MenuElements m_Menu;
|
||||||
|
|
||||||
RageSoundSample m_soundSelect;
|
RageSoundSample m_soundSelect;
|
||||||
|
BackgroundAnimation m_Background;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user