merge ManageWorkouts into ManageCourses

This commit is contained in:
Chris Danford
2009-04-11 18:45:04 +00:00
parent 5fb7c98009
commit 1e4b73185c
9 changed files with 168 additions and 307 deletions
-24
View File
@@ -293,30 +293,6 @@ void CourseUtil::AutogenOniFromArtist( const RString &sArtistName, RString sArti
}
}
static LocalizedString EDIT_NAME_CONFLICTS ( "ScreenOptionsManageCourses", "The name you chose conflicts with another edit. Please use a different name." );
bool CourseUtil::ValidateEditCourseName( const RString &sAnswer, RString &sErrorOut )
{
if( sAnswer.empty() )
return false;
// Course name must be unique
vector<Course*> v;
SONGMAN->GetAllCourses( v, false );
FOREACH_CONST( Course*, v, c )
{
if( GAMESTATE->m_pCurCourse.Get() == *c )
continue; // don't compare name against ourself
if( (*c)->GetDisplayFullTitle() == sAnswer )
{
sErrorOut = EDIT_NAME_CONFLICTS;
return false;
}
}
return true;
}
void CourseUtil::WarnOnInvalidMods( RString sMods )
{
PlayerOptions po;