From 3bf9df6b2785fa6d951086978a3e66f49427166a Mon Sep 17 00:00:00 2001 From: FluorescentCIAAfricanAmerican <0934gj3049fk@protonmail.com> Date: Wed, 22 Apr 2020 12:56:21 -0400 Subject: 1 --- gameui/CommandCheckButton.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 gameui/CommandCheckButton.h (limited to 'gameui/CommandCheckButton.h') diff --git a/gameui/CommandCheckButton.h b/gameui/CommandCheckButton.h new file mode 100644 index 0000000..24dbff5 --- /dev/null +++ b/gameui/CommandCheckButton.h @@ -0,0 +1,30 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef COMMANDCHECKBUTTON_H +#define COMMANDCHECKBUTTON_H +#ifdef _WIN32 +#pragma once +#endif + +#include + +class CCommandCheckButton : public vgui::CheckButton +{ +public: + CCommandCheckButton( vgui::Panel *parent, const char *panelName, const char *text, const char *downcmd, const char *upcmd ); + ~CCommandCheckButton(); + +// virtual void OnCheckButtonChecked(vgui::Panel *panel); + virtual void SetSelected( bool state ); +private: + typedef vgui::CheckButton BaseClass; + + char *m_pszDown; + char *m_pszUp; +}; +#endif // COMMANDCHECKBUTTON_H -- cgit v1.2.3