Feature: Volume sliders in Game Options window

This commit is contained in:
Niels Martin Hansen
2021-04-04 11:22:13 +02:00
parent 88c92f7b7c
commit 785e42a6f9
3 changed files with 40 additions and 3 deletions

View File

@@ -790,6 +790,7 @@ struct MusicWindow : public Window {
if (ClickVolumeSliderWidget(this->GetWidget<NWidgetBase>(widget)->GetCurrentRect(), pt, vol)) {
if (widget == WID_M_MUSIC_VOL) MusicDriver::GetInstance()->SetVolume(vol);
this->SetDirty();
SetWindowClassesDirty(WC_GAME_OPTIONS);
}
if (click_count > 0) this->mouse_capture_widget = widget;