blob: 945d9a6c299566cbe81ce778c09051ecff0551f5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef OPTIONS_SUB_VOICE_H
#define OPTIONS_SUB_VOICE_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/PropertyPage.h>
typedef struct IVoiceTweak_s IVoiceTweak;
class CCvarSlider;
class CCvarToggleCheckButton;
//-----------------------------------------------------------------------------
// Purpose: Voice Details, Part of OptionsDialog
//-----------------------------------------------------------------------------
class COptionsSubVoice : public vgui::PropertyPage
{
DECLARE_CLASS_SIMPLE( COptionsSubVoice, vgui::PropertyPage );
public:
COptionsSubVoice(vgui::Panel *parent);
~COptionsSubVoice();
virtual void OnResetData();
virtual void OnApplyChanges();
protected:
virtual void OnThink(); // called every frame before painting, but only if panel is visible
private:
virtual void OnCommand( const char *command );
MESSAGE_FUNC( OnPageHide, "PageHide" );
MESSAGE_FUNC_INT( OnSliderMoved, "SliderMoved", position );
MESSAGE_FUNC_INT( OnCheckButtonChecked, "CheckButtonChecked", state );
MESSAGE_FUNC( OnControlModified, "ControlModified" );
void StartTestMicrophone();
void EndTestMicrophone();
void UseCurrentVoiceParameters();
void ResetVoiceParameters();
IVoiceTweak *m_pVoiceTweak; // Engine voice tweak API.
vgui::CheckButton *m_pMicBoost;
vgui::ImagePanel *m_pMicMeter;
vgui::ImagePanel *m_pMicMeter2;
vgui::Button *m_pTestMicrophoneButton;
vgui::Label *m_pMicrophoneSliderLabel;
vgui::Slider *m_pMicrophoneVolume;
vgui::Label *m_pReceiveSliderLabel;
CCvarSlider *m_pReceiveVolume;
CCvarToggleCheckButton *m_pVoiceEnableCheckButton;
int m_nMicVolumeValue;
bool m_bMicBoostSelected;
float m_fReceiveVolume;
int m_nReceiveSliderValue;
bool m_bVoiceOn;
};
#endif // OPTIONS_SUB_VOICE_H
|