You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.9 KiB
65 lines
1.9 KiB
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================//
|
|
|
|
#ifndef OPTIONS_SUB_AUDIO_H
|
|
#define OPTIONS_SUB_AUDIO_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "vgui_controls/PropertyPage.h"
|
|
#include <language.h>
|
|
|
|
class CLabeledCommandComboBox;
|
|
class CCvarSlider;
|
|
class CCvarToggleCheckButton;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: Audio Details, Part of OptionsDialog
|
|
//-----------------------------------------------------------------------------
|
|
class COptionsSubAudio : public vgui::PropertyPage
|
|
{
|
|
DECLARE_CLASS_SIMPLE( COptionsSubAudio, vgui::PropertyPage );
|
|
|
|
public:
|
|
COptionsSubAudio(vgui::Panel *parent);
|
|
~COptionsSubAudio();
|
|
|
|
virtual void OnResetData();
|
|
virtual void OnApplyChanges();
|
|
virtual void OnCommand( const char *command );
|
|
bool RequiresRestart();
|
|
static char* GetUpdatedAudioLanguage() { return m_pchUpdatedAudioLanguage; }
|
|
|
|
private:
|
|
MESSAGE_FUNC( OnControlModified, "ControlModified" );
|
|
MESSAGE_FUNC( OnTextChanged, "TextChanged" )
|
|
{
|
|
OnControlModified();
|
|
}
|
|
|
|
MESSAGE_FUNC( RunTestSpeakers, "RunTestSpeakers" );
|
|
|
|
vgui::ComboBox *m_pSpeakerSetupCombo;
|
|
vgui::ComboBox *m_pSoundQualityCombo;
|
|
CCvarSlider *m_pSFXSlider;
|
|
CCvarSlider *m_pMusicSlider;
|
|
vgui::ComboBox *m_pCloseCaptionCombo;
|
|
bool m_bRequireRestart;
|
|
|
|
vgui::ComboBox *m_pSpokenLanguageCombo;
|
|
MESSAGE_FUNC( OpenThirdPartySoundCreditsDialog, "OpenThirdPartySoundCreditsDialog" );
|
|
vgui::DHANDLE<class COptionsSubAudioThirdPartyCreditsDlg> m_OptionsSubAudioThirdPartyCreditsDlg;
|
|
ELanguage m_nCurrentAudioLanguage;
|
|
static char *m_pchUpdatedAudioLanguage;
|
|
|
|
CCvarToggleCheckButton *m_pSoundMuteLoseFocusCheckButton;
|
|
};
|
|
|
|
|
|
|
|
#endif // OPTIONS_SUB_AUDIO_H
|