Skip to content

Commit

Permalink
Commonised HUD message routines. Added various cvars to control look …
Browse files Browse the repository at this point in the history
…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.
36 changes: 36 additions & 0 deletions doomsday/Include/Common/hu_msg.h
@@ -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

0 comments on commit f15da96

Please sign in to comment.