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
+9 -9
View File
@@ -277,25 +277,25 @@ void ScreenSelectDifficulty::HandleScreenMessage( const ScreenMessage SM )
}
}
void ScreenSelectDifficulty::MenuLeft( PlayerNumber p )
void ScreenSelectDifficulty::MenuLeft( PlayerNumber pn )
{
if( m_iSelection[p] == 0 ) // can't go left any more
if( m_iSelection[pn] == 0 ) // can't go left any more
return;
if( m_bChosen[p] )
if( m_bChosen[pn] )
return;
ChangeTo( p, m_iSelection[p], m_iSelection[p]-1 );
ChangeTo( pn, m_iSelection[pn], m_iSelection[pn]-1 );
}
void ScreenSelectDifficulty::MenuRight( PlayerNumber p )
void ScreenSelectDifficulty::MenuRight( PlayerNumber pn )
{
if( m_iSelection[p] == NUM_DIFFICULTY_ITEMS-1 ) // can't go right any more
if( m_iSelection[pn] == NUM_DIFFICULTY_ITEMS-1 ) // can't go right any more
return;
if( m_bChosen[p] )
if( m_bChosen[pn] )
return;
ChangeTo( p, m_iSelection[p], m_iSelection[p]+1 );
ChangeTo( pn, m_iSelection[pn], m_iSelection[pn]+1 );
}
bool ScreenSelectDifficulty::IsItemOnPage2( int iItemIndex )
@@ -434,7 +434,7 @@ void ScreenSelectDifficulty::MenuStart( PlayerNumber pn )
this->SendScreenMessage( SM_StartTweeningOffScreen, 0.7f );
}
void ScreenSelectDifficulty::MenuBack( PlayerNumber p )
void ScreenSelectDifficulty::MenuBack( PlayerNumber pn )
{
m_Menu.TweenOffScreenToBlack( SM_GoToPrevScreen, true );
}