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.

50 lines
1.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Does anyone ever read this?
  4. //
  5. //=============================================================================//
  6. #ifndef VGUI_BUDGETPANEL_H
  7. #define VGUI_BUDGETPANEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui/vgui_budgetpanelshared.h"
  12. #include "tier0/vprof.h"
  13. #define NUM_BUDGET_FPS_LABELS 3
  14. // Use the shared budget panel between the engine and dedicated server.
  15. class CBudgetPanelEngine : public CBudgetPanelShared
  16. {
  17. typedef CBudgetPanelShared BaseClass;
  18. public:
  19. CBudgetPanelEngine( vgui::Panel *pParent, const char *pElementName );
  20. ~CBudgetPanelEngine();
  21. virtual void SetTimeLabelText();
  22. virtual void SetHistoryLabelText();
  23. virtual void PostChildPaint();
  24. virtual void OnTick( void );
  25. // Command handlers
  26. void UserCmd_ShowBudgetPanel( void );
  27. void UserCmd_HideBudgetPanel( void );
  28. bool IsBudgetPanelShown() const;
  29. private:
  30. bool m_bShowBudgetPanelHeld;
  31. };
  32. CBudgetPanelEngine *GetBudgetPanel( void );
  33. #endif // VGUI_BUDGETPANEL_H