mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Merge pull request #641 from InfoTeddy/general-improvements
Add previous song option to editor music screen
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -3723,11 +3723,20 @@ static void editormenuactionpress()
|
||||
}
|
||||
break;
|
||||
case Menu::ed_music:
|
||||
switch (game.currentmenuoption)
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
switch (game.currentmenuoption)
|
||||
{
|
||||
case 0:
|
||||
ed.levmusic++;
|
||||
if(ed.levmusic==16) ed.levmusic=0;
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user