1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Draw sound effects and music checkboxes as disabled when appropirate

This commit is contained in:
Hielke Morsink
2018-08-17 22:02:36 +02:00
committed by Aaron van Geffen
parent d4591a1492
commit 01608baeb6
2 changed files with 3 additions and 1 deletions

View File

@@ -1808,6 +1808,8 @@ static void window_options_invalidate(rct_window* w)
widget_set_checkbox_value(w, WIDX_MASTER_SOUND_CHECKBOX, gConfigSound.master_sound_enabled);
widget_set_checkbox_value(w, WIDX_MUSIC_CHECKBOX, gConfigSound.ride_music_enabled);
widget_set_checkbox_value(w, WIDX_AUDIO_FOCUS_CHECKBOX, gConfigSound.audio_focus);
widget_set_enabled(w, WIDX_SOUND_CHECKBOX, gConfigSound.master_sound_enabled);
widget_set_enabled(w, WIDX_MUSIC_CHECKBOX, gConfigSound.master_sound_enabled);
// Initialize only on first frame, otherwise the scrollbars wont be able to be modified
if (w->frame_no == 0)