-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhu_stuff.h
71 lines (55 loc) · 1.15 KB
/
hu_stuff.h
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
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef __HU_STUFF_H__
#define __HU_STUFF_H__
#include "r_defs.h"
#define HU_FONTSTART '!'
#define HU_FONTEND 0x7f
#define HU_FONTSIZE (HU_FONTEND - HU_FONTSTART + 1)
#define HU_MAXLINES 4
#define HU_MAXLINELENGTH 80
#define HU_MAXMESSAGES 16
#define MAXLINES 25
typedef struct
{
int x;
int y;
const patchnum_t *f;
int sc;
int cm;
int linelen;
char l[HU_MAXLINELENGTH * MAXLINES + 1];
int len;
int needsupdate;
} hu_textline_t;
typedef struct
{
hu_textline_t l[HU_MAXLINES];
int h;
int cl;
boolean *on;
boolean laston;
} hu_stext_t;
typedef struct
{
hu_textline_t l[HU_MAXMESSAGES];
int nl;
int nr;
int cl;
int x,y,w,h;
const patchnum_t *bg;
boolean *on;
boolean laston;
} hu_mtext_t;
typedef struct
{
hu_textline_t l;
int lm;
boolean *on;
boolean laston;
} hu_itext_t;
void HU_Init(void);
void HU_Start(void);
boolean HU_Responder(event_t *ev);
void HU_Ticker(void);
void HU_Drawer(void);
void HU_Erase(void);
#endif