added MAX-style options navigation and moved more constants into theme metrics

This commit is contained in:
Chris Danford
2002-09-04 03:49:08 +00:00
parent 1e6faf12a6
commit 1c90b8236f
68 changed files with 545 additions and 415 deletions
+13 -13
View File
@@ -224,7 +224,7 @@ MenuBack
Desc: Actions performed when a player
presses the button bound to back
************************************/
void ScreenEz2SelectStyle::MenuBack( PlayerNumber p )
void ScreenEz2SelectStyle::MenuBack( PlayerNumber pn )
{
MUSIC->Stop();
@@ -233,13 +233,13 @@ void ScreenEz2SelectStyle::MenuBack( PlayerNumber p )
void ScreenEz2SelectStyle::MenuLeft( PlayerNumber p )
void ScreenEz2SelectStyle::MenuLeft( PlayerNumber pn )
{
m_ScrollingList.Left();
m_soundChange.Play();
}
void ScreenEz2SelectStyle::MenuRight( PlayerNumber p )
void ScreenEz2SelectStyle::MenuRight( PlayerNumber pn )
{
m_ScrollingList.Right();
m_soundChange.Play();
@@ -250,12 +250,12 @@ MenuDown
Desc: Actions performed when a player
presses the button bound to down
************************************/
void ScreenEz2SelectStyle::MenuDown( PlayerNumber p )
void ScreenEz2SelectStyle::MenuDown( PlayerNumber pn )
{
if( GAMESTATE->m_bSideIsJoined[p] ) // already joined
if( GAMESTATE->m_bSideIsJoined[pn] ) // already joined
return; // ignore
MenuStart( p );
MenuStart( pn );
}
/************************************
@@ -263,18 +263,18 @@ MenuStart
Desc: Actions performed when a player
presses the button bound to start
************************************/
void ScreenEz2SelectStyle::MenuStart( PlayerNumber p )
void ScreenEz2SelectStyle::MenuStart( PlayerNumber pn )
{
if( !GAMESTATE->m_bSideIsJoined[p] )
if( !GAMESTATE->m_bSideIsJoined[pn] )
{
// join them
GAMESTATE->m_bSideIsJoined[p] = true;
GAMESTATE->m_bSideIsJoined[pn] = true;
SCREENMAN->RefreshCreditsMessages();
m_soundSelect.Play();
m_sprCursors[p].BeginTweening( 0.25f );
m_sprCursors[p].SetTweenZoomY( 0 );
m_sprControllers[p].BeginTweening( 0.25f );
m_sprControllers[p].SetTweenZoomY( 0 );
m_sprCursors[pn].BeginTweening( 0.25f );
m_sprCursors[pn].SetTweenZoomY( 0 );
m_sprControllers[pn].BeginTweening( 0.25f );
m_sprControllers[pn].SetTweenZoomY( 0 );
RefreshStylesAndList();
m_ScrollingList.SetSelection( 0 );