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.

43 lines
979 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef VGUI_BUDGETBARGRAPHPANEL_H
  7. #define VGUI_BUDGETBARGRAPHPANEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <vgui_controls/Frame.h>
  12. class CBaseBudgetPanel;
  13. class CBudgetBarGraphPanel : public vgui::Panel
  14. {
  15. typedef vgui::Panel BaseClass;
  16. public:
  17. CBudgetBarGraphPanel( CBaseBudgetPanel *pParent, const char *pPanelName );
  18. ~CBudgetBarGraphPanel();
  19. virtual void Paint( void );
  20. private:
  21. void DrawInstantaneous();
  22. void DrawPeaks();
  23. void DrawAverages();
  24. void DrawTimeLines( void );
  25. void GetBudgetGroupTopAndBottom( int id, int &top, int &bottom );
  26. void DrawBarAtIndex( int id, float percent );
  27. void DrawTickAtIndex( int id, float percent, int red, int green, int blue, int alpha );
  28. private:
  29. CBaseBudgetPanel *m_pBudgetPanel;
  30. };
  31. #endif // VGUI_BUDGETBARGRAPHPANEL_H