UFO: Alien Invasion
|
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"
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. More... | |
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. More... | |
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. More... | |
void | CLMN_Shutdown (void) |
Client menu functions.
Definition in file cl_menu.cpp.
Definition at line 109 of file cl_menu.cpp.
References csi, i, teamDef_s::id, teamDef_s::name, csi_s::numTeamDefs, OPTION_TEAMDEFS, teamDef_s::team, TEAM_CIVILIAN, csi_s::teamDef, UI_AddOption(), UI_GetOption(), UI_RegisterOption(), and va().
Referenced by CLMN_Init().
Definition at line 94 of file cl_menu.cpp.
References vidmode_s::height, i, length, OPTION_VIDEO_RESOLUTIONS, UI_AddOption(), UI_GetOption(), UI_RegisterOption(), va(), VID_GetModeInfo(), VID_GetModeNums(), and vidmode_s::width.
Referenced by CLMN_Init().
|
inlinestatic |
Definition at line 39 of file cl_menu.cpp.
References _, binding, Cmd_GetCommandDesc(), i, K_FIRST_KEY, K_LAST_KEY, Key_KeynumToString(), Q_strnull(), Q_strvalid, and UI_ExecuteConfunc().
Referenced by CLMN_InitKeyList_f().
|
inlinestatic |
Adds UI Keybindings to the list for the Keylist UI.
Definition at line 54 of file cl_menu.cpp.
References _, binding, uiKeyBinding_s::description, i, uiKeyBinding_s::inherited, uiKeyBinding_s::key, Key_KeynumToString(), Q_strvalid, UI_ExecuteConfunc(), UI_GetKeyBindingByIndex(), and UI_GetKeyBindingCount().
Referenced by CLMN_InitKeyList_f().
Initialize the menu data hunk, add cvars and commands.
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().
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().
Definition at line 85 of file cl_menu.cpp.
References Cbuf_AddText(), FS_GetModList(), and LIST_Foreach.
Referenced by CLMN_Init().
Definition at line 142 of file cl_menu.cpp.
References Cmd_RemoveCommand().
Referenced by CL_Shutdown(), and UI_Restart_f().