MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / slrUiVolumeChange

Method slrUiVolumeChange

src/Menu/OptionsAudioState.cpp:252–256  ·  view source on GitHub ↗

* Updates the UI volume with the slider. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

250 * @param action Pointer to an action.
251 */
252void 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.

Callers

nothing calls this directly

Calls 2

setVolumeMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected