22 #ifndef STARK_UI_MENU_SETTINGS_MENU_H 23 #define STARK_UI_MENU_SETTINGS_MENU_H 25 #include "engines/stark/ui/menu/locationscreen.h" 26 #include "engines/stark/services/services.h" 27 #include "engines/stark/services/settings.h" 75 void close()
override;
76 void onGameLoop()
override;
99 template<HelpTextIndex N>
102 template<Settings::BoolSettingIndex N>
103 void flipSettingHandler();
125 void render()
override;
126 bool isMouseInside(
const Common::Point &mousePos)
const override;
127 void onClick()
override;
133 int _checkboxWidth, _checkboxHeight;
136 bool isMouseInsideCheckbox(
const Common::Point &mousePos)
const;
146 Settings::IntSettingIndex settingIndex,
151 void render()
override;
152 bool isMouseInside(
const Common::Point &mousePos)
const override;
153 void onClick()
override;
155 void onMouseUp()
override;
159 static const int _maxVolume = 256;
167 const int _soundIndex;
170 int _bgWidth, _bgHeight, _sliderWidth, _minX, _maxX;
173 const Settings::IntSettingIndex _settingIndex;
177 int volumeToX(
int volume) {
178 return volume * (_maxX - _minX) / _maxVolume + _minX;
181 int xToVolume(
int x) {
182 return (x - _minX) * _maxVolume / (_maxX - _minX);
188 #endif // STARK_UI_MENU_SETTING_MENU_H Definition: settingsmenu.h:36
Definition: locationscreen.h:46