add course edits, improved course editor

This commit is contained in:
Chris Danford
2005-07-29 02:23:02 +00:00
parent 82d6889acf
commit 359d745e67
19 changed files with 566 additions and 667 deletions
+23 -1
View File
@@ -254,7 +254,7 @@ void SongManager::LoadGroupSymLinks(CString sDir, CString sGroupFolder)
{
const vector<Steps*>& vpSteps = pNewSong->GetAllSteps();
while( vpSteps.size() )
pNewSong->RemoveSteps( vpSteps[0] );
pNewSong->DeleteSteps( vpSteps[0] );
FOREACH_BackgroundLayer( i )
pNewSong->GetBackgroundChanges(i).clear();
@@ -682,6 +682,22 @@ void SongManager::FreeCourses()
m_sCourseGroupNames.clear();
}
void SongManager::AddCourse( Course *pCourse )
{
m_pCourses.push_back( pCourse );
UpdateBest();
UpdateShuffled();
}
void SongManager::DeleteCourse( Course *pCourse )
{
vector<Course*>::iterator iter = find( m_pCourses.begin(), m_pCourses.end(), pCourse );
ASSERT( iter != m_pCourses.end() );
m_pCourses.erase( iter );
UpdateBest();
UpdateShuffled();
}
/* Called periodically to wipe out cached NoteData. This is called when we change
* screens. */
void SongManager::Cleanup()
@@ -1319,6 +1335,12 @@ int SongManager::GetNumStepsLoadedFromProfile()
return iCount;
}
bool SongManager::ValidateEditCourseName( const CString &sAnswer, CString &sErrorOut )
{
// TODO
return true;
}
// lua start
#include "LuaBinding.h"