UFO: Alien Invasion
Loading...
Searching...
No Matches
cl_menu.cpp File Reference

Client menu functions. More...

#include "cl_menu.h"
#include "cl_shared.h"
#include "cgame/cl_game.h"
#include "input/cl_keys.h"
#include "input/cl_joystick.h"
#include "cl_video.h"
#include "cl_language.h"
#include "ui/ui_main.h"
#include "ui/ui_input.h"
#include "ui/ui_nodes.h"
#include "ui/ui_popup.h"
#include "ui/node/ui_node_abstractnode.h"
Include dependency graph for cl_menu.cpp:

Go to the source code of this file.

Functions

static void CLMN_AddBindings (keyBindSpace_t scope, char **bindings, int offset=0)
static int CLMN_AddUIBindings (keyBindSpace_t scope)
 Adds UI Keybindings to the list for the Keylist UI.
static void CLMN_InitKeyList_f (void)
 Prints a list of tab and newline separated string to keylist char array that hold the key and the command desc.
static void CLMN_Mods_f (void)
static void CL_VideoInitMenu (void)
static void CL_TeamDefInitMenu (void)
void CLMN_Init (void)
 Initialize the menu data hunk, add cvars and commands.
void CLMN_Shutdown (void)

Detailed Description

Client menu functions.

Definition in file cl_menu.cpp.

Function Documentation

◆ CL_TeamDefInitMenu()

void CL_TeamDefInitMenu ( void )
static

◆ CL_VideoInitMenu()

◆ CLMN_AddBindings()

void CLMN_AddBindings ( keyBindSpace_t scope,
char ** bindings,
int offset = 0 )
inlinestatic

◆ CLMN_AddUIBindings()

int CLMN_AddUIBindings ( keyBindSpace_t scope)
inlinestatic

Adds UI Keybindings to the list for the Keylist UI.

Definition at line 54 of file cl_menu.cpp.

References _, binding, i, Key_KeynumToString(), Q_strvalid, UI_ExecuteConfunc(), UI_GetKeyBindingByIndex(), and UI_GetKeyBindingCount().

Referenced by CLMN_InitKeyList_f().

◆ CLMN_Init()

void CLMN_Init ( void )

Initialize the menu data hunk, add cvars and commands.

Note
This function is called once
See also
MN_Shutdown
CL_InitLocal

Definition at line 129 of file cl_menu.cpp.

References CL_LanguageInitMenu(), CL_TeamDefInitMenu(), CL_VideoInitMenu(), CLMN_InitKeyList_f(), CLMN_Mods_f(), Cmd_AddCommand(), GAME_InitUIData(), and IN_JoystickInitMenu().

Referenced by CL_InitAfter(), and UI_Restart_f().

◆ CLMN_InitKeyList_f()

void CLMN_InitKeyList_f ( void )
static

Prints a list of tab and newline separated string to keylist char array that hold the key and the command desc.

Definition at line 75 of file cl_menu.cpp.

References battleKeyBindings, CLMN_AddBindings(), CLMN_AddUIBindings(), keyBindings, KEYSPACE_BATTLE, KEYSPACE_GAME, KEYSPACE_UI, menuKeyBindings, and UI_ExecuteConfunc().

Referenced by CLMN_Init().

◆ CLMN_Mods_f()

void CLMN_Mods_f ( void )
static

Definition at line 85 of file cl_menu.cpp.

References Cbuf_AddText(), FS_GetModList(), and LIST_Foreach.

Referenced by CLMN_Init().

◆ CLMN_Shutdown()

void CLMN_Shutdown ( void )

Definition at line 142 of file cl_menu.cpp.

References Cmd_RemoveCommand().

Referenced by CL_Shutdown(), and UI_Restart_f().