diff options
author | Eric Fry | 2018-06-17 00:07:36 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 102dd462734f0baa67ae4f8439094f6aa50b42fa (patch) | |
tree | 86b153edc0fec565d0c3a198309d7254c494df7b /engines/illusions/duckman/menusystem_duckman.h | |
parent | 09281b85f507a8859de3b03ac512e871d849611e (diff) | |
download | scummvm-rg350-102dd462734f0baa67ae4f8439094f6aa50b42fa.tar.gz scummvm-rg350-102dd462734f0baa67ae4f8439094f6aa50b42fa.tar.bz2 scummvm-rg350-102dd462734f0baa67ae4f8439094f6aa50b42fa.zip |
ILLUSIONS: Wire up audio sliders on option menu.
Set volumes based on scummvm config
Diffstat (limited to 'engines/illusions/duckman/menusystem_duckman.h')
-rw-r--r-- | engines/illusions/duckman/menusystem_duckman.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/engines/illusions/duckman/menusystem_duckman.h b/engines/illusions/duckman/menusystem_duckman.h index 22bfefa794..3ebab4dea4 100644 --- a/engines/illusions/duckman/menusystem_duckman.h +++ b/engines/illusions/duckman/menusystem_duckman.h @@ -27,7 +27,14 @@ namespace Illusions { -enum { + enum SliderActionType { + SFX, + MUSIC, + VOICE, + TEXT_DURATION + }; + + enum { kDuckmanMainMenu, kDuckmanLoadGameMenu, kDuckmanOptionsMenu, @@ -59,6 +66,7 @@ public://protected: BaseMenu *createMainMenu(); BaseMenu *createLoadGameMenu(); BaseMenu *createOptionsMenu(); + MenuItem *createOptionsSliderMenuItem(const Common::String &text, SliderActionType type, BaseMenu *baseMenu); BaseMenu *createPauseMenu(); BaseMenu *createQueryRestartMenu(); BaseMenu *createQueryQuitMenu(); @@ -85,13 +93,15 @@ protected: class MenuActionUpdateSlider : public BaseMenuAction { public: - MenuActionUpdateSlider(BaseMenuSystem *menuSystem, BaseMenu *baseMenu); + MenuActionUpdateSlider(BaseMenuSystem *menuSystem, BaseMenu *baseMenu, SliderActionType type, IllusionsEngine_Duckman *vm); void setMenuItem(MenuItem *newMmenuItem) { menuItem = newMmenuItem; } virtual void execute(); protected: + IllusionsEngine_Duckman *_vm; + SliderActionType _type; MenuItem *menuItem; BaseMenu *menu; int calcNewSliderValue(Common::String &text, int newOffset); |