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.

57 lines
1.3 KiB

  1. //========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef HUD_SAVESTATUS_H
  8. #define HUD_SAVESTATUS_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "hudelement.h"
  13. #include <vgui_controls/Panel.h>
  14. #include <vgui_controls/ImagePanel.h>
  15. #include <vgui_controls/EditablePanel.h>
  16. #include <vgui_controls/Label.h>
  17. namespace vgui
  18. {
  19. class IScheme;
  20. };
  21. //-----------------------------------------------------------------------------
  22. // Purpose:
  23. //-----------------------------------------------------------------------------
  24. class CHudSaveStatus : public CHudElement, public vgui::EditablePanel
  25. {
  26. DECLARE_CLASS_SIMPLE( CHudSaveStatus, vgui::EditablePanel );
  27. public:
  28. explicit CHudSaveStatus( const char *pElementName );
  29. void SaveStarted();
  30. protected:
  31. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  32. virtual bool ShouldDraw();
  33. virtual void OnThink();
  34. private:
  35. void SetSavingLabels( bool bIsGameSave );
  36. vgui::ImagePanel *m_pSavingIcon;
  37. vgui::Label *m_pSavingLabel;
  38. vgui::Label *m_pSavedLabel;
  39. float m_flLastAnimTime;
  40. float m_flFadeOutTime;
  41. float m_flSaveStartedTime;
  42. bool m_bNeedsDraw;
  43. bool m_bIsSteamProfileSave;
  44. };
  45. #endif // HUD_SAVESTATUS_H