|
UFO: Alien Invasion
|
Tip of the day code. More...

Go to the source code of this file.
Data Structures | |
| struct | tipOfTheDay_t |
Functions | |
| static void | CL_GetTipOfTheDay_f (void) |
| Popup with tip of the day messages. | |
| void | CL_ParseTipOfTheDay (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. | |
| void | TOTD_Shutdown (void) |
Variables | |
| static tipOfTheDay_t * | tipList |
| static int | tipCount |
| static cvar_t * | cl_showTipOfTheDay |
Tip of the day code.
Definition in file cl_tip.cpp.
Popup with tip of the day messages.
Definition at line 48 of file cl_tip.cpp.
References Cmd_Argc(), Com_Printf(), tipOfTheDay_t::next, TEXT_TIPOFTHEDAY, tipCount, tipList, tipOfTheDay_t::tipString, UI_CloseWindow(), and UI_RegisterText().
Referenced by TOTD_InitStartup().
| void CL_ParseTipOfTheDay | ( | const char * | name, |
| const char ** | text ) |
Parse all tip definitions from the script files.
Definition at line 80 of file cl_tip.cpp.
References cl_genericPool, Com_Printf(), Mem_PoolAllocType, Mem_PoolStrDup, name, tipOfTheDay_t::next, tipCount, tipList, and tipOfTheDay_t::tipString.
Referenced by CL_ParseClientData().
Init function for cvars and console command bindings.
Definition at line 96 of file cl_tip.cpp.
References CL_GetTipOfTheDay_f(), cl_showTipOfTheDay, Cmd_AddCommand(), CVAR_ARCHIVE, and Cvar_Get().
Referenced by CL_InitLocal().
Definition at line 104 of file cl_tip.cpp.
References tipCount, and tipList.
Referenced by CL_Shutdown().
|
static |
tip of the day can be deactivated
Definition at line 41 of file cl_tip.cpp.
Referenced by TOTD_InitStartup().
|
static |
how many tips do we have
Definition at line 39 of file cl_tip.cpp.
Referenced by CL_GetTipOfTheDay_f(), CL_ParseTipOfTheDay(), and TOTD_Shutdown().
|
static |
linked list of all parsed tips
Definition at line 38 of file cl_tip.cpp.
Referenced by CL_GetTipOfTheDay_f(), CL_ParseTipOfTheDay(), and TOTD_Shutdown().