Tip of the day code. More...
#include "client.h"
#include "cl_tip.h"
#include "ui/ui_main.h"
#include "../shared/parse.h"
Go to the source code of this file.
Data Structures | |
struct | tipOfTheDay_s |
Typedefs | |
typedef struct tipOfTheDay_s | tipOfTheDay_t |
Functions | |
static void | CL_GetTipOfTheDay_f (void) |
Popup with tip of the day messages. | |
void | CL_ParseTipsOfTheDay (const char *name, const char **text) |
Parse all tip definitions from the script files. | |
void | TOTD_InitStartup (void) |
Init function for cvars and console command bindings. | |
Variables | |
static tipOfTheDay_t * | tipList |
static int | tipCount |
static cvar_t * | cl_showTipOfTheDay |
Tip of the day code.
Definition in file cl_tip.c.
typedef struct tipOfTheDay_s tipOfTheDay_t |
static void CL_GetTipOfTheDay_f | ( | void | ) | [static] |
Popup with tip of the day messages.
Definition at line 48 of file cl_tip.c.
References Cmd_Argc(), Com_Printf(), tipOfTheDay_s::next, TEXT_TIPOFTHEDAY, tipCount, tipOfTheDay_s::tipString, UI_CloseWindow(), and UI_RegisterText().
Referenced by TOTD_InitStartup().
void CL_ParseTipsOfTheDay | ( | const char * | name, | |
const char ** | text | |||
) |
Parse all tip definitions from the script files.
Definition at line 81 of file cl_tip.c.
References cl_genericPool, Com_EParse(), Com_Parse(), Com_Printf(), Mem_PoolAlloc, Mem_PoolStrDup, tipOfTheDay_s::next, tipCount, and tipOfTheDay_s::tipString.
Referenced by CL_ParseClientData().
void TOTD_InitStartup | ( | void | ) |
Init function for cvars and console command bindings.
Definition at line 117 of file cl_tip.c.
References CL_GetTipOfTheDay_f(), Cmd_AddCommand(), CVAR_ARCHIVE, and Cvar_Get().
Referenced by CL_InitLocal().
cvar_t* cl_showTipOfTheDay [static] |
int tipCount [static] |
how many tips do we have
Definition at line 39 of file cl_tip.c.
Referenced by CL_GetTipOfTheDay_f(), and CL_ParseTipsOfTheDay().
tipOfTheDay_t* tipList [static] |