1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 05:58:30 +02:00

Add previous song option to editor music screen

This is just a small quality-of-life feature - it's annoying to have to
press ACTION 15 times in order to cycle back through to the previous
song.
This commit is contained in:
Misa 2021-03-05 00:55:57 -08:00
parent b419cfe29e
commit 502a34bf64
2 changed files with 13 additions and 3 deletions

View File

@ -6417,6 +6417,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
break;
case Menu::ed_music:
option("next song");
option("previous song");
option("back");
menuyoff = 16;
maxspacing = 15;

View File

@ -3726,8 +3726,17 @@ static void editormenuactionpress()
switch (game.currentmenuoption)
{
case 0:
ed.levmusic++;
if(ed.levmusic==16) ed.levmusic=0;
case 1:
switch (game.currentmenuoption)
{
case 0:
ed.levmusic++;
break;
case 1:
ed.levmusic--;
break;
}
ed.levmusic = (ed.levmusic % 16 + 16) % 16;
if(ed.levmusic>0)
{
music.play(ed.levmusic);
@ -3738,7 +3747,7 @@ static void editormenuactionpress()
}
music.playef(11);
break;
case 1:
case 2:
music.playef(11);
music.fadeout();
game.returnmenu();