working on course edit screen

This commit is contained in:
Chris Danford
2003-08-10 23:48:10 +00:00
parent 7bd15144cb
commit d049234f03
25 changed files with 696 additions and 65 deletions
+1 -10
View File
@@ -114,15 +114,6 @@ void ScreenEditMenu::MenuRight( PlayerNumber pn, const InputEventType type )
}
// helpers for MenuStart() below
void DeleteCurNotes()
{
Song* pSong = GAMESTATE->m_pCurSong;
Steps* pNotesToDelete = GAMESTATE->m_pCurNotes[PLAYER_1];
pSong->RemoveNotes( pNotesToDelete );
pSong->Save();
}
void ScreenEditMenu::MenuStart( PlayerNumber pn )
{
if( m_Menu.IsTransitioning() )
@@ -162,7 +153,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
break;
case EditMenu::ACTION_DELETE:
ASSERT( pNotes );
SCREENMAN->Prompt( SM_RefreshSelector, "These notes will be lost permanently.\n\nContinue with delete?", true, false, DeleteCurNotes );
SCREENMAN->Prompt( SM_RefreshSelector, "These notes will be lost permanently.\n\nContinue with delete?", true, false, NULL );
m_Selector.RefreshNotes();
return;
case EditMenu::ACTION_COPY: