Allow setting last second at the current beat.

Use the Area Menu for this one.
This commit is contained in:
Jason Felds
2011-06-30 01:23:59 -04:00
parent 6fc669127b
commit 11923a80ba
4 changed files with 15 additions and 2 deletions
+9 -1
View File
@@ -581,8 +581,9 @@ static MenuDef g_AreaMenu(
EditMode_Full, true, true, 0, NULL ),
MenuRowDef(ScreenEdit::convert_delay_to_beat, "Convert delay to beats", true,
EditMode_Full, true, true, 0, NULL ),
MenuRowDef(ScreenEdit::last_second_at_beat, "Designate last second at current beat", true, EditMode_Full, true, true, 0, NULL ),
MenuRowDef( ScreenEdit::undo, "Undo", true, EditMode_Practice, true, true, 0, NULL ),
MenuRowDef(ScreenEdit::clear_clipboard, "Clear clipboard", true,
MenuRowDef(ScreenEdit::clear_clipboard, "Clear clipboard", true,
EditMode_Practice, true, true, 0, NULL )
);
@@ -4129,6 +4130,13 @@ void ScreenEdit::HandleAreaMenuChoice( AreaMenuChoice c, const vector<int> &iAns
timing.InsertRows(GetRow(), BeatToNoteRow(pauseBeats));
break;
}
case last_second_at_beat:
{
TimingData &timing = GetAppropriateTiming();
Song &s = *GAMESTATE->m_pCurSong;
s.specifiedLastSecond = timing.GetElapsedTimeFromBeat(GetBeat());
break;
}
case undo:
Undo();
break;