aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/duckman/menusystem_duckman.h
diff options
context:
space:
mode:
authorEric Fry2018-06-17 00:07:36 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit102dd462734f0baa67ae4f8439094f6aa50b42fa (patch)
tree86b153edc0fec565d0c3a198309d7254c494df7b /engines/illusions/duckman/menusystem_duckman.h
parent09281b85f507a8859de3b03ac512e871d849611e (diff)
downloadscummvm-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.h14
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);