Team Fortress 2 Source Code as on 22/4/2020
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.

30 lines
764 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef COMMANDCHECKBUTTON_H
  8. #define COMMANDCHECKBUTTON_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/CheckButton.h>
  13. class CCommandCheckButton : public vgui::CheckButton
  14. {
  15. public:
  16. CCommandCheckButton( vgui::Panel *parent, const char *panelName, const char *text, const char *downcmd, const char *upcmd );
  17. ~CCommandCheckButton();
  18. // virtual void OnCheckButtonChecked(vgui::Panel *panel);
  19. virtual void SetSelected( bool state );
  20. private:
  21. typedef vgui::CheckButton BaseClass;
  22. char *m_pszDown;
  23. char *m_pszUp;
  24. };
  25. #endif // COMMANDCHECKBUTTON_H