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.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #if !defined( OVERLAYTEXT_H )
  14. #define OVERLAYTEXT_H
  15. #ifdef _WIN32
  16. #pragma once
  17. #endif
  18. #include "mathlib/vector.h"
  19. class OverlayText_t
  20. {
  21. public:
  22. OverlayText_t()
  23. {
  24. nextOverlayText = 0;
  25. origin.Init();
  26. bUseOrigin = false;
  27. lineOffset = 0;
  28. flXPos = 0;
  29. flYPos = 0;
  30. text[ 0 ] = 0;
  31. m_flEndTime = 0.0f;
  32. m_nServerCount = -1;
  33. m_nCreationTick = -1;
  34. r = g = b = a = 255;
  35. }
  36. bool IsDead();
  37. void SetEndTime( float duration );
  38. Vector origin;
  39. bool bUseOrigin;
  40. int lineOffset;
  41. float flXPos;
  42. float flYPos;
  43. char text[512];
  44. float m_flEndTime; // When does this text go away
  45. int m_nCreationTick; // If > 0, show only one server frame
  46. int m_nServerCount; // compare server spawn count to remove stale overlays
  47. int r;
  48. int g;
  49. int b;
  50. int a;
  51. OverlayText_t *nextOverlayText;
  52. };
  53. #endif // OVERLAYTEXT_H