#include "client.h"
#include "cl_tutorials.h"
#include "ui/ui_main.h"
#include "../shared/parse.h"
Go to the source code of this file.
Data Structures | |
struct | tutorial_s |
Defines | |
#define | MAX_TUTORIALS 16 |
Typedefs | |
typedef struct tutorial_s | tutorial_t |
Functions | |
static void | TUT_GetTutorials_f (void) |
static void | TUT_List_f (void) |
static void | TUT_ListClick_f (void) |
click function for text tutoriallist in menu_tutorials.ufo | |
void | TUT_InitStartup (void) |
void | TUT_ParseTutorials (const char *name, const char **text) |
Variables | |
static tutorial_t | tutorials [MAX_TUTORIALS] |
static int | numTutorials |
static const value_t | tutValues [] |
Definition in file cl_tutorials.c.
#define MAX_TUTORIALS 16 |
Definition at line 35 of file cl_tutorials.c.
Referenced by TUT_ParseTutorials().
typedef struct tutorial_s tutorial_t |
static void TUT_GetTutorials_f | ( | void | ) | [static] |
Definition at line 39 of file cl_tutorials.c.
References _, i, LIST_AddString(), tutorial_s::name, numTutorials, TEXT_LIST, UI_RegisterLinkedListText(), and va().
Referenced by TUT_InitStartup().
void TUT_InitStartup | ( | void | ) |
Definition at line 81 of file cl_tutorials.c.
References Cmd_AddCommand(), TUT_GetTutorials_f(), TUT_List_f(), and TUT_ListClick_f().
Referenced by CL_InitLocal().
static void TUT_List_f | ( | void | ) | [static] |
Definition at line 51 of file cl_tutorials.c.
References Com_Printf(), i, name, and numTutorials.
Referenced by TUT_InitStartup().
static void TUT_ListClick_f | ( | void | ) | [static] |
click function for text tutoriallist in menu_tutorials.ufo
Definition at line 65 of file cl_tutorials.c.
References Cmd_Argc(), Cmd_Argv(), Cmd_ExecuteString(), Com_Printf(), numTutorials, and va().
Referenced by TUT_InitStartup().
void TUT_ParseTutorials | ( | const char * | name, | |
const char ** | text | |||
) |
Definition at line 99 of file cl_tutorials.c.
References Com_EParse(), Com_EParseValue(), Com_Parse(), Com_Printf(), MAX_TUTORIALS, numTutorials, value_s::ofs, value_s::size, value_s::string, and value_s::type.
Referenced by CL_ParseClientData().
int numTutorials [static] |
Definition at line 37 of file cl_tutorials.c.
Referenced by TUT_GetTutorials_f(), TUT_List_f(), TUT_ListClick_f(), and TUT_ParseTutorials().
tutorial_t tutorials[MAX_TUTORIALS] [static] |
Definition at line 36 of file cl_tutorials.c.
{ {"name", V_TRANSLATION_STRING, offsetof(tutorial_t, name), 0}, {"sequence", V_STRING, offsetof(tutorial_t, sequence), 0}, {NULL, 0, 0, 0} }
Definition at line 90 of file cl_tutorials.c.