Counter Strike : Global Offensive Source Code
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
802 B

  1. //============ Copyright (c) Valve Corporation, All rights reserved. ============
  2. #ifndef ATTRIBUTEBOOLEANPANEL_H
  3. #define ATTRIBUTEBOOLEANPANEL_H
  4. #ifdef _WIN32
  5. #pragma once
  6. #endif
  7. #include "dme_controls/AttributeTextPanel.h"
  8. //-----------------------------------------------------------------------------
  9. class CAttributeBooleanPanel : public CAttributeTextPanel
  10. {
  11. DECLARE_CLASS_SIMPLE( CAttributeBooleanPanel, CAttributeTextPanel );
  12. public:
  13. CAttributeBooleanPanel( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
  14. MESSAGE_FUNC_INT( OnCheckButtonChecked, "CheckButtonChecked", state );
  15. virtual void PerformLayout();
  16. virtual void Refresh();
  17. virtual void ApplySchemeSettings(IScheme *pScheme);
  18. protected:
  19. vgui::CheckButton *m_pValueButton;
  20. };
  21. #endif // ATTRIBUTEBOOLEANPANEL_H