Consolidate player option and song option screens. Are people ok with this?

This commit is contained in:
Chris Danford
2003-08-23 22:13:06 +00:00
parent 45858747a5
commit 540bdcbc66
4 changed files with 18 additions and 18 deletions
@@ -1 +1 @@
_options to options
_fade out with sound
+7 -7
View File
@@ -2299,12 +2299,12 @@ PrevScreenOni=ScreenSelectCourse
PrevScreenEndless=ScreenSelectCourse
PrevScreenBattle=ScreenSelectMusic
PrevScreenRave=ScreenSelectMusic
NextScreenArcade=ScreenSongOptions
NextScreenNonstop=ScreenSongOptions
NextScreenOni=ScreenSongOptions
NextScreenEndless=ScreenSongOptions
NextScreenBattle=ScreenSongOptions
NextScreenRave=ScreenSongOptions
NextScreenArcade=ScreenStage
NextScreenNonstop=ScreenStage
NextScreenOni=ScreenStage
NextScreenEndless=ScreenStage
NextScreenBattle=ScreenStage
NextScreenRave=ScreenStage
HelpText=&UP; &DOWN; to change line &LEFT; &RIGHT; to select between options START to accept changes
TimerSeconds=30
Beginner=BEGINNER
@@ -2326,7 +2326,7 @@ NextScreenNonstop= // should never get here
NextScreenOni= // should never get here
NextScreenEndless= // should never get here
NextScreenBattle= // should never get here
NextScreenRave=ScreenSongOptions
NextScreenRave=ScreenStage
HelpText=&UP; &DOWN; to change line &LEFT; &RIGHT; to select between options START to accept changes
TimerSeconds=30
+9 -9
View File
@@ -272,7 +272,7 @@ void ScreenOptions::InitOptionsText()
else
option.SetX( ITEM_X[p] );
UpdateText( (PlayerNumber)p );
UpdateText( (PlayerNumber)p, j );
}
}
}
@@ -416,15 +416,14 @@ void ScreenOptions::TweenCursor( PlayerNumber player_no )
highlight.SetXY( (float)iX, (float)iY );
}
void ScreenOptions::UpdateText( PlayerNumber player_no )
void ScreenOptions::UpdateText( PlayerNumber player_no, int row )
{
int iCurRow = m_iCurrentRow[player_no];
int iChoiceInRow = m_iSelectedOption[player_no][iCurRow];
int iChoiceInRow = m_iSelectedOption[player_no][row];
bool bLotsOfOptions = m_bRowIsLong[iCurRow];
bool bLotsOfOptions = m_bRowIsLong[row];
if( bLotsOfOptions )
m_textItems[iCurRow][player_no].SetText( m_OptionRow[iCurRow].choices[iChoiceInRow] );
m_textItems[row][player_no].SetText( m_OptionRow[row].choices[iChoiceInRow] );
}
void ScreenOptions::UpdateEnabledDisabled()
@@ -755,15 +754,16 @@ void ScreenOptions::ChangeValue( PlayerNumber pn, int iDelta )
if( row.bOneChoiceForAllPlayers )
{
for( int p2=0; p2<NUM_PLAYERS; p2++ )
{
m_iSelectedOption[p2][iCurRow] = iNewSel;
UpdateText( (PlayerNumber)p2, iCurRow );
}
}
else
{
m_iSelectedOption[p][iCurRow] = iNewSel;
UpdateText( (PlayerNumber)p, iCurRow );
}
UpdateText( (PlayerNumber)p );
}
m_SoundChangeCol.Play();
OnChange();
+1 -1
View File
@@ -70,7 +70,7 @@ protected:
void PositionCursors();
void PositionItems();
void TweenCursor( PlayerNumber player_no );
void UpdateText( PlayerNumber player_no );
void UpdateText( PlayerNumber player_no, int row );
void UpdateEnabledDisabled();
virtual void OnChange();