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:
@@ -84,6 +84,13 @@ namespace Menu
|
||||
};
|
||||
}
|
||||
|
||||
enum SLIDERMODE
|
||||
{
|
||||
SLIDER_NONE,
|
||||
SLIDER_MUSICVOLUME,
|
||||
SLIDER_SOUNDVOLUME
|
||||
};
|
||||
|
||||
struct MenuStackFrame
|
||||
{
|
||||
int option;
|
||||
@@ -259,6 +266,7 @@ public:
|
||||
int currentmenuoption ;
|
||||
enum Menu::MenuName currentmenuname;
|
||||
enum Menu::MenuName kludge_ingametemp;
|
||||
enum SLIDERMODE slidermode;
|
||||
int current_credits_list_index;
|
||||
int menuxoff, menuyoff;
|
||||
int menuspacing;
|
||||
|
||||
Reference in New Issue
Block a user