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.

45 lines
974 B

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef BASESTATUSBAR_H
  7. #define BASESTATUSBAR_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui_controls/EditablePanel.h"
  12. #include "datamodel/dmehandle.h"
  13. class CDmeClip;
  14. class CMovieDoc;
  15. class CConsolePage;
  16. namespace vgui
  17. {
  18. class Label;
  19. }
  20. class CBaseStatusBar : public vgui::EditablePanel
  21. {
  22. DECLARE_CLASS_SIMPLE( CBaseStatusBar, vgui::EditablePanel )
  23. public:
  24. CBaseStatusBar( vgui::Panel *parent, char const *panelName );
  25. private:
  26. void UpdateMemoryUsage( float mbUsed );
  27. virtual void PerformLayout();
  28. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  29. virtual void OnThink();
  30. CConsolePage *m_pConsole;
  31. vgui::Label *m_pLabel;
  32. vgui::Label *m_pMemory;
  33. vgui::Label *m_pFPS;
  34. vgui::Label *m_pGameTime;
  35. float m_flLastFPSSnapShot;
  36. };
  37. #endif // BASESTATUSBAR_H