Allow setting last second at the current beat.
Use the Area Menu for this one.
This commit is contained in:
+9
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user