initial
This commit is contained in:
80
game/client/cstrike15/gameui/optionssubaudio.h
Normal file
80
game/client/cstrike15/gameui/optionssubaudio.h
Normal file
@ -0,0 +1,80 @@
|
||||
//========= Copyright <20> 1996-2005, 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>
|
||||
#include "vgui_controls/Frame.h"
|
||||
#include "vgui/KeyCode.h"
|
||||
|
||||
class CLabeledCommandComboBox;
|
||||
class CCvarSlider;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: Audio Details, Part of OptionsDialog
|
||||
//-----------------------------------------------------------------------------
|
||||
class COptionsSubAudio : public vgui::PropertyPage
|
||||
{
|
||||
DECLARE_CLASS_SIMPLE( COptionsSubAudio, vgui::PropertyPage );
|
||||
|
||||
public:
|
||||
explicit 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;
|
||||
};
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: third-party audio credits dialog
|
||||
//-----------------------------------------------------------------------------
|
||||
class COptionsSubAudioThirdPartyCreditsDlg : public vgui::Frame
|
||||
{
|
||||
DECLARE_CLASS_SIMPLE( COptionsSubAudioThirdPartyCreditsDlg, vgui::Frame );
|
||||
public:
|
||||
explicit COptionsSubAudioThirdPartyCreditsDlg( vgui::VPANEL hParent );
|
||||
|
||||
virtual void Activate();
|
||||
void OnKeyCodeTyped(vgui::KeyCode code);
|
||||
|
||||
protected:
|
||||
virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
|
||||
};
|
||||
|
||||
|
||||
#endif // OPTIONS_SUB_AUDIO_H
|
Reference in New Issue
Block a user