mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add graphic options and game options to editor settings
This is a small quality-of-life tweak that makes it so if you're in the middle of editing a level, you don't have to save the level, exit to the menu, change whatever setting you wanted, re-enter the editor, and type in the level name, just to change one setting. This is the same as adding Graphic Options and Game Options to the in-game pause menu, except for the editor, too. To do this, I'm reusing Game::returntopausemenu() (because all of its callers are the same callers for returning to editor settings) and renamed it to returntoingame(), then added a variable named ingame_editormode to Game. When we're in the options menus but still in the editor, BOTH ingame_titlemode and ingame_editormode will be true.
This commit is contained in:
@@ -3769,6 +3769,25 @@ static void editormenuactionpress()
|
||||
graphics.backgrounddrawn=false;
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
/* Graphic options and game options */
|
||||
music.playef(11);
|
||||
game.gamestate = TITLEMODE;
|
||||
game.ingame_titlemode = true;
|
||||
game.ingame_editormode = true;
|
||||
|
||||
if (game.currentmenuoption == 6)
|
||||
{
|
||||
game.createmenu(Menu::graphicoptions);
|
||||
}
|
||||
else
|
||||
{
|
||||
game.createmenu(Menu::options);
|
||||
}
|
||||
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
default:
|
||||
music.playef(11);
|
||||
game.createmenu(Menu::ed_quit);
|
||||
map.nexttowercolour();
|
||||
|
||||
Reference in New Issue
Block a user