31 #include "../shared/parse.h" 33 typedef struct tipOfTheDay_s {
35 struct tipOfTheDay_s*
next;
50 static int lastOne = 0;
struct tipOfTheDay_s * next
void Cmd_AddCommand(const char *cmdName, xcommand_t function, const char *desc)
Add a new command to the script interface.
void TOTD_InitStartup(void)
Init function for cvars and console command bindings.
void UI_RegisterText(int dataId, const char *text)
share a text with a data id
static void CL_GetTipOfTheDay_f(void)
Popup with tip of the day messages.
void Com_Printf(const char *const fmt,...)
memPool_t * cl_genericPool
void CL_ParseTipOfTheDay(const char *name, const char **text)
Parse all tip definitions from the script files.
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags, const char *desc)
Init or return a cvar.
int Cmd_Argc(void)
Return the number of arguments of the current command. "command parameter" will result in a argc of 2...
void UI_CloseWindow(const char *name)
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
static cvar_t * cl_showTipOfTheDay
Primary header for client.
#define Mem_PoolStrDup(in, pool, tagNum)
#define Mem_PoolAllocType(type, pool)
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
static tipOfTheDay_t * tipList