You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
45 lines
1.0 KiB
//========= 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
|