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.

44 lines
1.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #ifndef ILOADINGDISC_H
  10. #define ILOADINGDISC_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. #include <vgui/vgui.h>
  15. namespace vgui
  16. {
  17. class Panel;
  18. }
  19. abstract_class ILoadingDisc
  20. {
  21. public:
  22. virtual void Create( vgui::VPANEL parent ) = 0;
  23. virtual void Destroy( void ) = 0;
  24. // loading disc
  25. virtual void SetLoadingVisible( bool bVisible ) = 0;
  26. // paused disc
  27. virtual void SetPausedVisible( bool bVisible ) = 0;
  28. // level loading progress, returns true if the screen needs updating
  29. virtual bool UpdateProgressBar( float progress, const char *statusText ) = 0;
  30. virtual unsigned int GetLoadingVPANEL( void ) = 0;
  31. // fast forward disc
  32. virtual void SetFastForwardVisible( bool bVisible, bool bHighlight = false ) = 0;
  33. };
  34. extern ILoadingDisc *loadingdisc;
  35. #endif // ILOADINGDISC_H