ScreenOptionsEditPlaylist -> ScreenOptionsEditCourse

This commit is contained in:
Chris Danford
2009-04-11 19:16:10 +00:00
parent d858e2d7da
commit 311eace2b6
5 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -1762,7 +1762,7 @@ Tier08=D
Failed=E Failed=E
NoData=NO DATA NoData=NO DATA
[ScreenOptionsEditPlaylist] [ScreenOptionsEditCourse]
-Empty-=-Empty- -Empty-=-Empty-
Song=Song Song=Song
Steps=Steps Steps=Steps
+1 -1
View File
@@ -290,7 +290,7 @@ Tier08=D
Failed=E Failed=E
NoData=SIN DATOS NoData=SIN DATOS
[ScreenOptionsEditPlaylist] [ScreenOptionsEditCourse]
-Empty-=-Vacía- -Empty-=-Vacía-
Song=Canción Song=Canción
Steps=Dificultad Steps=Dificultad
@@ -1,6 +1,6 @@
#include "global.h" #include "global.h"
#include "ScreenOptionsEditPlaylist.h" #include "ScreenOptionsEditCourse.h"
#include "ScreenMiniMenu.h" #include "ScreenMiniMenu.h"
#include "SongUtil.h" #include "SongUtil.h"
#include "SongManager.h" #include "SongManager.h"
@@ -99,7 +99,7 @@ protected:
const int NUM_SONG_ROWS = 20; const int NUM_SONG_ROWS = 20;
REGISTER_SCREEN_CLASS( ScreenOptionsEditPlaylist ); REGISTER_SCREEN_CLASS( ScreenOptionsEditCourse );
enum WorkoutDetailsRow enum WorkoutDetailsRow
{ {
@@ -132,7 +132,7 @@ static int EntryIndexAndRowTypeToRow( int iEntryIndex, RowType rowType )
return NUM_WorkoutDetailsRow + iEntryIndex*NUM_RowType + rowType; return NUM_WorkoutDetailsRow + iEntryIndex*NUM_RowType + rowType;
} }
void ScreenOptionsEditPlaylist::Init() void ScreenOptionsEditCourse::Init()
{ {
ScreenOptions::Init(); ScreenOptions::Init();
SONGMAN->GetPreferredSortSongs( m_vpSongs ); SONGMAN->GetPreferredSortSongs( m_vpSongs );
@@ -144,10 +144,10 @@ const MenuRowDef g_MenuRows[] =
MenuRowDef( -1, "Workout Minutes", true, EditMode_Practice, true, false, 0, NULL ), MenuRowDef( -1, "Workout Minutes", true, EditMode_Practice, true, false, 0, NULL ),
}; };
static LocalizedString EMPTY ("ScreenOptionsEditPlaylist","-Empty-"); static LocalizedString EMPTY ("ScreenOptionsEditCourse","-Empty-");
static LocalizedString SONG ("ScreenOptionsEditPlaylist","Song"); static LocalizedString SONG ("ScreenOptionsEditCourse","Song");
static LocalizedString STEPS ("ScreenOptionsEditPlaylist","Steps"); static LocalizedString STEPS ("ScreenOptionsEditCourse","Steps");
static LocalizedString MINUTES ("ScreenOptionsEditPlaylist","minutes"); static LocalizedString MINUTES ("ScreenOptionsEditCourse","minutes");
static RString MakeMinutesString( int mins ) static RString MakeMinutesString( int mins )
{ {
@@ -156,7 +156,7 @@ static RString MakeMinutesString( int mins )
return ssprintf( "%d", mins ) + " " + MINUTES.GetValue(); return ssprintf( "%d", mins ) + " " + MINUTES.GetValue();
} }
void ScreenOptionsEditPlaylist::BeginScreen() void ScreenOptionsEditCourse::BeginScreen()
{ {
vector<OptionRowHandler*> vHands; vector<OptionRowHandler*> vHands;
@@ -236,12 +236,12 @@ void ScreenOptionsEditPlaylist::BeginScreen()
//this->AfterChangeRow( PLAYER_1 ); //this->AfterChangeRow( PLAYER_1 );
} }
ScreenOptionsEditPlaylist::~ScreenOptionsEditPlaylist() ScreenOptionsEditCourse::~ScreenOptionsEditCourse()
{ {
} }
void ScreenOptionsEditPlaylist::ImportOptions( int iRow, const vector<PlayerNumber> &vpns ) void ScreenOptionsEditCourse::ImportOptions( int iRow, const vector<PlayerNumber> &vpns )
{ {
OptionRow &row = *m_pRows[iRow]; OptionRow &row = *m_pRows[iRow];
if( row.GetRowType() == OptionRow::RowType_Exit ) if( row.GetRowType() == OptionRow::RowType_Exit )
@@ -283,7 +283,7 @@ void ScreenOptionsEditPlaylist::ImportOptions( int iRow, const vector<PlayerNumb
} }
} }
void ScreenOptionsEditPlaylist::ExportOptions( int iRow, const vector<PlayerNumber> &vpns ) void ScreenOptionsEditCourse::ExportOptions( int iRow, const vector<PlayerNumber> &vpns )
{ {
FOREACH_ENUM( WorkoutDetailsRow, i ) FOREACH_ENUM( WorkoutDetailsRow, i )
{ {
@@ -343,15 +343,15 @@ void ScreenOptionsEditPlaylist::ExportOptions( int iRow, const vector<PlayerNumb
EditCourseUtil::UpdateAndSetTrail(); EditCourseUtil::UpdateAndSetTrail();
} }
void ScreenOptionsEditPlaylist::GoToNextScreen() void ScreenOptionsEditCourse::GoToNextScreen()
{ {
} }
void ScreenOptionsEditPlaylist::GoToPrevScreen() void ScreenOptionsEditCourse::GoToPrevScreen()
{ {
} }
void ScreenOptionsEditPlaylist::HandleScreenMessage( const ScreenMessage SM ) void ScreenOptionsEditCourse::HandleScreenMessage( const ScreenMessage SM )
{ {
if( SM == SM_ExportOptions ) if( SM == SM_ExportOptions )
{ {
@@ -361,7 +361,7 @@ void ScreenOptionsEditPlaylist::HandleScreenMessage( const ScreenMessage SM )
ScreenOptions::HandleScreenMessage( SM ); ScreenOptions::HandleScreenMessage( SM );
} }
void ScreenOptionsEditPlaylist::SetCurrentSong() void ScreenOptionsEditCourse::SetCurrentSong()
{ {
int iRow = m_iCurrentRow[PLAYER_1]; int iRow = m_iCurrentRow[PLAYER_1];
OptionRow &row = *m_pRows[iRow]; OptionRow &row = *m_pRows[iRow];
@@ -388,7 +388,7 @@ void ScreenOptionsEditPlaylist::SetCurrentSong()
} }
} }
void ScreenOptionsEditPlaylist::SetCurrentSteps() void ScreenOptionsEditCourse::SetCurrentSteps()
{ {
Song *pSong = GAMESTATE->m_pCurSong; Song *pSong = GAMESTATE->m_pCurSong;
if( pSong ) if( pSong )
@@ -408,7 +408,7 @@ void ScreenOptionsEditPlaylist::SetCurrentSteps()
} }
} }
Song *ScreenOptionsEditPlaylist::GetSongForEntry( int iEntryIndex ) Song *ScreenOptionsEditCourse::GetSongForEntry( int iEntryIndex )
{ {
int iRow = EntryIndexAndRowTypeToRow( iEntryIndex, RowType_Song ); int iRow = EntryIndexAndRowTypeToRow( iEntryIndex, RowType_Song );
OptionRow &row = *m_pRows[iRow]; OptionRow &row = *m_pRows[iRow];
@@ -419,7 +419,7 @@ Song *ScreenOptionsEditPlaylist::GetSongForEntry( int iEntryIndex )
return m_vpSongs[ index - 1 ]; return m_vpSongs[ index - 1 ];
} }
Steps *ScreenOptionsEditPlaylist::GetStepsForEntry( int iEntryIndex ) Steps *ScreenOptionsEditCourse::GetStepsForEntry( int iEntryIndex )
{ {
int iRow = EntryIndexAndRowTypeToRow( iEntryIndex, RowType_Steps ); int iRow = EntryIndexAndRowTypeToRow( iEntryIndex, RowType_Steps );
OptionRow &row = *m_pRows[iRow]; OptionRow &row = *m_pRows[iRow];
@@ -430,14 +430,14 @@ Steps *ScreenOptionsEditPlaylist::GetStepsForEntry( int iEntryIndex )
return vpSteps[index]; return vpSteps[index];
} }
void ScreenOptionsEditPlaylist::AfterChangeRow( PlayerNumber pn ) void ScreenOptionsEditCourse::AfterChangeRow( PlayerNumber pn )
{ {
ScreenOptions::AfterChangeRow( pn ); ScreenOptions::AfterChangeRow( pn );
SetCurrentSong(); SetCurrentSong();
} }
void ScreenOptionsEditPlaylist::AfterChangeValueInRow( int iRow, PlayerNumber pn ) void ScreenOptionsEditCourse::AfterChangeValueInRow( int iRow, PlayerNumber pn )
{ {
ScreenOptions::AfterChangeValueInRow( iRow, pn ); ScreenOptions::AfterChangeValueInRow( iRow, pn );
@@ -462,8 +462,8 @@ void ScreenOptionsEditPlaylist::AfterChangeValueInRow( int iRow, PlayerNumber pn
const int MIN_ENABLED_SONGS = 2; const int MIN_ENABLED_SONGS = 2;
static LocalizedString MUST_ENABLE_AT_LEAST("ScreenOptionsEditPlaylist","You must enable at least %d songs."); static LocalizedString MUST_ENABLE_AT_LEAST("ScreenOptionsEditCourse","You must enable at least %d songs.");
void ScreenOptionsEditPlaylist::ProcessMenuStart( const InputEventPlus &input ) void ScreenOptionsEditCourse::ProcessMenuStart( const InputEventPlus &input )
{ {
if( IsTransitioning() ) if( IsTransitioning() )
return; return;
@@ -1,14 +1,14 @@
#ifndef ScreenOptionsEditPlaylist_H #ifndef ScreenOptionsEditCourse_H
#define ScreenOptionsEditPlaylist_H #define ScreenOptionsEditCourse_H
#include "ScreenOptions.h" #include "ScreenOptions.h"
class Song; class Song;
class Steps; class Steps;
class ScreenOptionsEditPlaylist : public ScreenOptions class ScreenOptionsEditCourse : public ScreenOptions
{ {
public: public:
virtual ~ScreenOptionsEditPlaylist(); virtual ~ScreenOptionsEditCourse();
virtual void Init(); virtual void Init();
virtual void BeginScreen(); virtual void BeginScreen();
+2 -2
View File
@@ -443,10 +443,10 @@ cl /Zl /nologo /c verstub.cpp /Fo&quot;$(IntDir)&quot;\
RelativePath="ScreenOptions.h"> RelativePath="ScreenOptions.h">
</File> </File>
<File <File
RelativePath=".\ScreenOptionsEditPlaylist.cpp"> RelativePath=".\ScreenOptionsEditCourse.cpp">
</File> </File>
<File <File
RelativePath=".\ScreenOptionsEditPlaylist.h"> RelativePath=".\ScreenOptionsEditCourse.h">
</File> </File>
<File <File
RelativePath=".\ScreenOptionsEditProfile.cpp"> RelativePath=".\ScreenOptionsEditProfile.cpp">