blob: d720652dbb2aaaa278ca7bb43259c8f6d37cc3f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
|