Feature: Volume sliders in Game Options window

This commit is contained in:
Niels Martin Hansen
2021-04-04 11:22:13 +02:00
committed by Charles Pigott
parent 3a6b811559
commit 0b51290a1e
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;