diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /tracker/AdminServer/VarEditDialog.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'tracker/AdminServer/VarEditDialog.h')
| -rw-r--r-- | tracker/AdminServer/VarEditDialog.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tracker/AdminServer/VarEditDialog.h b/tracker/AdminServer/VarEditDialog.h new file mode 100644 index 0000000..bca993c --- /dev/null +++ b/tracker/AdminServer/VarEditDialog.h @@ -0,0 +1,45 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//============================================================================= + +#ifndef VAREDITDIALOG_H +#define VAREDITDIALOG_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/Frame.h> + +//----------------------------------------------------------------------------- +// Purpose: Handles editing of cvars +//----------------------------------------------------------------------------- +class CVarEditDialog : public vgui::Frame +{ +public: + CVarEditDialog(vgui::Panel *parent, const char *name); + ~CVarEditDialog(); + + void Activate(vgui::Panel *actionSignalTarget, KeyValues *rules); + +protected: + virtual void OnCommand(const char *command); + virtual void OnClose(); + + void ApplyChanges(); + +private: + vgui::Button *m_pOKButton; + vgui::Button *m_pCancelButton; + vgui::TextEntry *m_pStringEdit; + vgui::ComboBox *m_pComboEdit; + + KeyValues *m_pRules; + + typedef vgui::Frame BaseClass; +}; + + +#endif // VAREDITDIALOG_H |