summaryrefslogtreecommitdiff
path: root/gameui/CommandCheckButton.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /gameui/CommandCheckButton.h
downloadarchived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz
archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip
Diffstat (limited to 'gameui/CommandCheckButton.h')
-rw-r--r--gameui/CommandCheckButton.h30
1 files changed, 30 insertions, 0 deletions
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 <vgui_controls/CheckButton.h>
+
+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