@@ -212,20 +212,26 @@ class CSettings
212212 CGUILabel* m_pCachePathLabel;
213213 CGUILabel* m_pCachePathValue;
214214 CGUIButton* m_pCachePathShowButton;
215+ CGUILabel* m_pLabelMasterVolume;
215216 CGUILabel* m_pLabelRadioVolume;
216217 CGUILabel* m_pLabelSFXVolume;
217218 CGUILabel* m_pLabelMTAVolume;
218219 CGUILabel* m_pLabelVoiceVolume;
220+ CGUILabel* m_pLabelMasterVolumeValue;
219221 CGUILabel* m_pLabelRadioVolumeValue;
220222 CGUILabel* m_pLabelSFXVolumeValue;
221223 CGUILabel* m_pLabelMTAVolumeValue;
222224 CGUILabel* m_pLabelVoiceVolumeValue;
225+ CGUIScrollBar* m_pAudioMasterVolume;
223226 CGUIScrollBar* m_pAudioRadioVolume;
224227 CGUIScrollBar* m_pAudioSFXVolume;
225228 CGUIScrollBar* m_pAudioMTAVolume;
226229 CGUIScrollBar* m_pAudioVoiceVolume;
230+ CGUILabel* m_pAudioRadioLabel;
227231 CGUICheckBox* m_pCheckBoxAudioEqualizer;
228232 CGUICheckBox* m_pCheckBoxAudioAutotune;
233+ CGUILabel* m_pAudioMuteLabel;
234+ CGUICheckBox* m_pCheckBoxMuteMaster;
229235 CGUICheckBox* m_pCheckBoxMuteSFX;
230236 CGUICheckBox* m_pCheckBoxMuteRadio;
231237 CGUICheckBox* m_pCheckBoxMuteMTA;
@@ -336,10 +342,16 @@ class CSettings
336342 bool OnBrightnessChanged (CGUIElement* pElement);
337343 bool OnAnisotropicChanged (CGUIElement* pElement);
338344 bool OnMapAlphaChanged (CGUIElement* pElement);
345+ bool OnMasterVolumeChanged (CGUIElement* pElement);
339346 bool OnRadioVolumeChanged (CGUIElement* pElement);
340347 bool OnSFXVolumeChanged (CGUIElement* pElement);
341348 bool OnMTAVolumeChanged (CGUIElement* pElement);
342349 bool OnVoiceVolumeChanged (CGUIElement* pElement);
350+ bool OnMasterMuteMinimizedChanged (CGUIElement* pElement);
351+ bool OnRadioMuteMinimizedChanged (CGUIElement* pElement);
352+ bool OnSFXMuteMinimizedChanged (CGUIElement* pElement);
353+ bool OnMTAMuteMinimizedChanged (CGUIElement* pElement);
354+ bool OnVoiceMuteMinimizedChanged (CGUIElement* pElement);
343355 bool OnChatRedChanged (CGUIElement* pElement);
344356 bool OnChatGreenChanged (CGUIElement* pElement);
345357 bool OnChatBlueChanged (CGUIElement* pElement);
@@ -392,28 +404,43 @@ class CSettings
392404 int GetMilliseconds (CGUIEdit* pEdit);
393405 void SetMilliseconds (CGUIEdit* pEdit, int milliseconds);
394406
407+ void ResetGTAVolume ();
408+ void SetRadioVolume (float fVolume );
409+ void SetSFXVolume (float fVolume );
410+
395411 unsigned int m_uiCaptureKey;
396412 bool m_bCaptureKey;
397413 bool m_bCaptureAxis;
398414
399415 bool m_bIsModLoaded;
400416
401- unsigned char m_ucOldRadioVolume;
402- unsigned char m_ucOldSFXVolume;
403- float m_fOldMTAVolume;
404- float m_fOldVoiceVolume;
417+ float m_fRadioVolume;
418+ float m_fSFXVolume;
405419
406- CGUIListItem* m_pSelectedBind;
420+ float m_fOldMasterVolume;
421+ float m_fOldRadioVolume;
422+ float m_fOldSFXVolume;
423+ float m_fOldMTAVolume;
424+ float m_fOldVoiceVolume;
407425
408- DWORD m_dwFrameCount;
409- bool m_bShownVolumetricShadowsWarning;
410- bool m_bShownAllowScreenUploadMessage;
411- int m_iMaxAnisotropic;
426+ bool m_bOldMuteMaster;
427+ bool m_bOldMuteSFX;
428+ bool m_bOldMuteRadio;
429+ bool m_bOldMuteMTA;
430+ bool m_bOldMuteVoice;
412431
432+ bool m_bMuteMaster;
413433 bool m_bMuteSFX;
414434 bool m_bMuteRadio;
415435 bool m_bMuteMTA;
416436 bool m_bMuteVoice;
417437
438+ CGUIListItem* m_pSelectedBind;
439+
440+ DWORD m_dwFrameCount;
441+ bool m_bShownVolumetricShadowsWarning;
442+ bool m_bShownAllowScreenUploadMessage;
443+ int m_iMaxAnisotropic;
444+
418445 std::list<SKeyBindSection*> m_pKeyBindSections;
419446};
0 commit comments