mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Implement music and sound volume sliders
This adds music and volume sliders to the audio options. To use the sliders, you navigate to the given option, then press ACTION, and your selection will be transferred to the slider. Pressing left or right will move the slider accordingly. Then you can press ACTION to confirm the volume is what you want and deselect it, or you can press Esc to cancel the volume change, and it will revert to the previous volume; both actions will write your settings to disk. Most of this commit is just adding infrastructure to support having sliders in menus (without copy-pasting code), which is a totally completely new user interface that has never been used before in this game. If we're going to be adding something new, I want to make sure that it at least is done the RIGHT way. Closes #706.
This commit is contained in:
@@ -383,6 +383,7 @@ void Game::init(void)
|
||||
ingame_editormode = false;
|
||||
#endif
|
||||
kludge_ingametemp = Menu::mainmenu;
|
||||
slidermode = SLIDER_NONE;
|
||||
|
||||
disablepause = false;
|
||||
inputdelay = false;
|
||||
|
||||
Reference in New Issue
Block a user