mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 22:27:05 +00:00
46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
//========= 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
|