forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcl_foguipanel.h
102 lines (77 loc) · 2.33 KB
/
cl_foguipanel.h
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef CL_FOGUIPANEL_H
#define CL_FOGUIPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/Frame.h>
namespace vgui
{
class Button;
class TextEntry;
class CheckButton;
class Label;
class Slider;
};
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class CFogUIPanel : public vgui::Frame
{
DECLARE_CLASS_SIMPLE( CFogUIPanel, vgui::Frame );
public:
CFogUIPanel( vgui::Panel *parent );
~CFogUIPanel();
virtual void OnTick();
// Command issued
virtual void OnCommand(const char *command);
virtual void OnMessage(const KeyValues *params, vgui::VPANEL fromPanel);
static void InstallFogUI( vgui::Panel *parent );
void UpdateFogStartSlider();
void UpdateFogEndSlider();
void UpdateFogColorRedSlider();
void UpdateFogColorGreenSlider();
void UpdateFogColorBlueSlider();
void UpdateFogColors();
void UpdateFarZSlider();
protected:
MESSAGE_FUNC_PARAMS( OnTextNewLine, "TextNewLine", data );
MESSAGE_FUNC_PARAMS( OnTextKillFocus, "TextKillFocus", data );
void HandleInput( bool active );
// World fog
vgui::CheckButton *m_pFogOverride;
vgui::CheckButton *m_pFogEnable;
vgui::Slider *m_pFogStart;
vgui::TextEntry *m_pFogStartText;
vgui::Slider *m_pFogEnd;
vgui::TextEntry *m_pFogEndText;
vgui::Slider *m_pFogColorRed;
vgui::TextEntry *m_pFogColorRedText;
vgui::Slider *m_pFogColorGreen;
vgui::TextEntry *m_pFogColorGreenText;
vgui::Slider *m_pFogColorBlue;
vgui::TextEntry *m_pFogColorBlueText;
// Skybox fog
vgui::CheckButton *m_pFogEnableSky;
vgui::Slider *m_pFogStartSky;
vgui::TextEntry *m_pFogStartTextSky;
vgui::Slider *m_pFogEndSky;
vgui::TextEntry *m_pFogEndTextSky;
vgui::Slider *m_pFogColorRedSky;
vgui::TextEntry *m_pFogColorRedTextSky;
vgui::Slider *m_pFogColorGreenSky;
vgui::TextEntry *m_pFogColorGreenTextSky;
vgui::Slider *m_pFogColorBlueSky;
vgui::TextEntry *m_pFogColorBlueTextSky;
// FarZ
vgui::CheckButton *m_pFarZOverride;
vgui::Slider *m_pFarZ;
vgui::TextEntry *m_pFarZText;
};
extern CFogUIPanel *g_pFogUI;
#endif // CL_FOGUIPANEL_H