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.

46 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #if !defined( VGUICENTERPRINT_H )
  10. #define VGUICENTERPRINT_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. #include <vgui/vgui.h>
  15. //-----------------------------------------------------------------------------
  16. // Purpose:
  17. //-----------------------------------------------------------------------------
  18. namespace vgui
  19. {
  20. class Panel;
  21. }
  22. class CCenterStringLabel;
  23. class CCenterPrint
  24. {
  25. private:
  26. CCenterStringLabel *vguiCenterString;
  27. public:
  28. CCenterPrint( void );
  29. virtual void Create( vgui::VPANEL parent );
  30. virtual void Destroy( void );
  31. virtual void SetTextColor( int r, int g, int b, int a );
  32. virtual void Print( char *text );
  33. virtual void Print( wchar_t *text );
  34. virtual void ColorPrint( int r, int g, int b, int a, char *text );
  35. virtual void ColorPrint( int r, int g, int b, int a, wchar_t *text );
  36. virtual void Clear( void );
  37. };
  38. extern CCenterPrint *GetCenterPrint();
  39. #endif // VGUICENTERPRINT_H