diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/public/overlaytext.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/public/overlaytext.h')
| -rw-r--r-- | sp/src/public/overlaytext.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sp/src/public/overlaytext.h b/sp/src/public/overlaytext.h new file mode 100644 index 00000000..f6c70671 --- /dev/null +++ b/sp/src/public/overlaytext.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+#if !defined( OVERLAYTEXT_H )
+#define OVERLAYTEXT_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "mathlib/vector.h"
+
+class OverlayText_t
+{
+public:
+ OverlayText_t()
+ {
+ nextOverlayText = 0;
+ origin.Init();
+ bUseOrigin = false;
+ lineOffset = 0;
+ flXPos = 0;
+ flYPos = 0;
+ text[ 0 ] = 0;
+ m_flEndTime = 0.0f;
+ m_nServerCount = -1;
+ m_nCreationTick = -1;
+ r = g = b = a = 255;
+ }
+
+ bool IsDead();
+ void SetEndTime( float duration );
+
+ Vector origin;
+ bool bUseOrigin;
+ int lineOffset;
+ float flXPos;
+ float flYPos;
+ char text[512];
+ float m_flEndTime; // When does this text go away
+ int m_nCreationTick; // If > 0, show only one server frame
+ int m_nServerCount; // compare server spawn count to remove stale overlays
+ int r;
+ int g;
+ int b;
+ int a;
+ OverlayText_t *nextOverlayText;
+};
+
+#endif // OVERLAYTEXT_H
\ No newline at end of file |