31 #include "../shared/parse.h"
50 static int lastOne = 0;
83 Com_Printf(
"Ignore tip: '%s' - not marked translatable\n", name);
98 cl_showTipOfTheDay =
Cvar_Get(
"cl_showTipOfTheDay",
"1",
CVAR_ARCHIVE,
"Show the tip of the day for singleplayer campaigns");
void Cmd_AddCommand(const char *cmdName, xcommand_t function, const char *desc)
Add a new command to the script interface.
struct tipOfTheDay_s * next
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
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
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
struct tipOfTheDay_s tipOfTheDay_t
Primary header for client.
#define Mem_PoolStrDup(in, pool, tagNum)
#define Mem_PoolAllocType(type, pool)
static tipOfTheDay_t * tipList