Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commonised HUD message routines. Added various cvars to control look …
…of messages.
- Loading branch information
danij
committed
May 29, 2005
1 parent
8eb20d6
commit f15da96
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef __HUD_MESSAGES_H__ | ||
#define __HUD_MESSAGES_H__ | ||
|
||
#ifdef __JDOOM__ | ||
# include "d_event.h" | ||
# include "../jDoom/r_defs.h" | ||
#elif __JHERETIC__ | ||
# include "../jHeretic/Doomdef.h" | ||
# include "../jHeretic/R_local.h" | ||
#elif __JHEXEN__ | ||
# include "../jHexen/h2def.h" | ||
# include "../jHexen/R_local.h" | ||
#elif __JSTRIFE__ | ||
# include "../jStrife/h2def.h" | ||
# include "../jStrife/R_local.h" | ||
#endif | ||
|
||
#define HU_MSGREFRESH DDKEY_ENTER | ||
#define HU_MSGX 0 | ||
#define HU_MSGY 0 | ||
#define HU_MSGWIDTH 64 // in characters | ||
#define HU_MSGHEIGHT 1 // in lines | ||
|
||
#define HU_MSGTIMEOUT (4*TICRATE) | ||
|
||
#define MAX_MESSAGES 8 | ||
#define MAX_LINELEN 140 | ||
#define IN_RANGE(x) ((x)>=MAX_MESSAGES? (x)-MAX_MESSAGES : (x)<0? (x)+MAX_MESSAGES : (x)) | ||
|
||
void HUMsg_Message(char *msg, int msgtics); | ||
void HUMsg_Drawer(void); | ||
void HUMsg_Ticker(void); | ||
void HUMsg_Start(void); | ||
void HUMsg_Init(void); | ||
|
||
#endif |