* Updates the UI volume with the slider. * @param action Pointer to an action. */
| 250 | * @param action Pointer to an action. |
| 251 | */ |
| 252 | void OptionsAudioState::slrUiVolumeChange(Action *) |
| 253 | { |
| 254 | Options::uiVolume = _slrUiVolume->getValue(); |
| 255 | _game->setVolume(Options::soundVolume, Options::musicVolume, Options::uiVolume); |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * Plays a UI sound for volume preview. |