mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
1
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user