Draw sound effects and music checkboxes as disabled when appropirate

This commit is contained in:
Hielke Morsink authored and Aaron van Geffen committed 2018-08-17 22:15:58 +02:00
1 parent d4591a1492
commit 01608baeb6
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -1149,7 +1149,7 @@ STR_1770 :{SMALLFONT}{BLACK}Number of complete swings
STR_1771 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{COMMA16}
STR_1773 :Only one on-ride photo section allowed per ride
STR_1774 :Only one cable lift hill allowed per ride
STR_1777 :{WINDOW_COLOUR_2}Ride music
STR_1777 :Ride music
STR_1778 :{STRINGID} - -
STR_1779 :{INLINE_SPRITE}{254}{19}{00}{00} Panda costume
STR_1780 :{INLINE_SPRITE}{255}{19}{00}{00} Tiger costume
+2
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)