|
|
1.1 ! root 1: ! 2: // ! 3: // console ! 4: // ! 5: ! 6: #define NUM_CON_TIMES 4 ! 7: ! 8: #define CON_TEXTSIZE 32768 ! 9: typedef struct ! 10: { ! 11: qboolean initialized; ! 12: ! 13: char text[CON_TEXTSIZE]; ! 14: int current; // line where next message will be printed ! 15: int x; // offset in current line for next print ! 16: int display; // bottom of console displays this line ! 17: ! 18: int ormask; // high bit mask for colored characters ! 19: ! 20: int linewidth; // characters across screen ! 21: int totallines; // total lines in console scrollback ! 22: ! 23: float cursorspeed; ! 24: ! 25: int vislines; ! 26: ! 27: float times[NUM_CON_TIMES]; // cls.realtime time the line was generated ! 28: // for transparent notify lines ! 29: } console_t; ! 30: ! 31: extern console_t con; ! 32: ! 33: void Con_DrawCharacter (int cx, int line, int num); ! 34: ! 35: void Con_CheckResize (void); ! 36: void Con_Init (void); ! 37: void Con_DrawConsole (float frac); ! 38: void Con_Print (char *txt); ! 39: void Con_CenteredPrint (char *text); ! 40: void Con_Clear_f (void); ! 41: void Con_DrawNotify (void); ! 42: void Con_ClearNotify (void); ! 43: void Con_ToggleConsole_f (void);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.