codemp/ui/ui_local.h File Reference

#include "../game/q_shared.h"
#include "../cgame/tr_types.h"
#include "ui_public.h"
#include "keycodes.h"
#include "../game/bg_public.h"
#include "ui_shared.h"
#include "../namespace_begin.h"
#include "../namespace_end.h"

Go to the source code of this file.

Data Structures

struct  _tag_menuframework
struct  aliasInfo
struct  characterInfo
struct  gameTypeInfo
struct  lerpFrame_t
struct  mapInfo
struct  menuaction_s
struct  menubitmap_s
struct  menucommon_s
struct  menufield_s
struct  menulist_s
struct  menuradiobutton_s
struct  menuslider_s
struct  menutext_s
struct  mfield_t
struct  modInfo_t
struct  pendingServer_t
struct  pendingServerStatus_t
struct  pinglist_t
struct  playerInfo_t
struct  playerSpeciesInfo_t
struct  postGameInfo_s
struct  serverFilter_s
struct  serverStatus_s
struct  serverStatusInfo_t
struct  teamInfo
struct  tierInfo
struct  uiInfo_t
struct  uiStatic_t

Defines

#define RCOLUMN_OFFSET   ( BIGCHAR_WIDTH )
#define LCOLUMN_OFFSET   (-BIGCHAR_WIDTH )
#define SLIDER_RANGE   10
#define MAX_EDIT_LINE   256
#define MAX_MENUDEPTH   8
#define MAX_MENUITEMS   256
#define MAX_FORCE_CONFIGS   128
#define MTYPE_NULL   0
#define MTYPE_SLIDER   1
#define MTYPE_ACTION   2
#define MTYPE_SPINCONTROL   3
#define MTYPE_FIELD   4
#define MTYPE_RADIOBUTTON   5
#define MTYPE_BITMAP   6
#define MTYPE_TEXT   7
#define MTYPE_SCROLLLIST   8
#define MTYPE_PTEXT   9
#define MTYPE_BTEXT   10
#define QMF_BLINK   0x00000001
#define QMF_SMALLFONT   0x00000002
#define QMF_LEFT_JUSTIFY   0x00000004
#define QMF_CENTER_JUSTIFY   0x00000008
#define QMF_RIGHT_JUSTIFY   0x00000010
#define QMF_NUMBERSONLY   0x00000020
#define QMF_HIGHLIGHT   0x00000040
#define QMF_HIGHLIGHT_IF_FOCUS   0x00000080
#define QMF_PULSEIFFOCUS   0x00000100
#define QMF_HASMOUSEFOCUS   0x00000200
#define QMF_NOONOFFTEXT   0x00000400
#define QMF_MOUSEONLY   0x00000800
#define QMF_HIDDEN   0x00001000
#define QMF_GRAYED   0x00002000
#define QMF_INACTIVE   0x00004000
#define QMF_NODEFAULTINIT   0x00008000
#define QMF_OWNERDRAW   0x00010000
#define QMF_PULSE   0x00020000
#define QMF_LOWERCASE   0x00040000
#define QMF_UPPERCASE   0x00080000
#define QMF_SILENT   0x00100000
#define QM_GOTFOCUS   1
#define QM_LOSTFOCUS   2
#define QM_ACTIVATED   3
#define MAX_FAVORITESERVERS   16
#define UI_NUMFX   7
#define MAX_HEADS   64
#define MAX_ALIASES   64
#define MAX_HEADNAME   32
#define MAX_TEAMS   64
#define MAX_GAMETYPES   16
#define MAX_MAPS   128
#define MAX_SPMAPS   16
#define PLAYERS_PER_TEAM   8
#define MAX_PINGREQUESTS   32
#define MAX_ADDRESSLENGTH   64
#define MAX_HOSTNAMELENGTH   22
#define MAX_MAPNAMELENGTH   16
#define MAX_STATUSLENGTH   64
#define MAX_LISTBOXWIDTH   59
#define UI_FONT_THRESHOLD   0.1
#define MAX_DISPLAY_SERVERS   2048
#define MAX_SERVERSTATUS_LINES   128
#define MAX_SERVERSTATUS_TEXT   1024
#define MAX_FOUNDPLAYER_SERVERS   16
#define TEAM_MEMBERS   8
#define GAMES_ALL   0
#define GAMES_FFA   1
#define GAMES_HOLOCRON   2
#define GAMES_TEAMPLAY   3
#define GAMES_TOURNEY   4
#define GAMES_CTF   5
#define MAPS_PER_TIER   3
#define MAX_TIERS   16
#define MAX_MODS   64
#define MAX_DEMOS   256
#define MAX_MOVIES   256
#define MAX_Q3PLAYERMODELS   256
#define MAX_PLAYERMODELS   32
#define MAX_SCROLLTEXT_SIZE   4096
#define MAX_SCROLLTEXT_LINES   64
#define ASSET_BACKGROUND   "uiBackground"

Typedefs

typedef _tag_menuframework menuframework_s
typedef serverFilter_s serverFilter_t
typedef serverStatus_s serverStatus_t
typedef postGameInfo_s postGameInfo_t

Enumerations

enum  awardType_t {
  AWARD_ACCURACY, AWARD_IMPRESSIVE, AWARD_EXCELLENT, AWARD_GAUNTLET,
  AWARD_FRAGS, AWARD_PERFECT
}

Functions

void Menu_Cache (void)
void Menu_Focus (menucommon_s *m)
void Menu_AddItem (menuframework_s *menu, void *item)
void Menu_AdjustCursor (menuframework_s *menu, int dir)
void Menu_Draw (menuframework_s *menu)
void * Menu_ItemAtCursor (menuframework_s *m)
sfxHandle_t Menu_ActivateItem (menuframework_s *s, menucommon_s *item)
void Menu_SetCursor (menuframework_s *s, int cursor)
void Menu_SetCursorToItem (menuframework_s *m, void *ptr)
sfxHandle_t Menu_DefaultKey (menuframework_s *s, int key)
void Bitmap_Init (menubitmap_s *b)
void Bitmap_Draw (menubitmap_s *b)
void ScrollList_Draw (menulist_s *l)
sfxHandle_t ScrollList_Key (menulist_s *l, int key)
void MField_Clear (mfield_t *edit)
void MField_KeyDownEvent (mfield_t *edit, int key)
void MField_CharEvent (mfield_t *edit, int ch)
void MField_Draw (mfield_t *edit, int x, int y, int style, vec4_t color)
void MenuField_Init (menufield_s *m)
void MenuField_Draw (menufield_s *f)
sfxHandle_t MenuField_Key (menufield_s *m, int *key)
qboolean UI_FeederSelection (float feederID, int index, itemDef_t *item)
void UI_Report ()
void UI_Load ()
void UI_LoadMenus (const char *menuFile, qboolean reset)
void _UI_SetActiveMenu (uiMenuCommand_t menu)
int UI_AdjustTimeByGame (int time)
void UI_ShowPostGame (qboolean newHigh)
void UI_ClearScores ()
void UI_LoadArenas (void)
void UI_LoadForceConfig_List (void)
void MainMenu_Cache (void)
void UI_MainMenu (void)
void UI_RegisterCvars (void)
void UI_UpdateCvars (void)
void UI_CreditMenu (void)
void InGame_Cache (void)
void UI_InGameMenu (void)
void ConfirmMenu_Cache (void)
void UI_ConfirmMenu (const char *question, void(*draw)(void), void(*action)(qboolean result))
void UI_SetupMenu_Cache (void)
void UI_SetupMenu (void)
void UI_TeamMainMenu (void)
void TeamMain_Cache (void)
void UI_DrawConnectScreen (qboolean overlay)
void UI_ControlsMenu (void)
void Controls_Cache (void)
void UI_DemosMenu (void)
void Demos_Cache (void)
void UI_CinematicsMenu (void)
void UI_CinematicsMenu_f (void)
void UI_CinematicsMenu_Cache (void)
void UI_ModsMenu (void)
void UI_ModsMenu_Cache (void)
void UI_CDKeyMenu (void)
void UI_CDKeyMenu_Cache (void)
void UI_CDKeyMenu_f (void)
void UI_PlayerModelMenu (void)
void PlayerModel_Cache (void)
void UI_PlayerSettingsMenu (void)
void PlayerSettings_Cache (void)
void UI_PreferencesMenu (void)
void Preferences_Cache (void)
void UI_SpecifyLeagueMenu (void)
void SpecifyLeague_Cache (void)
void UI_SpecifyServerMenu (void)
void SpecifyServer_Cache (void)
void UI_ArenaServersMenu (void)
void ArenaServers_Cache (void)
void UI_StartServerMenu (qboolean multiplayer)
void StartServer_Cache (void)
void ServerOptions_Cache (void)
void UI_BotSelectMenu (char *bot)
void UI_BotSelectMenu_Cache (void)
void UI_ServerInfoMenu (void)
void ServerInfo_Cache (void)
void UI_GraphicsOptionsMenu (void)
void GraphicsOptions_Cache (void)
void DriverInfo_Cache (void)
void UI_Init (void)
void UI_Shutdown (void)
void UI_KeyEvent (int key)
void UI_MouseEvent (int dx, int dy)
void UI_Refresh (int realtime)
qboolean UI_ConsoleCommand (int realTime)
float UI_ClampCvar (float min, float max, float value)
void UI_DrawNamedPic (float x, float y, float width, float height, const char *picname)
void UI_DrawHandlePic (float x, float y, float w, float h, qhandle_t hShader)
void UI_FillRect (float x, float y, float width, float height, const float *color)
void UI_DrawRect (float x, float y, float width, float height, const float *color)
void UI_DrawTopBottom (float x, float y, float w, float h)
void UI_DrawSides (float x, float y, float w, float h)
void UI_UpdateScreen (void)
void UI_SetColor (const float *rgba)
void UI_LerpColor (vec4_t a, vec4_t b, vec4_t c, float t)
void UI_DrawBannerString (int x, int y, const char *str, int style, vec4_t color)
float UI_ProportionalSizeScale (int style)
void UI_DrawProportionalString (int x, int y, const char *str, int style, vec4_t color)
int UI_ProportionalStringWidth (const char *str)
void UI_DrawString (int x, int y, const char *str, int style, vec4_t color)
void UI_DrawChar (int x, int y, int ch, int style, vec4_t color)
qboolean UI_CursorInRect (int x, int y, int width, int height)
void UI_DrawTextBox (int x, int y, int width, int lines)
qboolean UI_IsFullscreen (void)
void UI_SetActiveMenu (uiMenuCommand_t menu)
void UI_PushMenu (menuframework_s *menu)
void UI_PopMenu (void)
void UI_ForceMenuOff (void)
char * UI_Argv (int arg)
char * UI_Cvar_VariableString (const char *var_name)
void UI_StartDemoLoop (void)
void UI_LoadBestScores (const char *map, int game)
void UI_SPLevelMenu_Cache (void)
void UI_SPLevelMenu (void)
void UI_SPLevelMenu_f (void)
void UI_SPLevelMenu_ReInit (void)
void UI_SPArena_Start (const char *arenaInfo)
void UI_SPPostgameMenu_Cache (void)
void UI_SPPostgameMenu_f (void)
void UI_SPSkillMenu (const char *arenaInfo)
void UI_SPSkillMenu_Cache (void)
void trap_Print (const char *string)
void trap_Error (const char *string)
int trap_Milliseconds (void)
void trap_Cvar_Register (vmCvar_t *vmCvar, const char *varName, const char *defaultValue, int flags)
void trap_Cvar_Update (vmCvar_t *vmCvar)
void trap_Cvar_Set (const char *var_name, const char *value)
float trap_Cvar_VariableValue (const char *var_name)
void trap_Cvar_VariableStringBuffer (const char *var_name, char *buffer, int bufsize)
void trap_Cvar_SetValue (const char *var_name, float value)
void trap_Cvar_Reset (const char *name)
void trap_Cvar_Create (const char *var_name, const char *var_value, int flags)
void trap_Cvar_InfoStringBuffer (int bit, char *buffer, int bufsize)
int trap_Argc (void)
void trap_Argv (int n, char *buffer, int bufferLength)
void trap_Cmd_ExecuteText (int exec_when, const char *text)
int trap_FS_FOpenFile (const char *qpath, fileHandle_t *f, fsMode_t mode)
void trap_FS_Read (void *buffer, int len, fileHandle_t f)
void trap_FS_Write (const void *buffer, int len, fileHandle_t f)
void trap_FS_FCloseFile (fileHandle_t f)
int trap_FS_GetFileList (const char *path, const char *extension, char *listbuf, int bufsize)
qhandle_t trap_R_RegisterModel (const char *name)
qhandle_t trap_R_RegisterSkin (const char *name)
qhandle_t trap_R_RegisterShaderNoMip (const char *name)
void trap_R_ShaderNameFromIndex (char *name, int index)
void trap_R_ClearScene (void)
void trap_R_AddRefEntityToScene (const refEntity_t *re)
void trap_R_AddPolyToScene (qhandle_t hShader, int numVerts, const polyVert_t *verts)
void trap_R_AddLightToScene (const vec3_t org, float intensity, float r, float g, float b)
void trap_R_RenderScene (const refdef_t *fd)
void trap_R_SetColor (const float *rgba)
void trap_R_DrawStretchPic (float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader)
void trap_R_ModelBounds (clipHandle_t model, vec3_t mins, vec3_t maxs)
void trap_UpdateScreen (void)
int trap_CM_LerpTag (orientation_t *tag, clipHandle_t mod, int startFrame, int endFrame, float frac, const char *tagName)
void trap_S_StartLocalSound (sfxHandle_t sfx, int channelNum)
sfxHandle_t trap_S_RegisterSound (const char *sample)
void trap_Key_KeynumToStringBuf (int keynum, char *buf, int buflen)
void trap_Key_GetBindingBuf (int keynum, char *buf, int buflen)
void trap_Key_SetBinding (int keynum, const char *binding)
qboolean trap_Key_IsDown (int keynum)
qboolean trap_Key_GetOverstrikeMode (void)
void trap_Key_SetOverstrikeMode (qboolean state)
void trap_Key_ClearStates (void)
int trap_Key_GetCatcher (void)
void trap_Key_SetCatcher (int catcher)
void trap_GetClipboardData (char *buf, int bufsize)
void trap_GetClientState (uiClientState_t *state)
void trap_GetGlconfig (glconfig_t *glconfig)
int trap_GetConfigString (int index, char *buff, int buffsize)
int trap_LAN_GetServerCount (int source)
void trap_LAN_GetServerAddressString (int source, int n, char *buf, int buflen)
void trap_LAN_GetServerInfo (int source, int n, char *buf, int buflen)
int trap_LAN_GetServerPing (int source, int n)
int trap_LAN_GetPingQueueCount (void)
void trap_LAN_ClearPing (int n)
void trap_LAN_GetPing (int n, char *buf, int buflen, int *pingtime)
void trap_LAN_GetPingInfo (int n, char *buf, int buflen)
void trap_LAN_LoadCachedServers ()
void trap_LAN_SaveCachedServers ()
void trap_LAN_MarkServerVisible (int source, int n, qboolean visible)
int trap_LAN_ServerIsVisible (int source, int n)
qboolean trap_LAN_UpdateVisiblePings (int source)
int trap_LAN_AddServer (int source, const char *name, const char *addr)
void trap_LAN_RemoveServer (int source, const char *addr)
void trap_LAN_ResetPings (int n)
int trap_LAN_ServerStatus (const char *serverAddress, char *serverStatus, int maxLen)
int trap_LAN_CompareServers (int source, int sortKey, int sortDir, int s1, int s2)
int trap_MemoryRemaining (void)
qhandle_t trap_R_RegisterFont (const char *name)
int trap_R_Font_StrLenPixels (const char *text, const int iFontIndex, const float scale)
int trap_R_Font_StrLenChars (const char *text)
int trap_R_Font_HeightPixels (const int iFontIndex, const float scale)
void trap_R_Font_DrawString (int ox, int oy, const char *text, const float *rgba, const int setIndex, int iCharLimit, const float scale)
qboolean trap_Language_IsAsian (void)
qboolean trap_Language_UsesSpaces (void)
unsigned trap_AnyLanguage_ReadCharFromString (const char *psText, int *piAdvanceCount, qboolean *pbIsTrailingPunctuation)
void trap_S_StopBackgroundTrack (void)
void trap_S_StartBackgroundTrack (const char *intro, const char *loop, qboolean bReturnWithoutStarting)
int trap_CIN_PlayCinematic (const char *arg0, int xpos, int ypos, int width, int height, int bits)
e_status trap_CIN_StopCinematic (int handle)
e_status trap_CIN_RunCinematic (int handle)
void trap_CIN_DrawCinematic (int handle)
void trap_CIN_SetExtents (int handle, int x, int y, int w, int h)
int trap_RealTime (qtime_t *qtime)
void trap_R_RemapShader (const char *oldShader, const char *newShader, const char *timeOffset)
void UI_AddBots_Cache (void)
void UI_AddBotsMenu (void)
void UI_RemoveBots_Cache (void)
void UI_RemoveBotsMenu (void)
void UI_TeamOrdersMenu (void)
void UI_TeamOrdersMenu_f (void)
void UI_TeamOrdersMenu_Cache (void)
void UI_LoadConfig_Cache (void)
void UI_LoadConfigMenu (void)
void UI_SaveConfigMenu_Cache (void)
void UI_SaveConfigMenu (void)
void UI_DisplayOptionsMenu_Cache (void)
void UI_DisplayOptionsMenu (void)
void UI_SoundOptionsMenu_Cache (void)
void UI_SoundOptionsMenu (void)
void UI_NetworkOptionsMenu_Cache (void)
void UI_NetworkOptionsMenu (void)
const char * UI_GetArenaInfoByNumber (int num)
const char * UI_GetArenaInfoByMap (const char *map)
const char * UI_GetSpecialArenaInfo (const char *tag)
int UI_GetNumArenas (void)
int UI_GetNumSPArenas (void)
int UI_GetNumSPTiers (void)
char * UI_GetBotInfoByNumber (int num)
char * UI_GetBotInfoByName (const char *name)
int UI_GetNumBots (void)
void UI_LoadBots (void)
char * UI_GetBotNameByNumber (int num)
void UI_GetBestScore (int level, int *score, int *skill)
void UI_SetBestScore (int level, int score)
int UI_TierCompleted (int levelWon)
qboolean UI_ShowTierVideo (int tier)
qboolean UI_CanShowTierVideo (int tier)
int UI_GetCurrentGame (void)
void UI_NewGame (void)
void UI_LogAwardData (int award, int data)
int UI_GetAwardLevel (int award)
void UI_SPUnlock_f (void)
void UI_SPUnlockMedals_f (void)
void UI_InitGameinfo (void)
void Login_Cache (void)
void UI_LoginMenu (void)
void Signup_Cache (void)
void UI_SignupMenu (void)
void RankStatus_Cache (void)
void UI_RankStatusMenu (void)

Variables

vmCvar_t ui_ffa_fraglimit
vmCvar_t ui_ffa_timelimit
vmCvar_t ui_selectedModelIndex
vmCvar_t ui_team_fraglimit
vmCvar_t ui_team_timelimit
vmCvar_t ui_team_friendly
vmCvar_t ui_ctf_capturelimit
vmCvar_t ui_ctf_timelimit
vmCvar_t ui_ctf_friendly
vmCvar_t ui_arenasFile
vmCvar_t ui_botsFile
vmCvar_t ui_browserMaster
vmCvar_t ui_browserGameType
vmCvar_t ui_browserSortKey
vmCvar_t ui_browserShowFull
vmCvar_t ui_browserShowEmpty
vmCvar_t ui_drawCrosshair
vmCvar_t ui_drawCrosshairNames
vmCvar_t ui_marks
vmCvar_t ui_captureLimit
vmCvar_t ui_fragLimit
vmCvar_t ui_gameType
vmCvar_t ui_netGameType
vmCvar_t ui_actualNetGameType
vmCvar_t ui_joinGameType
vmCvar_t ui_netSource
vmCvar_t ui_serverFilterType
vmCvar_t ui_dedicated
vmCvar_t ui_opponentName
vmCvar_t ui_menuFiles
vmCvar_t ui_currentMap
vmCvar_t ui_currentNetMap
vmCvar_t ui_mapIndex
vmCvar_t ui_currentOpponent
vmCvar_t ui_selectedPlayer
vmCvar_t ui_selectedPlayerName
vmCvar_t ui_lastServerRefresh_0
vmCvar_t ui_lastServerRefresh_1
vmCvar_t ui_lastServerRefresh_2
vmCvar_t ui_lastServerRefresh_3
vmCvar_t ui_singlePlayerActive
vmCvar_t ui_scoreAccuracy
vmCvar_t ui_scoreImpressives
vmCvar_t ui_scoreExcellents
vmCvar_t ui_scoreDefends
vmCvar_t ui_scoreAssists
vmCvar_t ui_scoreGauntlets
vmCvar_t ui_scoreScore
vmCvar_t ui_scorePerfect
vmCvar_t ui_scoreTeam
vmCvar_t ui_scoreBase
vmCvar_t ui_scoreTimeBonus
vmCvar_t ui_scoreSkillBonus
vmCvar_t ui_scoreShutoutBonus
vmCvar_t ui_scoreTime
vmCvar_t ui_serverStatusTimeOut
vmCvar_t ui_bypassMainMenuLoad
sfxHandle_t menu_in_sound
sfxHandle_t menu_move_sound
sfxHandle_t menu_out_sound
sfxHandle_t menu_buzz_sound
sfxHandle_t menu_null_sound
sfxHandle_t weaponChangeSound
vec4_t menu_text_color
vec4_t menu_grayed_color
vec4_t menu_dark_color
vec4_t menu_highlight_color
vec4_t menu_red_color
vec4_t menu_black_color
vec4_t menu_dim_color
vec4_t color_black
vec4_t color_white
vec4_t color_yellow
vec4_t color_blue
vec4_t color_orange
vec4_t color_red
vec4_t color_dim
vec4_t name_color
vec4_t list_color
vec4_t listbar_color
vec4_t text_color_disabled
vec4_t text_color_normal
vec4_t text_color_highlight
char * ui_medalNames []
char * ui_medalPicNames []
char * ui_medalSounds []
uiInfo_t uiInfo
qboolean m_entersound
uiStatic_t uis


Define Documentation

#define ASSET_BACKGROUND   "uiBackground"
 

Definition at line 1122 of file ui_local.h.

#define GAMES_ALL   0
 

Definition at line 582 of file ui_local.h.

#define GAMES_CTF   5
 

Definition at line 587 of file ui_local.h.

#define GAMES_FFA   1
 

Definition at line 583 of file ui_local.h.

#define GAMES_HOLOCRON   2
 

Definition at line 584 of file ui_local.h.

#define GAMES_TEAMPLAY   3
 

Definition at line 585 of file ui_local.h.

#define GAMES_TOURNEY   4
 

Definition at line 586 of file ui_local.h.

#define LCOLUMN_OFFSET   (-BIGCHAR_WIDTH )
 

Definition at line 95 of file ui_local.h.

#define MAPS_PER_TIER   3
 

Definition at line 588 of file ui_local.h.

#define MAX_ADDRESSLENGTH   64
 

Definition at line 571 of file ui_local.h.

#define MAX_ALIASES   64
 

Definition at line 563 of file ui_local.h.

#define MAX_DEMOS   256
 

Definition at line 591 of file ui_local.h.

#define MAX_DISPLAY_SERVERS   2048
 

Definition at line 577 of file ui_local.h.

#define MAX_EDIT_LINE   256
 

Definition at line 98 of file ui_local.h.

#define MAX_FAVORITESERVERS   16
 

Definition at line 429 of file ui_local.h.

#define MAX_FORCE_CONFIGS   128
 

Definition at line 103 of file ui_local.h.

Referenced by UI_LoadForceConfig_List().

#define MAX_FOUNDPLAYER_SERVERS   16
 

Definition at line 580 of file ui_local.h.

#define MAX_GAMETYPES   16
 

Definition at line 566 of file ui_local.h.

#define MAX_HEADNAME   32
 

Definition at line 564 of file ui_local.h.

#define MAX_HEADS   64
 

Definition at line 562 of file ui_local.h.

#define MAX_HOSTNAMELENGTH   22
 

Definition at line 572 of file ui_local.h.

#define MAX_LISTBOXWIDTH   59
 

Definition at line 575 of file ui_local.h.

#define MAX_MAPNAMELENGTH   16
 

Definition at line 573 of file ui_local.h.

#define MAX_MAPS   128
 

Definition at line 567 of file ui_local.h.

Referenced by UI_LoadArenas().

#define MAX_MENUDEPTH   8
 

Definition at line 100 of file ui_local.h.

#define MAX_MENUITEMS   256
 

Definition at line 101 of file ui_local.h.

Referenced by MenuParse_itemDef().

#define MAX_MODS   64
 

Definition at line 590 of file ui_local.h.

#define MAX_MOVIES   256
 

Definition at line 592 of file ui_local.h.

#define MAX_PINGREQUESTS   32
 

Definition at line 570 of file ui_local.h.

#define MAX_PLAYERMODELS   32
 

Definition at line 594 of file ui_local.h.

#define MAX_Q3PLAYERMODELS   256
 

Definition at line 593 of file ui_local.h.

#define MAX_SCROLLTEXT_LINES   64
 

Definition at line 597 of file ui_local.h.

#define MAX_SCROLLTEXT_SIZE   4096
 

Definition at line 596 of file ui_local.h.

#define MAX_SERVERSTATUS_LINES   128
 

Definition at line 578 of file ui_local.h.

#define MAX_SERVERSTATUS_TEXT   1024
 

Definition at line 579 of file ui_local.h.

#define MAX_SPMAPS   16
 

Definition at line 568 of file ui_local.h.

#define MAX_STATUSLENGTH   64
 

Definition at line 574 of file ui_local.h.

#define MAX_TEAMS   64
 

Definition at line 565 of file ui_local.h.

#define MAX_TIERS   16
 

Definition at line 589 of file ui_local.h.

#define MTYPE_ACTION   2
 

Definition at line 107 of file ui_local.h.

#define MTYPE_BITMAP   6
 

Definition at line 111 of file ui_local.h.

#define MTYPE_BTEXT   10
 

Definition at line 115 of file ui_local.h.

#define MTYPE_FIELD   4
 

Definition at line 109 of file ui_local.h.

#define MTYPE_NULL   0
 

Definition at line 105 of file ui_local.h.

#define MTYPE_PTEXT   9
 

Definition at line 114 of file ui_local.h.

#define MTYPE_RADIOBUTTON   5
 

Definition at line 110 of file ui_local.h.

#define MTYPE_SCROLLLIST   8
 

Definition at line 113 of file ui_local.h.

#define MTYPE_SLIDER   1
 

Definition at line 106 of file ui_local.h.

#define MTYPE_SPINCONTROL   3
 

Definition at line 108 of file ui_local.h.

#define MTYPE_TEXT   7
 

Definition at line 112 of file ui_local.h.

#define PLAYERS_PER_TEAM   8
 

Definition at line 569 of file ui_local.h.

#define QM_ACTIVATED   3
 

Definition at line 142 of file ui_local.h.

#define QM_GOTFOCUS   1
 

Definition at line 140 of file ui_local.h.

#define QM_LOSTFOCUS   2
 

Definition at line 141 of file ui_local.h.

#define QMF_BLINK   0x00000001
 

Definition at line 117 of file ui_local.h.

#define QMF_CENTER_JUSTIFY   0x00000008
 

Definition at line 120 of file ui_local.h.

#define QMF_GRAYED   0x00002000
 

Definition at line 130 of file ui_local.h.

#define QMF_HASMOUSEFOCUS   0x00000200
 

Definition at line 126 of file ui_local.h.

#define QMF_HIDDEN   0x00001000
 

Definition at line 129 of file ui_local.h.

#define QMF_HIGHLIGHT   0x00000040
 

Definition at line 123 of file ui_local.h.

#define QMF_HIGHLIGHT_IF_FOCUS   0x00000080
 

Definition at line 124 of file ui_local.h.

#define QMF_INACTIVE   0x00004000
 

Definition at line 131 of file ui_local.h.

#define QMF_LEFT_JUSTIFY   0x00000004
 

Definition at line 119 of file ui_local.h.

#define QMF_LOWERCASE   0x00040000
 

Definition at line 135 of file ui_local.h.

#define QMF_MOUSEONLY   0x00000800
 

Definition at line 128 of file ui_local.h.

#define QMF_NODEFAULTINIT   0x00008000
 

Definition at line 132 of file ui_local.h.

#define QMF_NOONOFFTEXT   0x00000400
 

Definition at line 127 of file ui_local.h.

#define QMF_NUMBERSONLY   0x00000020
 

Definition at line 122 of file ui_local.h.

#define QMF_OWNERDRAW   0x00010000
 

Definition at line 133 of file ui_local.h.

#define QMF_PULSE   0x00020000
 

Definition at line 134 of file ui_local.h.

#define QMF_PULSEIFFOCUS   0x00000100
 

Definition at line 125 of file ui_local.h.

#define QMF_RIGHT_JUSTIFY   0x00000010
 

Definition at line 121 of file ui_local.h.

#define QMF_SILENT   0x00100000
 

Definition at line 137 of file ui_local.h.

#define QMF_SMALLFONT   0x00000002
 

Definition at line 118 of file ui_local.h.

#define QMF_UPPERCASE   0x00080000
 

Definition at line 136 of file ui_local.h.

#define RCOLUMN_OFFSET   ( BIGCHAR_WIDTH )
 

Definition at line 94 of file ui_local.h.

#define SLIDER_RANGE   10
 

Definition at line 97 of file ui_local.h.

#define TEAM_MEMBERS   8
 

Definition at line 581 of file ui_local.h.

#define UI_FONT_THRESHOLD   0.1
 

Definition at line 576 of file ui_local.h.

#define UI_NUMFX   7
 

Definition at line 561 of file ui_local.h.


Typedef Documentation

typedef struct _tag_menuframework menuframework_s
 

typedef struct postGameInfo_s postGameInfo_t
 

Referenced by UI_ClearScores(), UI_LoadBestScores(), and UI_SetBestScores().

typedef struct serverFilter_s serverFilter_t
 

typedef struct serverStatus_s serverStatus_t
 


Enumeration Type Documentation

enum awardType_t
 

Enumeration values:
AWARD_ACCURACY 
AWARD_IMPRESSIVE 
AWARD_EXCELLENT 
AWARD_GAUNTLET 
AWARD_FRAGS 
AWARD_PERFECT 

Definition at line 1064 of file ui_local.h.

01064              {
01065         AWARD_ACCURACY,
01066         AWARD_IMPRESSIVE,
01067         AWARD_EXCELLENT,
01068         AWARD_GAUNTLET,
01069         AWARD_FRAGS,
01070         AWARD_PERFECT
01071 } awardType_t;


Function Documentation

void _UI_SetActiveMenu uiMenuCommand_t  menu  ) 
 

Definition at line 10406 of file ui_main.c.

References GT_TEAM, uiInfo_t::inGameLoad, vmCvar_t::integer, KEYCATCH_UI, Menu_Count(), Menus_ActivateByName(), Menus_CloseAll(), qboolean, qfalse, qtrue, trap_Cvar_Set(), trap_Cvar_VariableStringBuffer(), trap_Cvar_VariableValue(), trap_Key_ClearStates(), trap_Key_GetCatcher(), trap_Key_SetCatcher(), ui_singlePlayerActive, uiInfo, UIMENU_CLASSSEL, UIMENU_CLOSEALL, UIMENU_INGAME, UIMENU_MAIN, UIMENU_NONE, UIMENU_PLAYERCONFIG, UIMENU_PLAYERFORCE, UIMENU_POSTGAME, UIMENU_SIEGEMESSAGE, UIMENU_SIEGEOBJECTIVES, UIMENU_TEAM, UIMENU_VOICECHAT, uiMenuCommand_t, UpdateForceUsed(), and vec3_t.

Referenced by UI_ShowPostGame(), and vmMain().

10406                                                {
10407         char buf[256];
10408 
10409         // this should be the ONLY way the menu system is brought up
10410         // enusure minumum menu data is cached
10411   if (Menu_Count() > 0) {
10412                 vec3_t v;
10413                 v[0] = v[1] = v[2] = 0;
10414           switch ( menu ) {
10415           case UIMENU_NONE:
10416                         trap_Key_SetCatcher( trap_Key_GetCatcher() & ~KEYCATCH_UI );
10417                         trap_Key_ClearStates();
10418                         trap_Cvar_Set( "cl_paused", "0" );
10419                         Menus_CloseAll();
10420 
10421                   return;
10422           case UIMENU_MAIN:
10423                 {
10424                         qboolean active = qfalse;
10425 
10426                         //trap_Cvar_Set( "sv_killserver", "1" );
10427                         trap_Key_SetCatcher( KEYCATCH_UI );
10428                         //trap_S_StartLocalSound( trap_S_RegisterSound("sound/misc/menu_background.wav", qfalse) , CHAN_LOCAL_SOUND );
10429                         //trap_S_StartBackgroundTrack("sound/misc/menu_background.wav", NULL);
10430                         if (uiInfo.inGameLoad) 
10431                         {
10432 //                              UI_LoadNonIngame();
10433                         }
10434                         
10435                         Menus_CloseAll();
10436                         Menus_ActivateByName("main");
10437                         trap_Cvar_VariableStringBuffer("com_errorMessage", buf, sizeof(buf));
10438                         
10439                         if (buf[0]) 
10440                         {
10441                                 if (!ui_singlePlayerActive.integer) 
10442                                 {
10443 #ifdef _XBOX
10444                                         // Display Xbox popups after an ERR_DROP?
10445                                         UI_xboxErrorPopup( XB_POPUP_COM_ERROR );
10446 #else
10447                                         Menus_ActivateByName("error_popmenu");
10448 #endif
10449                                         active = qtrue;
10450                                 } 
10451                                 else 
10452                                 {
10453                                         trap_Cvar_Set("com_errorMessage", "");
10454                                 }
10455                         }
10456                         return;
10457                 }
10458 
10459           case UIMENU_TEAM:
10460                         trap_Key_SetCatcher( KEYCATCH_UI );
10461       Menus_ActivateByName("team");
10462                   return;
10463           case UIMENU_POSTGAME:
10464                         //trap_Cvar_Set( "sv_killserver", "1" );
10465                         trap_Key_SetCatcher( KEYCATCH_UI );
10466                         if (uiInfo.inGameLoad) {
10467 //                              UI_LoadNonIngame();
10468                         }
10469                         Menus_CloseAll();
10470                         Menus_ActivateByName("endofgame");
10471                   //UI_ConfirmMenu( "Bad CD Key", NULL, NeedCDKeyAction );
10472                   return;
10473           case UIMENU_INGAME:
10474                   trap_Cvar_Set( "cl_paused", "1" );
10475                         trap_Key_SetCatcher( KEYCATCH_UI );
10476                         UI_BuildPlayerList();
10477                         Menus_CloseAll();
10478                         Menus_ActivateByName("ingame");
10479                   return;
10480           case UIMENU_PLAYERCONFIG:
10481                  // trap_Cvar_Set( "cl_paused", "1" );
10482                         trap_Key_SetCatcher( KEYCATCH_UI );
10483                         UI_BuildPlayerList();
10484                         Menus_CloseAll();
10485                         Menus_ActivateByName("ingame_player");
10486                         UpdateForceUsed();
10487                   return;
10488           case UIMENU_PLAYERFORCE:
10489                  // trap_Cvar_Set( "cl_paused", "1" );
10490                         trap_Key_SetCatcher( KEYCATCH_UI );
10491                         UI_BuildPlayerList();
10492                         Menus_CloseAll();
10493                         Menus_ActivateByName("ingame_playerforce");
10494                         UpdateForceUsed();
10495                   return;
10496           case UIMENU_SIEGEMESSAGE:
10497                  // trap_Cvar_Set( "cl_paused", "1" );
10498                         trap_Key_SetCatcher( KEYCATCH_UI );
10499                         Menus_CloseAll();
10500                         Menus_ActivateByName("siege_popmenu");
10501                   return;
10502           case UIMENU_SIEGEOBJECTIVES:
10503                  // trap_Cvar_Set( "cl_paused", "1" );
10504                         trap_Key_SetCatcher( KEYCATCH_UI );
10505                         Menus_CloseAll();
10506                         Menus_ActivateByName("ingame_siegeobjectives");
10507                         return;
10508           case UIMENU_VOICECHAT:
10509                  // trap_Cvar_Set( "cl_paused", "1" );
10510                         // No chatin non-siege games.
10511                  
10512                         if (trap_Cvar_VariableValue( "g_gametype" ) < GT_TEAM)
10513                         {
10514                                 return;
10515                         }
10516                                  
10517                         trap_Key_SetCatcher( KEYCATCH_UI );
10518                         Menus_CloseAll();
10519                         Menus_ActivateByName("ingame_voicechat");
10520                         return;
10521           case UIMENU_CLOSEALL:
10522                         Menus_CloseAll();
10523                         return;
10524           case UIMENU_CLASSSEL:
10525                         trap_Key_SetCatcher( KEYCATCH_UI );
10526                         Menus_CloseAll();
10527                         Menus_ActivateByName("ingame_siegeclass");
10528                   return;
10529           }
10530   }
10531 }

void ArenaServers_Cache void   ) 
 

void Bitmap_Draw menubitmap_s b  ) 
 

void Bitmap_Init menubitmap_s b  ) 
 

void ConfirmMenu_Cache void   ) 
 

void Controls_Cache void   ) 
 

void Demos_Cache void   ) 
 

void DriverInfo_Cache void   ) 
 

void GraphicsOptions_Cache void   ) 
 

void InGame_Cache void   ) 
 

void Login_Cache void   ) 
 

void MainMenu_Cache void   ) 
 

sfxHandle_t Menu_ActivateItem menuframework_s s,
menucommon_s item
 

void Menu_AddItem menuframework_s menu,
void *  item
 

void Menu_AdjustCursor menuframework_s menu,
int  dir
 

void Menu_Cache void   ) 
 

sfxHandle_t Menu_DefaultKey menuframework_s s,
int  key
 

void Menu_Draw menuframework_s menu  ) 
 

void Menu_Focus menucommon_s m  ) 
 

void* Menu_ItemAtCursor menuframework_s m  ) 
 

void Menu_SetCursor menuframework_s s,
int  cursor
 

void Menu_SetCursorToItem menuframework_s m,
void *  ptr
 

void MenuField_Draw menufield_s f  ) 
 

void MenuField_Init menufield_s m  ) 
 

sfxHandle_t MenuField_Key menufield_s m,
int *  key
 

void MField_CharEvent mfield_t edit,
int  ch
 

void MField_Clear mfield_t edit  ) 
 

void MField_Draw mfield_t edit,
int  x,
int  y,
int  style,
vec4_t  color
 

void MField_KeyDownEvent mfield_t edit,
int  key
 

void PlayerModel_Cache void   ) 
 

void PlayerSettings_Cache void   ) 
 

void Preferences_Cache void   ) 
 

void RankStatus_Cache void   ) 
 

void ScrollList_Draw menulist_s l  ) 
 

sfxHandle_t ScrollList_Key menulist_s l,
int  key
 

void ServerInfo_Cache void   ) 
 

void ServerOptions_Cache void   ) 
 

void Signup_Cache void   ) 
 

void SpecifyLeague_Cache void   ) 
 

void SpecifyServer_Cache void   ) 
 

void StartServer_Cache void   ) 
 

void TeamMain_Cache void   ) 
 

unsigned trap_AnyLanguage_ReadCharFromString const char *  psText,
int *  piAdvanceCount,
qboolean pbIsTrailingPunctuation
 

Definition at line 317 of file cg_syscalls.c.

00318 {
00319         return syscall( CG_ANYLANGUAGE_READCHARFROMSTRING, psText, piAdvanceCount, pbIsTrailingPunctuation);
00320 }

int trap_Argc void   ) 
 

Definition at line 71 of file cg_syscalls.c.

References CG_ARGC, and UI_ARGC.

00071                                   {
00072         return syscall( CG_ARGC );
00073 }

void trap_Argv int  n,
char *  buffer,
int  bufferLength
 

Definition at line 75 of file cg_syscalls.c.

References CG_ARGV, and UI_ARGV.

Referenced by CG_Argv(), CG_TargetCommand_f(), ClientCommand(), Cmd_CallTeamVote_f(), Cmd_CallVote_f(), Cmd_DebugSetBodyAnim_f(), Cmd_DebugSetSaberMove_f(), Cmd_DuelTeam_f(), Cmd_Follow_f(), Cmd_ForceChanged_f(), Cmd_GameCommand_f(), Cmd_Give_f(), Cmd_NPC_f(), Cmd_SetViewpos_f(), Cmd_SiegeClass_f(), Cmd_Team_f(), Cmd_TeamTask_f(), Cmd_TeamVote_f(), Cmd_Vote_f(), ConcatArgs(), ConsoleCommand(), NPC_Kill_f(), NPC_Spawn_f(), Svcmd_AddBot_f(), Svcmd_AddIP_f(), Svcmd_ForceTeam_f(), Svcmd_Nav_f(), Svcmd_RemoveIP_f(), and UI_Argv().

00075                                                            {
00076         syscall( CG_ARGV, n, buffer, bufferLength );
00077 }

void trap_CIN_DrawCinematic int  handle  ) 
 

Definition at line 602 of file cg_syscalls.c.

References CG_CIN_DRAWCINEMATIC, and UI_CIN_DRAWCINEMATIC.

00602                                          {
00603   syscall(CG_CIN_DRAWCINEMATIC, handle);
00604 }

int trap_CIN_PlayCinematic const char *  arg0,
int  xpos,
int  ypos,
int  width,
int  height,
int  bits
 

Definition at line 584 of file cg_syscalls.c.

References CG_CIN_PLAYCINEMATIC, and UI_CIN_PLAYCINEMATIC.

Referenced by UI_FeederSelection().

00584                                                                                                    {
00585   return syscall(CG_CIN_PLAYCINEMATIC, arg0, xpos, ypos, width, height, bits);
00586 }

e_status trap_CIN_RunCinematic int  handle  ) 
 

Definition at line 596 of file cg_syscalls.c.

References CG_CIN_RUNCINEMATIC, e_status, and UI_CIN_RUNCINEMATIC.

00596                                             {
00597   return syscall(CG_CIN_RUNCINEMATIC, handle);
00598 }

void trap_CIN_SetExtents int  handle,
int  x,
int  y,
int  w,
int  h
 

Definition at line 608 of file cg_syscalls.c.

References CG_CIN_SETEXTENTS, and UI_CIN_SETEXTENTS.

00608                                                                   {
00609   syscall(CG_CIN_SETEXTENTS, handle, x, y, w, h);
00610 }

e_status trap_CIN_StopCinematic int  handle  ) 
 

Definition at line 590 of file cg_syscalls.c.

References CG_CIN_STOPCINEMATIC, e_status, and UI_CIN_STOPCINEMATIC.

Referenced by UI_FeederSelection().

00590                                             {
00591   return syscall(CG_CIN_STOPCINEMATIC, handle);
00592 }

int trap_CM_LerpTag orientation_t tag,
clipHandle_t  mod,
int  startFrame,
int  endFrame,
float  frac,
const char *  tagName
 

Definition at line 206 of file ui_syscalls.c.

References clipHandle_t, PASSFLOAT(), and UI_CM_LERPTAG.

00206                                                                                                                            {
00207         return syscall( UI_CM_LERPTAG, tag, mod, startFrame, endFrame, PASSFLOAT(frac), tagName );
00208 }

void trap_Cmd_ExecuteText int  exec_when,
const char *  text
 

Definition at line 79 of file ui_syscalls.c.

References UI_CMD_EXECUTETEXT.

Referenced by _UI_Init(), UI_StartDemoLoop(), UI_UpdateClientForcePowers(), and UI_UpdateVideoSetup().

00079                                                              {
00080         syscall( UI_CMD_EXECUTETEXT, exec_when, text );
00081 }

void trap_Cvar_Create const char *  var_name,
const char *  var_value,
int  flags
 

Definition at line 63 of file ui_syscalls.c.

References UI_CVAR_CREATE.

00063                                                                                 {
00064         syscall( UI_CVAR_CREATE, var_name, var_value, flags );
00065 }

void trap_Cvar_InfoStringBuffer int  bit,
char *  buffer,
int  bufsize
 

Definition at line 67 of file ui_syscalls.c.

References UI_CVAR_INFOSTRINGBUFFER.

00067                                                                       {
00068         syscall( UI_CVAR_INFOSTRINGBUFFER, bit, buffer, bufsize );
00069 }

void trap_Cvar_Register vmCvar_t vmCvar,
const char *  varName,
const char *  defaultValue,
int  flags
 

Definition at line 50 of file cg_syscalls.c.

References CG_CVAR_REGISTER, and UI_CVAR_REGISTER.

Referenced by _UI_Init(), AcceptBotCommand(), BG_AddPredictableEventToPlayerstate(), BotAISetup(), CG_RegisterCvars(), G_InitBots(), G_InitGame(), G_RefreshNextMap(), G_RegisterCvars(), InitSiegeMode(), LoadPath_ThisLevel(), NAV_CheckCalcPaths(), UI_GetVideoSetup(), UI_LoadBots(), and UI_RegisterCvars().

00050                                                                                                          {
00051         syscall( CG_CVAR_REGISTER, vmCvar, varName, defaultValue, flags );
00052 }

void trap_Cvar_Reset const char *  name  ) 
 

Definition at line 59 of file ui_syscalls.c.

References name, and UI_CVAR_RESET.

00059                                          {
00060         syscall( UI_CVAR_RESET, name ); 
00061 }

void trap_Cvar_Set const char *  var_name,
const char *  value
 

Definition at line 58 of file cg_syscalls.c.

References CG_CVAR_SET, and UI_CVAR_SET.

Referenced by _UI_Init(), _UI_KeyEvent(), _UI_Refresh(), _UI_SetActiveMenu(), CG_DrawActiveFrame(), CG_DrawSiegeMessage(), CG_DrawTimedMenus(), CG_EntityEvent(), CG_InitSiegeMode(), CG_NewClientInfo(), CG_ParseServerinfo(), CG_ParseSiegeObjectiveStatus(), CG_Player(), CG_PredictPlayerState(), CG_SE_UpdateMusic(), CG_SetSiegeTimerCvar(), CG_ShowResponseHead(), CG_SiegeBriefingDisplay(), CG_SiegeCountCvars(), CG_UpdateCvars(), CheckCvars(), CheckTournament(), ClientSpawn(), ClientThink_real(), G_InitGame(), G_RefreshNextMap(), G_RegisterCvars(), G_RunFrame(), G_WriteClientSessionData(), G_WriteSessionData(), InitSiegeMode(), SP_terrain(), SP_worldspawn(), UI_ClampMaxPlayers(), UI_FeederSelection(), UI_ForceMaxRank_HandleKey(), UI_GetSaberForMenu(), UI_GetVideoSetup(), UI_SaberDrawBlades(), UI_SetBestScores(), UI_ShowPostGame(), UI_SiegeSetCvarsForClass(), UI_UpdateClientForcePowers(), UI_UpdateCvarsForClass(), UI_UpdateVideoSetup(), and WP_InitForcePowers().

00058                                                                  {
00059         syscall( CG_CVAR_SET, var_name, value );
00060 }

void trap_Cvar_SetValue const char *  var_name,
float  value
 

Definition at line 55 of file ui_syscalls.c.

References PASSFLOAT(), and UI_CVAR_SETVALUE.

00055                                                              {
00056         syscall( UI_CVAR_SETVALUE, var_name, PASSFLOAT( value ) );
00057 }

void trap_Cvar_Update vmCvar_t vmCvar  ) 
 

Definition at line 54 of file cg_syscalls.c.

References CG_CVAR_UPDATE, and UI_CVAR_UPDATE.

Referenced by BotAI(), BotAISetup(), BotAIStartFrame(), CalculateWeightGoals(), CG_UpdateCvars(), G_CheckMinimumPlayers(), G_UpdateCvars(), GetIdealDestination(), HolocronUpdate(), JediMasterUpdate(), LoadPath_ThisLevel(), RepairPaths(), and UI_UpdateCvars().

00054                                              {
00055         syscall( CG_CVAR_UPDATE, vmCvar );
00056 }

void trap_Cvar_VariableStringBuffer const char *  var_name,
char *  buffer,
int  bufsize
 

Definition at line 62 of file cg_syscalls.c.

References CG_CVAR_VARIABLESTRINGBUFFER, and UI_CVAR_VARIABLESTRINGBUFFER.

Referenced by _UI_SetActiveMenu(), CG_DrawInformation(), CG_DrawRadar(), CG_Init(), CG_InitSiegeMode(), CG_NewClientInfo(), CG_RegisterCvars(), CG_SiegeBriefingDisplay(), Cmd_CallVote_f(), FX_DrawPortableShield(), G_InitWorldSession(), G_ReadSessionData(), G_RunFrame(), ItemParse_asset_model(), NPC_UpdateAngles(), Q3_PlaySound(), SP_terrain(), trap_Cvar_VariableValue(), trap_R_RegisterShaderNoMip(), UI_Cvar_VariableString(), UI_DrawConnectScreen(), UI_FeederSelection(), UI_GetSaberForMenu(), UI_SaberDrawBlade(), UI_SaberDrawBlades(), UI_SetSiegeObjectiveGraphicPos(), UI_SetSiegeTeams(), UI_UpdateCharacterSkin(), and WP_ResistForcePush().

00062                                                                                        {
00063         syscall( CG_CVAR_VARIABLESTRINGBUFFER, var_name, buffer, bufsize );
00064 }

float trap_Cvar_VariableValue const char *  var_name  ) 
 

Definition at line 36 of file g_bot.c.

References atof(), trap_Cvar_VariableStringBuffer(), and UI_CVAR_VARIABLEVALUE.

Referenced by _UI_Init(), _UI_SetActiveMenu(), G_AddRandomBot(), UI_ClampMaxPlayers(), UI_ConsoleCommand(), UI_FeederSelection(), UI_FindCurrentSiegeTeamClass(), UI_ForceConfigHandle(), UI_ForceSide_HandleKey(), UI_JediNonJedi_HandleKey(), UI_LoadBestScores(), UI_ParseInfos(), UI_ReadLegalForce(), UpdateForceStatus(), and UpdateForceUsed().

00036                                                       {
00037         char buf[128];
00038 
00039         trap_Cvar_VariableStringBuffer(var_name, buf, sizeof(buf));
00040         return atof(buf);
00041 }

void trap_Error const char *  string  ) 
 

Definition at line 25 of file cg_syscalls.c.

References CG_ERROR, and UI_ERROR.

Referenced by CG_Error(), Com_Error(), G_Error(), and UI_LoadMenus().

00025                                       {
00026         syscall( CG_ERROR, fmt );
00027 }

void trap_FS_FCloseFile fileHandle_t  f  ) 
 

Definition at line 95 of file cg_syscalls.c.

References CG_FS_FCLOSEFILE, fileHandle_t, and UI_FS_FCLOSEFILE.

Referenced by BG_FileExists(), BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadMenus(), CG_ParseSurfsFile(), G_LogWeaponOutput(), G_ModelIndex(), G_ShutdownGame(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), SavePathData(), UI_ClearScores(), UI_ForceConfigHandle(), UI_hasSkinForBase(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_ParseInfos(), UI_SaberLoadParms(), UI_SaveForceTemplate(), UI_SetSiegeTeams(), and WP_SaberLoadParms().

00095                                              {
00096         syscall( CG_FS_FCLOSEFILE, f );
00097 }

int trap_FS_FOpenFile const char *  qpath,
fileHandle_t f,
fsMode_t  mode
 

Definition at line 83 of file cg_syscalls.c.

References CG_FS_FOPENFILE, fileHandle_t, and UI_FS_FOPENFILE.

Referenced by BG_FileExists(), BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadMenus(), CG_ParseSurfsFile(), G_InitGame(), G_LogWeaponOutput(), G_ModelIndex(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), SavePathData(), UI_ClearScores(), UI_ForceConfigHandle(), UI_hasSkinForBase(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_ParseInfos(), UI_SaberLoadParms(), UI_SaveForceTemplate(), UI_SetSiegeTeams(), and WP_SaberLoadParms().

00083                                                                                        {
00084         return syscall( CG_FS_FOPENFILE, qpath, f, mode );
00085 }

int trap_FS_GetFileList const char *  path,
const char *  extension,
char *  listbuf,
int  bufsize
 

Definition at line 99 of file cg_syscalls.c.

References CG_FS_GETFILELIST, and UI_FS_GETFILELIST.

Referenced by BG_SiegeLoadClasses(), BG_SiegeLoadTeams(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), NPC_LoadParms(), UI_ClearScores(), UI_LoadArenas(), UI_LoadBots(), UI_LoadForceConfig_List(), UI_SaberLoadParms(), and WP_SaberLoadParms().

00099                                                                                                 {
00100         return syscall( CG_FS_GETFILELIST, path, extension, listbuf, bufsize );
00101 }

void trap_FS_Read void *  buffer,
int  len,
fileHandle_t  f
 

Definition at line 87 of file cg_syscalls.c.

References CG_FS_READ, fileHandle_t, and UI_FS_READ.

Referenced by BG_ParseAnimationEvtFile(), BG_ParseAnimationFile(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), BG_VehicleLoadParms(), BG_VehWeaponLoadParms(), BotUtilizePersonality(), CG_GetMenuBuffer(), CG_InitSiegeMode(), CG_LoadCISounds(), CG_LoadMenus(), CG_ParseSurfsFile(), GetMenuBuffer(), InitSiegeMode(), LoadPathData(), NPC_LoadParms(), UI_ForceConfigHandle(), UI_LoadBestScores(), UI_ParseAnimationFile(), UI_SaberLoadParms(), UI_SetSiegeTeams(), and WP_SaberLoadParms().

00087                                                               {
00088         syscall( CG_FS_READ, buffer, len, f );
00089 }

void trap_FS_Write const void *  buffer,
int  len,
fileHandle_t  f
 

Definition at line 91 of file cg_syscalls.c.

References CG_FS_WRITE, fileHandle_t, and UI_FS_WRITE.

Referenced by G_LogPrintf(), G_LogWeaponOutput(), SavePathData(), UI_ClearScores(), and UI_SaveForceTemplate().

00091                                                                      {
00092         syscall( CG_FS_WRITE, buffer, len, f );
00093 }

void trap_GetClientState uiClientState_t state  ) 
 

Definition at line 258 of file ui_syscalls.c.

References UI_GETCLIENTSTATE.

Referenced by UI_DrawConnectScreen().

00258                                                    {
00259         syscall( UI_GETCLIENTSTATE, state );
00260 }

void trap_GetClipboardData char *  buf,
int  bufsize
 

Definition at line 254 of file ui_syscalls.c.

References UI_GETCLIPBOARDDATA.

00254                                                      {
00255         syscall( UI_GETCLIPBOARDDATA, buf, bufsize );
00256 }

int trap_GetConfigString int  index,
char *  buff,
int  buffsize
 

Definition at line 266 of file ui_syscalls.c.

References UI_GETCONFIGSTRING.

Referenced by UI_DrawConnectScreen(), UI_ForceConfigHandle(), UI_ForceSide_HandleKey(), UI_HasSetSaberOnly(), UI_JediNonJedi_HandleKey(), UI_ReadLegalForce(), UI_SetSiegeTeams(), UI_TrueJediEnabled(), and UpdateForceStatus().

00266                                                                 {
00267         return syscall( UI_GETCONFIGSTRING, index, buff, buffsize );
00268 }

void trap_GetGlconfig glconfig_t glconfig  ) 
 

Definition at line 461 of file cg_syscalls.c.

References CG_GETGLCONFIG, and UI_GETGLCONFIG.

Referenced by _UI_Init(), and CG_Init().

00461                                                          {
00462         syscall( CG_GETGLCONFIG, glconfig );
00463 }

void trap_Key_ClearStates void   ) 
 

Definition at line 242 of file ui_syscalls.c.

References UI_KEY_CLEARSTATES.

Referenced by _UI_KeyEvent(), and _UI_SetActiveMenu().

00242                                   {
00243         syscall( UI_KEY_CLEARSTATES );
00244 }

void trap_Key_GetBindingBuf int  keynum,
char *  buf,
int  buflen
 

Definition at line 222 of file ui_syscalls.c.

References UI_KEY_GETBINDINGBUF.

Referenced by _UI_Init().

00222                                                                  {
00223         syscall( UI_KEY_GETBINDINGBUF, keynum, buf, buflen );
00224 }

int trap_Key_GetCatcher void   ) 
 

Definition at line 529 of file cg_syscalls.c.

References CG_KEY_GETCATCHER, and UI_KEY_GETCATCHER.

00529                                 {
00530         return syscall( CG_KEY_GETCATCHER );
00531 }

qboolean trap_Key_GetOverstrikeMode void   ) 
 

Definition at line 234 of file ui_syscalls.c.

References qboolean, and UI_KEY_GETOVERSTRIKEMODE.

Referenced by _UI_Init().

00234                                             {
00235         return syscall( UI_KEY_GETOVERSTRIKEMODE );
00236 }

qboolean trap_Key_IsDown int  keynum  ) 
 

Definition at line 525 of file cg_syscalls.c.

References CG_KEY_ISDOWN, qboolean, and UI_KEY_ISDOWN.

00525                                        {
00526         return syscall( CG_KEY_ISDOWN, keynum );
00527 }

void trap_Key_KeynumToStringBuf int  keynum,
char *  buf,
int  buflen
 

Definition at line 218 of file ui_syscalls.c.

References UI_KEY_KEYNUMTOSTRINGBUF.

Referenced by _UI_Init().

00218                                                                      {
00219         syscall( UI_KEY_KEYNUMTOSTRINGBUF, keynum, buf, buflen );
00220 }

void trap_Key_SetBinding int  keynum,
const char *  binding
 

Definition at line 226 of file ui_syscalls.c.

References UI_KEY_SETBINDING.

Referenced by _UI_Init().

00226                                                             {
00227         syscall( UI_KEY_SETBINDING, keynum, binding );
00228 }

void trap_Key_SetCatcher int  catcher  ) 
 

Definition at line 533 of file cg_syscalls.c.

References CG_KEY_SETCATCHER, and UI_KEY_SETCATCHER.

Referenced by _UI_KeyEvent(), _UI_SetActiveMenu(), CG_KeyEvent(), CG_MouseEvent(), and UI_ConsoleCommand().

00533                                         {
00534         syscall( CG_KEY_SETCATCHER, catcher );
00535 }

void trap_Key_SetOverstrikeMode qboolean  state  ) 
 

Definition at line 238 of file ui_syscalls.c.

References UI_KEY_SETOVERSTRIKEMODE.

Referenced by _UI_Init().

00238                                                   {
00239         syscall( UI_KEY_SETOVERSTRIKEMODE, state );
00240 }

int trap_LAN_AddServer int  source,
const char *  name,
const char *  addr
 

Definition at line 330 of file ui_syscalls.c.

References name, and UI_LAN_ADDSERVER.

00330                                                                        {
00331         return syscall( UI_LAN_ADDSERVER, source, name, addr );
00332 }

void trap_LAN_ClearPing int  n  ) 
 

Definition at line 306 of file ui_syscalls.c.

References UI_LAN_CLEARPING.

00306                                  {
00307         syscall( UI_LAN_CLEARPING, n );
00308 }

int trap_LAN_CompareServers int  source,
int  sortKey,
int  sortDir,
int  s1,
int  s2
 

Definition at line 338 of file ui_syscalls.c.

References UI_LAN_COMPARESERVERS.

00338                                                                                     {
00339         return syscall( UI_LAN_COMPARESERVERS, source, sortKey, sortDir, s1, s2 );
00340 }

void trap_LAN_GetPing int  n,
char *  buf,
int  buflen,
int *  pingtime
 

Definition at line 310 of file ui_syscalls.c.

References UI_LAN_GETPING.

00310                                                                      {
00311         syscall( UI_LAN_GETPING, n, buf, buflen, pingtime );
00312 }

void trap_LAN_GetPingInfo int  n,
char *  buf,
int  buflen
 

Definition at line 314 of file ui_syscalls.c.

References UI_LAN_GETPINGINFO.

00314                                                           {
00315         syscall( UI_LAN_GETPINGINFO, n, buf, buflen );
00316 }

int trap_LAN_GetPingQueueCount void   ) 
 

Definition at line 286 of file ui_syscalls.c.

References UI_LAN_GETPINGQUEUECOUNT.

00286                                        {
00287         return syscall( UI_LAN_GETPINGQUEUECOUNT );
00288 }

void trap_LAN_GetServerAddressString int  source,
int  n,
char *  buf,
int  buflen
 

Definition at line 274 of file ui_syscalls.c.

References UI_LAN_GETSERVERADDRESSSTRING.

00274                                                                                  {
00275         syscall( UI_LAN_GETSERVERADDRESSSTRING, source, n, buf, buflen );
00276 }

int trap_LAN_GetServerCount int  source  ) 
 

Definition at line 270 of file ui_syscalls.c.

References UI_LAN_GETSERVERCOUNT.

00270                                               {
00271         return syscall( UI_LAN_GETSERVERCOUNT, source );
00272 }

void trap_LAN_GetServerInfo int  source,
int  n,
char *  buf,
int  buflen
 

Definition at line 278 of file ui_syscalls.c.

References UI_LAN_GETSERVERINFO.

Referenced by UI_FeederSelection().

00278                                                                         {
00279         syscall( UI_LAN_GETSERVERINFO, source, n, buf, buflen );
00280 }

int trap_LAN_GetServerPing int  source,
int  n
 

Definition at line 282 of file ui_syscalls.c.

References UI_LAN_GETSERVERPING.

00282                                                 {
00283         return syscall( UI_LAN_GETSERVERPING, source, n );
00284 }

void trap_LAN_LoadCachedServers  ) 
 

Definition at line 298 of file ui_syscalls.c.

References UI_LAN_LOADCACHEDSERVERS.

Referenced by _UI_Init().

00298                                   {
00299         syscall( UI_LAN_LOADCACHEDSERVERS );
00300 }

void trap_LAN_MarkServerVisible int  source,
int  n,
qboolean  visible
 

Definition at line 318 of file ui_syscalls.c.

References UI_LAN_MARKSERVERVISIBLE.

00318                                                                        {
00319         syscall( UI_LAN_MARKSERVERVISIBLE, source, n, visible );
00320 }

void trap_LAN_RemoveServer int  source,
const char *  addr
 

Definition at line 334 of file ui_syscalls.c.

References UI_LAN_REMOVESERVER.

00334                                                          {
00335         syscall( UI_LAN_REMOVESERVER, source, addr );
00336 }

void trap_LAN_ResetPings int  n  ) 
 

Definition at line 302 of file ui_syscalls.c.

References UI_LAN_RESETPINGS.

00302                                 {
00303         syscall( UI_LAN_RESETPINGS, n );
00304 }

void trap_LAN_SaveCachedServers  ) 
 

Definition at line 294 of file ui_syscalls.c.

References UI_LAN_SAVECACHEDSERVERS.

Referenced by _UI_Shutdown().

00294                                   {
00295         syscall( UI_LAN_SAVECACHEDSERVERS );
00296 }

int trap_LAN_ServerIsVisible int  source,
int  n
 

Definition at line 322 of file ui_syscalls.c.

References UI_LAN_SERVERISVISIBLE.

00322                                                  {
00323         return syscall( UI_LAN_SERVERISVISIBLE, source, n );
00324 }

int trap_LAN_ServerStatus const char *  serverAddress,
char *  serverStatus,
int  maxLen
 

Definition at line 290 of file ui_syscalls.c.

References UI_LAN_SERVERSTATUS.

00290                                                                                        {
00291         return syscall( UI_LAN_SERVERSTATUS, serverAddress, serverStatus, maxLen );
00292 }

qboolean trap_LAN_UpdateVisiblePings int  source  ) 
 

Definition at line 326 of file ui_syscalls.c.

References qboolean, and UI_LAN_UPDATEVISIBLEPINGS.

00326                                                    {
00327         return syscall( UI_LAN_UPDATEVISIBLEPINGS, source );
00328 }

qboolean trap_Language_IsAsian void   ) 
 

Definition at line 307 of file cg_syscalls.c.

00308 {
00309         return syscall( CG_LANGUAGE_ISASIAN );
00310 }

qboolean trap_Language_UsesSpaces void   ) 
 

Definition at line 312 of file cg_syscalls.c.

00313 {
00314         return syscall( CG_LANGUAGE_USESSPACES );
00315 }

int trap_MemoryRemaining void   ) 
 

Definition at line 521 of file cg_syscalls.c.

References CG_MEMORY_REMAINING, and UI_MEMORY_REMAINING.

00521                                  {
00522         return syscall( CG_MEMORY_REMAINING );
00523 }

int trap_Milliseconds void   ) 
 

Definition at line 29 of file cg_syscalls.c.

References CG_MILLISECONDS, and UI_MILLISECONDS.

00029                                           {
00030         return syscall( CG_MILLISECONDS ); 
00031 }

void trap_Print const char *  string  ) 
 

Definition at line 21 of file cg_syscalls.c.

References CG_PRINT, and UI_PRINT.

Referenced by CG_GetMenuBuffer(), CG_LoadMenus(), CG_Printf(), Com_Printf(), GetMenuBuffer(), UI_GetBotInfoByNumber(), and UI_LoadArenas().

00021                                       {
00022         syscall( CG_PRINT, fmt );
00023 }

void trap_R_AddLightToScene const vec3_t  org,
float  intensity,
float  r,
float  g,
float  b
 

Definition at line 352 of file cg_syscalls.c.

References CG_R_ADDLIGHTTOSCENE, PASSFLOAT(), UI_R_ADDLIGHTTOSCENE, and vec3_t.

Referenced by CG_AddPlayerWeapon(), and CG_DoSaber().

00352                                                                                                {
00353         syscall( CG_R_ADDLIGHTTOSCENE, org, PASSFLOAT(intensity), PASSFLOAT(r), PASSFLOAT(g), PASSFLOAT(b) );
00354 }

void trap_R_AddPolyToScene qhandle_t  hShader,
int  numVerts,
const polyVert_t verts
 

Definition at line 335 of file cg_syscalls.c.

References CG_R_ADDPOLYTOSCENE, qhandle_t, and UI_R_ADDPOLYTOSCENE.

Referenced by CG_AddMarks(), CG_AddParticleToScene(), CG_AddSaberBlade(), and CG_ImpactMark().

00335                                                                                            {
00336         syscall( CG_R_ADDPOLYTOSCENE, hShader, numVerts, verts );
00337 }

void trap_R_AddRefEntityToScene const refEntity_t re  ) 
 

Definition at line 331 of file cg_syscalls.c.

References CG_R_ADDREFENTITYTOSCENE, and UI_R_ADDREFENTITYTOSCENE.

Referenced by CG_AddFadeRGB(), CG_AddFragment(), CG_AddLine(), CG_AddOLine(), CG_AddRefEntity(), CG_AddRefEntityWithPowerups(), CG_AddScorePlum(), CG_Beam(), CG_CreateDistortionTrailPart(), CG_Disintegration(), CG_DoSaber(), CG_Draw3DModel(), CG_DrawMiscEnts(), CG_DrawPlayerShield(), CG_DrawPlayerSphere(), CG_Player(), and UI_DoSaber().

00331                                                             {
00332         syscall( CG_R_ADDREFENTITYTOSCENE, re );
00333 }

void trap_R_ClearScene void   ) 
 

Definition at line 322 of file cg_syscalls.c.

References CG_R_CLEARSCENE, and UI_R_CLEARSCENE.

00322                                   {
00323         syscall( CG_R_CLEARSCENE );
00324 }

void trap_R_DrawStretchPic float  x,
float  y,
float  w,
float  h,
float  s1,
float  t1,
float  s2,
float  t2,
qhandle_t  hShader
 

Definition at line 368 of file cg_syscalls.c.

References CG_R_DRAWSTRETCHPIC, PASSFLOAT(), qhandle_t, and UI_R_DRAWSTRETCHPIC.

Referenced by _UI_DrawSides(), _UI_DrawTopBottom(), CG_DrawChar(), CG_DrawPic(), CG_DrawSides(), CG_DrawTopBottom(), CG_FillRect(), CG_FillRect2(), UI_DrawHandlePic(), UI_DrawNamedPic(), UI_DrawSides(), UI_DrawTopBottom(), and UI_FillRect().

00369                                                                                                                        {
00370         syscall( CG_R_DRAWSTRETCHPIC, PASSFLOAT(x), PASSFLOAT(y), PASSFLOAT(w), PASSFLOAT(h), PASSFLOAT(s1), PASSFLOAT(t1), PASSFLOAT(s2), PASSFLOAT(t2), hShader );
00371 }

void trap_R_Font_DrawString int  ox,
int  oy,
const char *  text,
const float *  rgba,
const int  setIndex,
int  iCharLimit,
const float  scale
 

Definition at line 302 of file cg_syscalls.c.

00303 {
00304         syscall( CG_R_FONT_DRAWSTRING, ox, oy, text, rgba, setIndex, iCharLimit, PASSFLOAT(scale));
00305 }

int trap_R_Font_HeightPixels const int  iFontIndex,
const float  scale
 

Definition at line 297 of file cg_syscalls.c.

00298 {
00299         return syscall( CG_R_FONT_STRHEIGHTPIXELS, iFontIndex, PASSFLOAT(scale));
00300 }

int trap_R_Font_StrLenChars const char *  text  ) 
 

Definition at line 292 of file cg_syscalls.c.

00293 {
00294         return syscall( CG_R_FONT_STRLENCHARS, text);
00295 }

int trap_R_Font_StrLenPixels const char *  text,
const int  iFontIndex,
const float  scale
 

Definition at line 287 of file cg_syscalls.c.

00288 {
00289         return syscall( CG_R_FONT_STRLENPIXELS, text, iFontIndex, PASSFLOAT(scale));
00290 }

void trap_R_ModelBounds clipHandle_t  model,
vec3_t  mins,
vec3_t  maxs
 

Definition at line 373 of file cg_syscalls.c.

References CG_R_MODELBOUNDS, clipHandle_t, UI_R_MODELBOUNDS, and vec3_t.

Referenced by CG_CreateBrushEntData(), CG_CreateModelFromSpawnEnt(), CG_DrawFlagModel(), CG_MiscEnt(), and CG_RegisterWeapon().

00373                                                                            {
00374         syscall( CG_R_MODELBOUNDS, model, mins, maxs );
00375 }

qhandle_t trap_R_RegisterFont const char *  name  ) 
 

Definition at line 282 of file cg_syscalls.c.

References CG_R_REGISTERFONT, qhandle_t, and UI_R_REGISTERFONT.

Referenced by Asset_Parse(), and CG_Init().

00283 {
00284         return syscall( CG_R_REGISTERFONT, fontName);
00285 }

qhandle_t trap_R_RegisterModel const char *  name  ) 
 

Definition at line 266 of file cg_syscalls.c.

References CG_R_REGISTERMODEL, name, qhandle_t, and UI_R_REGISTERMODEL.

Referenced by BG_ModelCache(), CG_AddPlayerWeapon(), CG_CreateBrushEntData(), CG_CreateDebris(), CG_CreateDistortionTrailPart(), CG_CreateModelFromSpawnEnt(), CG_GlassShatter_Old(), CG_InitSiegeMode(), CG_MiscEnt(), CG_Player(), CG_PrecachePlayersForSiegeTeam(), CG_RegisterItemVisuals(), CG_RegisterWeapon(), CG_TestModel_f(), and VEH_LoadVehicle().

00266                                                    {
00267         return syscall( CG_R_REGISTERMODEL, name );
00268 }

qhandle_t trap_R_RegisterShaderNoMip const char *  name  ) 
 

Definition at line 278 of file cg_syscalls.c.

References CG_R_REGISTERSHADERNOMIP, name, qhandle_t, trap_Cvar_VariableStringBuffer(), and UI_R_REGISTERSHADERNOMIP.

Referenced by _UI_Init(), Asset_Parse(), AssetCache(), BG_SiegeParseClassFile(), BG_SiegeParseTeamFile(), CG_Asset_Parse(), CG_AssetCache(), CG_DrawFlagStatus(), CG_DrawInformation(), CG_DrawRadar(), CG_Init(), CG_InitSiegeMode(), CG_PrecacheSiegeObjectiveAssetsForTeam(), CG_RegisterItemVisuals(), CG_RegisterWeapon(), CG_SiegeCountCvars(), UI_CacheSaberGlowGraphics(), UI_DrawNamedPic(), UI_FeederSelection(), UI_InitForceShaders(), and VEH_LoadVehicle().

00278                                                          {
00279         return syscall( CG_R_REGISTERSHADERNOMIP, name );
00280 }

qhandle_t trap_R_RegisterSkin const char *  name  ) 
 

Definition at line 270 of file cg_syscalls.c.

00270                                                   {
00271         return syscall( CG_R_REGISTERSKIN, name );
00272 }

void trap_R_RemapShader const char *  oldShader,
const char *  newShader,
const char *  timeOffset
 

Definition at line 406 of file cg_syscalls.c.

References CG_R_REMAP_SHADER, and UI_R_REMAP_SHADER.

00407 {
00408         syscall( CG_R_REMAP_SHADER, oldShader, newShader, timeOffset );
00409 }

void trap_R_RenderScene const refdef_t fd  ) 
 

Definition at line 360 of file cg_syscalls.c.

References CG_R_RENDERSCENE, and UI_R_RENDERSCENE.

Referenced by CG_Draw3DModel(), CG_DrawActive(), CG_DrawAutoMap(), and CG_DrawSkyBoxPortal().

00360                                                  {
00361         syscall( CG_R_RENDERSCENE, fd );
00362 }

void trap_R_SetColor const float *  rgba  ) 
 

Definition at line 364 of file cg_syscalls.c.

References CG_R_SETCOLOR, and UI_R_SETCOLOR.

Referenced by _UI_DrawRect(), CG_BracketEntity(), CG_DottedLine(), CG_DrawArmor(), CG_DrawForcePower(), CG_DrawForceSelect(), CG_DrawHealth(), CG_DrawHUD(), CG_DrawInformation(), CG_DrawInvenSelect(), CG_DrawMedal(), CG_DrawNewTeamInfo(), CG_DrawRadar(), CG_DrawRect(), CG_DrawStringExt(), CG_DrawTeamBackground(), CG_DrawVehicleAmmo(), CG_DrawVehicleAmmoLower(), CG_DrawVehicleAmmoUpper(), CG_DrawVehicleArmor(), CG_DrawVehicleDamage(), CG_DrawVehicleDamageHUD(), CG_DrawVehicleHud(), CG_DrawVehicleShields(), CG_DrawVehicleSpeed(), CG_DrawVehicleTurboRecharge(), CG_DrawVehicleWeaponsLinked(), CG_DrawWeaponSelect(), CG_FillRect(), CG_FillRect2(), CG_LoadBar(), CG_SaberClashFlare(), UI_DrawForceStars(), UI_DrawRect(), UI_FillRect(), and UI_SetColor().

00364                                              {
00365         syscall( CG_R_SETCOLOR, rgba );
00366 }

void trap_R_ShaderNameFromIndex char *  name,
int  index
 

Definition at line 165 of file ui_syscalls.c.

References name, and UI_R_SHADERNAMEFROMINDEX.

Referenced by UI_SiegeSetCvarsForClass().

00166 {
00167         syscall( UI_R_SHADERNAMEFROMINDEX, name, index );
00168 }

int trap_RealTime qtime_t qtime  ) 
 

Definition at line 575 of file cg_syscalls.c.

References CG_REAL_TIME, qtime_t, and UI_REAL_TIME.

00575                                   {
00576         return syscall( CG_REAL_TIME, qtime );
00577 }

sfxHandle_t trap_S_RegisterSound const char *  sample  ) 
 

Definition at line 229 of file cg_syscalls.c.

References CG_S_REGISTERSOUND, sfxHandle_t, and UI_S_REGISTERSOUND.

Referenced by Asset_Parse(), BG_SoundIndex(), CG_Asset_Parse(), CG_CustomSound(), CG_DoGlass(), CG_DrawRadar(), CG_EntityEvent(), CG_G2AnimEntModelLoad(), CG_GlassShatter_Old(), CG_LoadCISounds(), CG_PlayerAnimEventDo(), CG_PrecacheSiegeObjectiveAssetsForTeam(), CG_RegisterWeapon(), CG_ROFF_NotetrackCallback(), CG_SiegeObjectiveCompleted(), CG_SiegeRoundOver(), ParseAnimationEvtBlock(), VEH_LoadVehicle(), and VEH_LoadVehWeapon().

00229                                                            {
00230         return syscall( CG_S_REGISTERSOUND, sample );
00231 }

void trap_S_StartBackgroundTrack const char *  intro,
const char *  loop,
qboolean  bReturnWithoutStarting
 

Definition at line 233 of file cg_syscalls.c.

References CG_S_STARTBACKGROUNDTRACK, and UI_S_STARTBACKGROUNDTRACK.

Referenced by CG_EntityEvent(), and CG_StartMusic().

00233                                                                                                              {
00234         syscall( CG_S_STARTBACKGROUNDTRACK, intro, loop, bReturnWithoutStarting  );
00235 }

void trap_S_StartLocalSound sfxHandle_t  sfx,
int  channelNum
 

Definition at line 196 of file cg_syscalls.c.

References CG_S_STARTLOCALSOUND, sfxHandle_t, and UI_S_STARTLOCALSOUND.

Referenced by CG_CheckAmmo(), CG_CheckLocalSounds(), CG_EntityEvent(), CG_SiegeObjectiveCompleted(), CG_SiegeRoundOver(), Item_Model_Paint(), and UI_FeederSelection().

00196                                                                   {
00197         syscall( CG_S_STARTLOCALSOUND, sfx, channelNum );
00198 }

void trap_S_StopBackgroundTrack void   ) 
 

Definition at line 571 of file cg_syscalls.c.

References CG_S_STOPBACKGROUNDTRACK, and UI_S_STOPBACKGROUNDTRACK.

00571                                            {
00572         syscall( CG_S_STOPBACKGROUNDTRACK );
00573 }

void trap_UpdateScreen void   ) 
 

Definition at line 119 of file cg_syscalls.c.

References CG_UPDATESCREEN, and UI_UPDATESCREEN.

00119                                   {
00120         syscall( CG_UPDATESCREEN );
00121 }

void UI_AddBots_Cache void   ) 
 

void UI_AddBotsMenu void   ) 
 

int UI_AdjustTimeByGame int  time  ) 
 

void UI_ArenaServersMenu void   ) 
 

char* UI_Argv int  arg  ) 
 

Definition at line 64 of file ui_atoms.c.

References MAX_STRING_CHARS, and trap_Argv().

Referenced by UI_ConsoleCommand().

00064                          {
00065         static char     buffer[MAX_STRING_CHARS];
00066 
00067         trap_Argv( arg, buffer, sizeof( buffer ) );
00068 
00069         return buffer;
00070 }

void UI_BotSelectMenu char *  bot  ) 
 

void UI_BotSelectMenu_Cache void   ) 
 

qboolean UI_CanShowTierVideo int  tier  ) 
 

void UI_CDKeyMenu void   ) 
 

void UI_CDKeyMenu_Cache void   ) 
 

void UI_CDKeyMenu_f void   ) 
 

void UI_CinematicsMenu void   ) 
 

void UI_CinematicsMenu_Cache void   ) 
 

void UI_CinematicsMenu_f void   ) 
 

float UI_ClampCvar float  min,
float  max,
float  value
 

Definition at line 47 of file ui_atoms.c.

References min.

00048 {
00049         if ( value < min ) return min;
00050         if ( value > max ) return max;
00051         return value;
00052 }

void UI_ClearScores  ) 
 

Definition at line 147 of file ui_atoms.c.

References fileHandle_t, FS_WRITE, memset(), postGameInfo_t, qfalse, strlen(), trap_FS_FCloseFile(), trap_FS_FOpenFile(), trap_FS_GetFileList(), trap_FS_Write(), UI_SetBestScores(), and va().

00147                       {
00148         char    gameList[4096];
00149         char *gameFile;
00150         int             i, len, count, size;
00151         fileHandle_t f;
00152         postGameInfo_t newInfo;
00153 
00154         count = trap_FS_GetFileList( "games", "game", gameList, sizeof(gameList) );
00155 
00156         size = sizeof(postGameInfo_t);
00157         memset(&newInfo, 0, size);
00158 
00159         if (count > 0) {
00160                 gameFile = gameList;
00161                 for ( i = 0; i < count; i++ ) {
00162                         len = strlen(gameFile);
00163                         if (trap_FS_FOpenFile(va("games/%s",gameFile), &f, FS_WRITE) >= 0) {
00164                                 trap_FS_Write(&size, sizeof(int), f);
00165                                 trap_FS_Write(&newInfo, size, f);
00166                                 trap_FS_FCloseFile(f);
00167                         }
00168                         gameFile += len + 1;
00169                 }
00170         }
00171         
00172         UI_SetBestScores(&newInfo, qfalse);
00173 
00174 }

void UI_ConfirmMenu const char *  question,
void(*  draw)(void),
void(*  action)(qboolean result)
 

qboolean UI_ConsoleCommand int  realTime  ) 
 

Definition at line 296 of file ui_atoms.c.

References displayContextDef_t::frameTime, GT_SIEGE, KEYCATCH_UI, Menus_ActivateByName(), Menus_CloseAll(), Q_stricmp(), qboolean, qfalse, qtrue, displayContextDef_t::realTime, trap_Cvar_VariableValue(), trap_Key_SetCatcher(), UI_Argv(), UI_Load(), UI_Report(), UI_ShowPostGame(), uiInfo_t::uiDC, and uiInfo.

Referenced by vmMain().

00296                                            {
00297         char    *cmd;
00298 
00299         uiInfo.uiDC.frameTime = realTime - uiInfo.uiDC.realTime;
00300         uiInfo.uiDC.realTime = realTime;
00301 
00302         cmd = UI_Argv( 0 );
00303 
00304         // ensure minimum menu data is available
00305         //Menu_Cache();
00306 
00307         if ( Q_stricmp (cmd, "ui_test") == 0 ) {
00308                 UI_ShowPostGame(qtrue);
00309         }
00310 
00311         if ( Q_stricmp (cmd, "ui_report") == 0 ) {
00312                 UI_Report();
00313                 return qtrue;
00314         }
00315         
00316         if ( Q_stricmp (cmd, "ui_load") == 0 ) {
00317                 UI_Load();
00318                 return qtrue;
00319         }
00320 
00321         if ( Q_stricmp (cmd, "ui_opensiegemenu" ) == 0 ) 
00322         {
00323                 if ( trap_Cvar_VariableValue ( "g_gametype" ) == GT_SIEGE )
00324                 {
00325                         Menus_CloseAll();
00326                         if (Menus_ActivateByName(UI_Argv(1)))
00327                         {
00328                                 trap_Key_SetCatcher( KEYCATCH_UI );
00329                         }
00330                 }
00331                 return qtrue;
00332         }
00333 
00334         if ( Q_stricmp (cmd, "ui_openmenu" ) == 0 ) 
00335         {
00336                 //if ( trap_Cvar_VariableValue ( "developer" ) )
00337                 {
00338                         Menus_CloseAll();
00339                         if (Menus_ActivateByName(UI_Argv(1)))
00340                         {
00341                                 trap_Key_SetCatcher( KEYCATCH_UI );
00342                         }
00343                         return qtrue;
00344                 }
00345         }
00346 
00347         /*
00348         if ( Q_stricmp (cmd, "remapShader") == 0 ) {
00349                 if (trap_Argc() == 4) {
00350                         char shader1[MAX_QPATH];
00351                         char shader2[MAX_QPATH];
00352                         Q_strncpyz(shader1, UI_Argv(1), sizeof(shader1));
00353                         Q_strncpyz(shader2, UI_Argv(2), sizeof(shader2));
00354                         trap_R_RemapShader(shader1, shader2, UI_Argv(3));
00355                         return qtrue;
00356                 }
00357         }
00358         */
00359 
00360         if ( Q_stricmp (cmd, "postgame") == 0 ) {
00361                 UI_CalcPostGameStats();
00362                 return qtrue;
00363         }
00364 
00365         if ( Q_stricmp (cmd, "ui_cache") == 0 ) {
00366                 UI_Cache_f();
00367                 return qtrue;
00368         }
00369 
00370         if ( Q_stricmp (cmd, "ui_teamOrders") == 0 ) {
00371                 //UI_TeamOrdersMenu_f();
00372                 return qtrue;
00373         }
00374 
00375 
00376         if ( Q_stricmp (cmd, "ui_cdkey") == 0 ) {
00377                 //UI_CDKeyMenu_f();
00378                 return qtrue;
00379         }
00380 
00381         return qfalse;
00382 }

void UI_ControlsMenu void   ) 
 

void UI_CreditMenu void   ) 
 

qboolean UI_CursorInRect int  x,
int  y,
int  width,
int  height
 

Definition at line 484 of file ui_atoms.c.

References displayContextDef_t::cursorx, displayContextDef_t::cursory, qboolean, qfalse, qtrue, uiInfo_t::uiDC, and uiInfo.

00485 {
00486         if (uiInfo.uiDC.cursorx < x ||
00487                 uiInfo.uiDC.cursory < y ||
00488                 uiInfo.uiDC.cursorx > x+width ||
00489                 uiInfo.uiDC.cursory > y+height)
00490                 return qfalse;
00491 
00492         return qtrue;
00493 }

char* UI_Cvar_VariableString const char *  var_name  ) 
 

Definition at line 73 of file ui_atoms.c.

References MAX_STRING_CHARS, and trap_Cvar_VariableStringBuffer().

Referenced by _UI_Init(), Item_Model_Paint(), UI_FeederSelection(), UI_GetVideoSetup(), UI_Load(), UI_LoadNonIngame(), UI_SaveForceTemplate(), UI_UpdateForcePowers(), and UI_UpdateVideoSetup().

00073                                                      {
00074         static char     buffer[MAX_STRING_CHARS];
00075 
00076         trap_Cvar_VariableStringBuffer( var_name, buffer, sizeof( buffer ) );
00077 
00078         return buffer;
00079 }

void UI_DemosMenu void   ) 
 

void UI_DisplayOptionsMenu void   ) 
 

void UI_DisplayOptionsMenu_Cache void   ) 
 

void UI_DrawBannerString int  x,
int  y,
const char *  str,
int  style,
vec4_t  color
 

void UI_DrawChar int  x,
int  y,
int  ch,
int  style,
vec4_t  color
 

void UI_DrawConnectScreen qboolean  overlay  ) 
 

Definition at line 10676 of file ui_main.c.

References CA_CHALLENGING, CA_CONNECTED, CA_CONNECTING, CA_LOADING, CA_PRIMED, colorWhite, uiClientState_t::connectPacketCount, uiClientState_t::connState, CS_SERVERINFO, FONT_MEDIUM, Info_ValueForKey(), ITEM_TEXTSTYLE_SHADOWEDMORE, MAX_INFO_VALUE, Menu_Paint(), Menus_FindByName(), uiClientState_t::messageString, Q_stricmp(), qtrue, uiClientState_t::servername, strcpy(), Text_PaintCenter(), trap_Cvar_VariableStringBuffer(), trap_GetClientState(), trap_GetConfigString(), trap_SP_GetStringTextString(), uiClientState_t::updateInfoString, and va().

Referenced by vmMain().

10676                                               {
10677         const char *s;
10678         uiClientState_t cstate;
10679         char                    info[MAX_INFO_VALUE];
10680         char text[256];
10681         float centerPoint, yStart, scale;
10682 
10683         char sStringEdTemp[256];
10684 
10685         menuDef_t *menu = Menus_FindByName("Connect");
10686 
10687 
10688         if ( !overlay && menu ) {
10689                 Menu_Paint(menu, qtrue);
10690         }
10691 
10692         if (!overlay) {
10693                 centerPoint = 320;
10694                 yStart = 130;
10695                 scale = 1.0f;   // -ste
10696         } else {
10697                 centerPoint = 320;
10698                 yStart = 32;
10699                 scale = 1.0f;   // -ste
10700                 return;
10701         }
10702 
10703         // see what information we should display
10704         trap_GetClientState( &cstate );
10705 
10706 
10707         info[0] = '\0';
10708         if( trap_GetConfigString( CS_SERVERINFO, info, sizeof(info) ) ) {
10709                 trap_SP_GetStringTextString("MENUS_LOADING_MAPNAME", sStringEdTemp, sizeof(sStringEdTemp));
10710                 Text_PaintCenter(centerPoint, yStart, scale, colorWhite, va( /*"Loading %s"*/sStringEdTemp, Info_ValueForKey( info, "mapname" )), 0, FONT_MEDIUM);
10711         }
10712 
10713         if (!Q_stricmp(cstate.servername,"localhost")) {
10714                 trap_SP_GetStringTextString("MENUS_STARTING_UP", sStringEdTemp, sizeof(sStringEdTemp));
10715                 Text_PaintCenter(centerPoint, yStart + 48, scale, colorWhite, sStringEdTemp, ITEM_TEXTSTYLE_SHADOWEDMORE, FONT_MEDIUM);
10716         } else {
10717                 trap_SP_GetStringTextString("MENUS_CONNECTING_TO", sStringEdTemp, sizeof(sStringEdTemp));
10718                 strcpy(text, va(/*"Connecting to %s"*/sStringEdTemp, cstate.servername));
10719                 Text_PaintCenter(centerPoint, yStart + 48, scale, colorWhite,text , ITEM_TEXTSTYLE_SHADOWEDMORE, FONT_MEDIUM);
10720         }
10721 
10722         //UI_DrawProportionalString( 320, 96, "Press Esc to abort", UI_CENTER|UI_SMALLFONT|UI_DROPSHADOW, menu_text_color );
10723 
10724         // display global MOTD at bottom
10725         Text_PaintCenter(centerPoint, 425, scale, colorWhite, Info_ValueForKey( cstate.updateInfoString, "motd" ), 0, FONT_MEDIUM);
10726         // print any server info (server full, bad version, etc)
10727         if ( cstate.connState < CA_CONNECTED ) {
10728                 Text_PaintCenter(centerPoint, yStart + 176, scale, colorWhite, cstate.messageString, 0, FONT_MEDIUM);
10729         }
10730 
10731         if ( lastConnState > cstate.connState ) {
10732                 lastLoadingText[0] = '\0';
10733         }
10734         lastConnState = cstate.connState;
10735 
10736         switch ( cstate.connState ) {
10737         case CA_CONNECTING:
10738                 {
10739                         trap_SP_GetStringTextString("MENUS_AWAITING_CONNECTION", sStringEdTemp, sizeof(sStringEdTemp));
10740                         s = va(/*"Awaiting connection...%i"*/sStringEdTemp, cstate.connectPacketCount);
10741                 }
10742                 break;
10743         case CA_CHALLENGING:
10744                 {
10745                         trap_SP_GetStringTextString("MENUS_AWAITING_CHALLENGE", sStringEdTemp, sizeof(sStringEdTemp));
10746                         s = va(/*"Awaiting challenge...%i"*/sStringEdTemp, cstate.connectPacketCount);
10747                 }
10748                 break;
10749         case CA_CONNECTED: {
10750                 char downloadName[MAX_INFO_VALUE];
10751 
10752                         trap_Cvar_VariableStringBuffer( "cl_downloadName", downloadName, sizeof(downloadName) );
10753                         if (*downloadName) {
10754                                 UI_DisplayDownloadInfo( downloadName, centerPoint, yStart, scale, FONT_MEDIUM );
10755                                 return;
10756                         }
10757                 }
10758                 trap_SP_GetStringTextString("MENUS_AWAITING_GAMESTATE", sStringEdTemp, sizeof(sStringEdTemp));
10759                 s = /*"Awaiting gamestate..."*/sStringEdTemp;
10760                 break;
10761         case CA_LOADING:
10762                 return;
10763         case CA_PRIMED:
10764                 return;
10765         default:
10766                 return;
10767         }
10768 
10769         if (Q_stricmp(cstate.servername,"localhost")) {
10770                 Text_PaintCenter(centerPoint, yStart + 80, scale, colorWhite, s, 0, FONT_MEDIUM);
10771         }
10772         // password required / connection rejected information goes here
10773 }

void UI_DrawHandlePic float  x,
float  y,
float  w,
float  h,
qhandle_t  hShader
 

Definition at line 400 of file ui_atoms.c.

References qhandle_t, and trap_R_DrawStretchPic().

Referenced by _UI_Init(), _UI_Refresh(), UI_DrawCenteredPic(), and UI_DrawForceStars().

00400                                                                                {
00401         float   s0;
00402         float   s1;
00403         float   t0;
00404         float   t1;
00405 
00406         if( w < 0 ) {   // flip about vertical
00407                 w  = -w;
00408                 s0 = 1;
00409                 s1 = 0;
00410         }
00411         else {
00412                 s0 = 0;
00413                 s1 = 1;
00414         }
00415 
00416         if( h < 0 ) {   // flip about horizontal
00417                 h  = -h;
00418                 t0 = 1;
00419                 t1 = 0;
00420         }
00421         else {
00422                 t0 = 0;
00423                 t1 = 1;
00424         }
00425         
00426         trap_R_DrawStretchPic( x, y, w, h, s0, t0, s1, t1, hShader );
00427 }

void UI_DrawNamedPic float  x,
float  y,
float  width,
float  height,
const char *  picname
 

Definition at line 393 of file ui_atoms.c.

References qhandle_t, trap_R_DrawStretchPic(), and trap_R_RegisterShaderNoMip().

00393                                                                                          {
00394         qhandle_t       hShader;
00395 
00396         hShader = trap_R_RegisterShaderNoMip( picname );
00397         trap_R_DrawStretchPic( x, y, width, height, 0, 0, 1, 1, hShader );
00398 }

void UI_DrawProportionalString int  x,
int  y,
const char *  str,
int  style,
vec4_t  color
 

Definition at line 603 of file cg_drawtools.c.

References CG_Text_Paint(), CG_Text_Width(), FONT_MEDIUM, FONT_SMALL, ITEM_TEXTSTYLE_BLINK, ITEM_TEXTSTYLE_SHADOWED, UI_BLINK, UI_CENTER, UI_DROPSHADOW, UI_LEFT, UI_PULSE, UI_RIGHT, UI_SMALLFONT, and vec4_t.

Referenced by CG_DrawForceSelect(), CG_DrawHUD(), CG_DrawInformation(), CG_DrawInvenSelect(), CG_DrawOldScoreboard(), and CG_DrawWeaponSelect().

00604 {
00605         // having all these different style defines (1 for UI, one for CG, and now one for the re->font stuff) 
00606         //      is dumb, but for now...
00607         //
00608         int iStyle = 0;
00609         int iMenuFont = (style & UI_SMALLFONT) ? FONT_SMALL : FONT_MEDIUM;
00610 
00611         switch (style & (UI_LEFT|UI_CENTER|UI_RIGHT))
00612         {
00613                 default:
00614                 case UI_LEFT:
00615                 {
00616                         // nada...
00617                 }
00618                 break;
00619 
00620                 case UI_CENTER:
00621                 {
00622                         x -= CG_Text_Width(str, 1.0, iMenuFont) / 2;
00623                 }
00624                 break;
00625 
00626                 case UI_RIGHT:
00627                 {
00628                         x -= CG_Text_Width(str, 1.0, iMenuFont) / 2;
00629                 }
00630                 break;
00631         }
00632 
00633         if (style & UI_DROPSHADOW)
00634         {
00635                 iStyle = ITEM_TEXTSTYLE_SHADOWED;
00636         }
00637         else
00638         if ( style & (UI_BLINK|UI_PULSE) )
00639         {
00640                 iStyle = ITEM_TEXTSTYLE_BLINK;
00641         }
00642 
00643         CG_Text_Paint(x, y, 1.0, color, str, 0, 0, iStyle, iMenuFont);
00644 }

void UI_DrawRect float  x,
float  y,
float  width,
float  height,
const float *  color
 

Definition at line 460 of file ui_atoms.c.

References NULL, trap_R_SetColor(), UI_DrawSides(), and UI_DrawTopBottom().

Referenced by UI_DrawTextBox().

00460                                                                                     {
00461         trap_R_SetColor( color );
00462 
00463   UI_DrawTopBottom(x, y, width, height);
00464   UI_DrawSides(x, y, width, height);
00465 
00466         trap_R_SetColor( NULL );
00467 }

void UI_DrawSides float  x,
float  y,
float  w,
float  h
 

Definition at line 444 of file ui_atoms.c.

References trap_R_DrawStretchPic(), uiInfo_t::uiDC, uiInfo, and displayContextDef_t::whiteShader.

Referenced by UI_DrawRect().

00444                                                       {
00445         trap_R_DrawStretchPic( x, y, 1, h, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00446         trap_R_DrawStretchPic( x + w - 1, y, 1, h, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00447 }

void UI_DrawString int  x,
int  y,
const char *  str,
int  style,
vec4_t  color
 

void UI_DrawTextBox int  x,
int  y,
int  width,
int  lines
 

Definition at line 478 of file ui_atoms.c.

References BIGCHAR_HEIGHT, BIGCHAR_WIDTH, colorBlack, colorWhite, UI_DrawRect(), and UI_FillRect().

00479 {
00480         UI_FillRect( x + BIGCHAR_WIDTH/2, y + BIGCHAR_HEIGHT/2, ( width + 1 ) * BIGCHAR_WIDTH, ( lines + 1 ) * BIGCHAR_HEIGHT, colorBlack );
00481         UI_DrawRect( x + BIGCHAR_WIDTH/2, y + BIGCHAR_HEIGHT/2, ( width + 1 ) * BIGCHAR_WIDTH, ( lines + 1 ) * BIGCHAR_HEIGHT, colorWhite );
00482 }

void UI_DrawTopBottom float  x,
float  y,
float  w,
float  h
 

Definition at line 449 of file ui_atoms.c.

References trap_R_DrawStretchPic(), uiInfo_t::uiDC, uiInfo, and displayContextDef_t::whiteShader.

Referenced by UI_DrawRect().

00449                                                           {
00450         trap_R_DrawStretchPic( x, y, w, 1, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00451         trap_R_DrawStretchPic( x, y + h - 1, w, 1, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00452 }

qboolean UI_FeederSelection float  feederID,
int  index,
itemDef_t item
 

Definition at line 9145 of file ui_main.c.

References displayContextDef_t::Assets, CHAN_LOCAL, CIN_loop, CIN_silent, mapInfo::cinematic, siegeTeam_t::classes, Com_sprintf(), uiInfo_t::currentFoundPlayerServer, serverStatus_s::currentServer, serverStatus_s::currentServerCinematic, serverStatus_s::currentServerPreview, cachedAssets_t::datapadmoveSaberSound1, cachedAssets_t::datapadmoveSaberSound2, cachedAssets_t::datapadmoveSaberSound3, cachedAssets_t::datapadmoveSaberSound4, cachedAssets_t::datapadmoveSaberSound5, cachedAssets_t::datapadmoveSaberSound6, datapadMoveTitleBaseAnims, uiInfo_t::demoIndex, serverStatus_s::displayServers, FEEDER_ALLMAPS, FEEDER_CINEMATICS, FEEDER_COLORCHOICES, FEEDER_DEMOS, FEEDER_FINDPLAYER, FEEDER_FORCECFG, FEEDER_LANGUAGES, FEEDER_MAPS, FEEDER_MODS, FEEDER_MOVES, FEEDER_MOVES_TITLES, FEEDER_PLAYER_LIST, FEEDER_PLAYER_SKIN_HEAD, FEEDER_PLAYER_SKIN_LEGS, FEEDER_PLAYER_SKIN_TORSO, FEEDER_PLAYER_SPECIES, FEEDER_Q3HEADS, FEEDER_SERVERS, FEEDER_SERVERSTATUS, FEEDER_SIEGE_BASE_CLASS, FEEDER_SIEGE_CLASS_FORCE, FEEDER_SIEGE_CLASS_INVENTORY, FEEDER_SIEGE_CLASS_WEAPONS, FEEDER_SIEGE_TEAM1, FEEDER_SIEGE_TEAM2, FEEDER_TEAM_LIST, FEEDER_XBL_ACCOUNTS, FEEDER_XBL_FRIENDS, FEEDER_XBL_PLAYERS, FEEDER_XBL_SERVERS, FORCE_LIGHTSIDE, uiInfo_t::forceConfigCount, uiInfo_t::forceConfigDarkIndexBegin, uiInfo_t::forceConfigLightIndexBegin, uiInfo_t::forceConfigSelected, forcepowerDesc, uiInfo_t::foundPlayerServerAddresses, g_siegedFeederForcedSet, g_UIClassDescriptions, g_UIGloballySelectedSiegeClass, uiInfo_t::gameTypes, gUISelectedMap, HolocronIcons, Info_ValueForKey(), vmCvar_t::integer, Item_RunScript(), itemDef_t, ItemParse_asset_model_go(), ItemParse_model_g2anim_go(), uiInfo_t::languageCountIndex, uiInfo_t::mapList, MAX_QPATH, MAX_STRING_CHARS, MDS_FORCE_JUMP, MDS_ROLL, MDS_SABER, Menu_FindItemByName(), Menu_SetFeederSelection(), Menus_FindByName(), modelDef_t, uiInfo_t::modIndex, uiInfo_t::moveAnimTime, cachedAssets_t::moveJumpSound, cachedAssets_t::moveRollSound, uiInfo_t::movesBaseAnim, uiInfo_t::movesTitleIndex, uiInfo_t::movieIndex, NULL, NUM_FORCE_POWERS, uiInfo_t::numFoundPlayerServers, uiInfo_t::playerIndex, uiInfo_t::playerSpecies, uiInfo_t::playerSpeciesIndex, uiInfo_t::previewMovie, uiInfo_t::q3HeadCount, uiInfo_t::q3HeadNames, uiInfo_t::q3SelectedHead, Q_irand(), Q_strncpyz(), qboolean, qfalse, qtrue, displayContextDef_t::realTime, uiInfo_t::serverStatus, uiInfo_t::serverStatusAddress, sfxHandle_t, siegeTeam1, siegeTeam2, strcmp(), uiInfo_t::teamIndex, trap_CIN_PlayCinematic(), trap_CIN_StopCinematic(), trap_Cvar_Set(), trap_Cvar_VariableStringBuffer(), trap_Cvar_VariableValue(), trap_LAN_GetServerInfo(), trap_R_RegisterShaderNoMip(), trap_S_StartLocalSound(), itemDef_s::typeData, ui_currentMap, ui_currentNetMap, UI_Cvar_VariableString(), UI_ForceConfigHandle(), ui_gameType, UI_LoadBestScores(), ui_mapIndex, ui_netSource, UI_SaberAttachToChar(), UI_SiegeClassNum(), UI_SiegeSetCvarsForClass(), UI_UpdateCharacterSkin(), UI_UpdateCvarsForClass(), uiInfo_t::uiDC, uiForceSide, uiInfo, and va().

Referenced by _UI_Init(), and UI_SkinColor_HandleKey().

09146 {
09147         static char info[MAX_STRING_CHARS];
09148         const int feederID = feederFloat;
09149 
09150         if (feederID == FEEDER_Q3HEADS) 
09151         {
09152                 int actual;
09153                 UI_SelectedTeamHead(index, &actual);
09154                 uiInfo.q3SelectedHead = index;
09155                 trap_Cvar_Set("ui_selectedModelIndex", va("%i", index));
09156                 index = actual;
09157                 if (index >= 0 && index < uiInfo.q3HeadCount) 
09158                 {
09159                         trap_Cvar_Set( "model", uiInfo.q3HeadNames[index]);     //standard model
09160                         trap_Cvar_Set ( "char_color_red", "255" );                      //standard colors
09161                         trap_Cvar_Set ( "char_color_green", "255" );
09162                         trap_Cvar_Set ( "char_color_blue", "255" );
09163                 }
09164         } 
09165         else if (feederID == FEEDER_MOVES) 
09166         {
09167                 itemDef_t *item;
09168                 menuDef_t *menu;
09169                 modelDef_t *modelPtr;
09170 
09171                 menu = Menus_FindByName("rulesMenu_moves");
09172 
09173                 if (menu)
09174                 {
09175                         item = (itemDef_t *) Menu_FindItemByName((menuDef_t *) menu, "character");
09176                         if (item)
09177                         {
09178                                 modelPtr = (modelDef_t*)item->typeData;
09179                                 if (modelPtr)
09180                                 {
09181                                         char modelPath[MAX_QPATH];
09182                                         int animRunLength;
09183 
09184                                         ItemParse_model_g2anim_go( item,  datapadMoveData[uiInfo.movesTitleIndex][index].anim );
09185 
09186                                         Com_sprintf( modelPath, sizeof( modelPath ), "models/players/%s/model.glm", UI_Cvar_VariableString ( "ui_char_model" ) );
09187                                         ItemParse_asset_model_go( item, modelPath, &animRunLength );
09188                                         UI_UpdateCharacterSkin();
09189 
09190                                         uiInfo.moveAnimTime = uiInfo.uiDC.realTime + animRunLength;
09191 
09192                                         if (datapadMoveData[uiInfo.movesTitleIndex][index].anim)
09193                                         {
09194 
09195                                                 // Play sound for anim
09196                                                 if (datapadMoveData[uiInfo.movesTitleIndex][index].sound == MDS_FORCE_JUMP)
09197                                                 {
09198                                                         trap_S_StartLocalSound( uiInfo.uiDC.Assets.moveJumpSound, CHAN_LOCAL );
09199                                                 }
09200                                                 else if (datapadMoveData[uiInfo.movesTitleIndex][index].sound == MDS_ROLL)
09201                                                 {
09202                                                         trap_S_StartLocalSound( uiInfo.uiDC.Assets.moveRollSound, CHAN_LOCAL );
09203                                                 }
09204                                                 else if (datapadMoveData[uiInfo.movesTitleIndex][index].sound == MDS_SABER)
09205                                                 {
09206                                                         // Randomly choose one sound
09207                                                         int soundI = Q_irand( 1, 6 );
09208                                                         sfxHandle_t *soundPtr;
09209                                                         soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound1;
09210                                                         if (soundI == 2)
09211                                                         {
09212                                                                 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound2;
09213                                                         }
09214                                                         else if (soundI == 3)
09215                                                         {
09216                                                                 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound3;
09217                                                         }
09218                                                         else if (soundI == 4)
09219                                                         {
09220                                                                 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound4;
09221                                                         }
09222                                                         else if (soundI == 5)
09223                                                         {
09224                                                                 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound5;
09225                                                         }
09226                                                         else if (soundI == 6)
09227                                                         {
09228                                                                 soundPtr = &uiInfo.uiDC.Assets.datapadmoveSaberSound6;
09229                                                         }
09230 
09231                                                         trap_S_StartLocalSound( *soundPtr, CHAN_LOCAL );
09232                                                 }
09233 
09234                                                 if (datapadMoveData[uiInfo.movesTitleIndex][index].desc)
09235                                                 {
09236                                                         trap_Cvar_Set( "ui_move_desc", datapadMoveData[uiInfo.movesTitleIndex][index].desc);
09237                                                 }
09238                                         }
09239                                         UI_SaberAttachToChar( item );
09240                                 }
09241                         }
09242                 }
09243         } 
09244         else if (feederID == FEEDER_MOVES_TITLES) 
09245         {
09246                 itemDef_t *item;
09247                 menuDef_t *menu;
09248                 modelDef_t *modelPtr;
09249 
09250                 uiInfo.movesTitleIndex = index;
09251                 uiInfo.movesBaseAnim = datapadMoveTitleBaseAnims[uiInfo.movesTitleIndex];
09252                 menu = Menus_FindByName("rulesMenu_moves");
09253 
09254                 if (menu)
09255                 {
09256                         item = (itemDef_t *) Menu_FindItemByName((menuDef_t *) menu, "character");
09257                         if (item)
09258                         {
09259                                 modelPtr = (modelDef_t*)item->typeData;
09260                                 if (modelPtr)
09261                                 {
09262                                         char modelPath[MAX_QPATH];
09263                                         int     animRunLength;
09264 
09265                                         uiInfo.movesBaseAnim = datapadMoveTitleBaseAnims[uiInfo.movesTitleIndex];
09266                                         ItemParse_model_g2anim_go( item,  uiInfo.movesBaseAnim );
09267 
09268                                         Com_sprintf( modelPath, sizeof( modelPath ), "models/players/%s/model.glm", UI_Cvar_VariableString ( "ui_char_model" ) );
09269                                         ItemParse_asset_model_go( item, modelPath, &animRunLength );
09270 
09271                                         UI_UpdateCharacterSkin();
09272 
09273                                 }
09274                         }
09275                 }
09276         }
09277         else if (feederID == FEEDER_SIEGE_TEAM1)
09278         {
09279                 if (!g_siegedFeederForcedSet)
09280                 {
09281                         g_UIGloballySelectedSiegeClass = UI_SiegeClassNum(siegeTeam1->classes[index]);
09282                         trap_Cvar_Set("ui_classDesc", g_UIClassDescriptions[g_UIGloballySelectedSiegeClass].desc);
09283 
09284                         //g_siegedFeederForcedSet = 1;
09285                         //Menu_SetFeederSelection(NULL, FEEDER_SIEGE_TEAM2, -1, NULL);
09286 
09287                         UI_SiegeSetCvarsForClass(siegeTeam1->classes[index]);
09288                 }
09289                 g_siegedFeederForcedSet = 0;
09290         }
09291         else if (feederID == FEEDER_SIEGE_TEAM2)
09292         {
09293                 if (!g_siegedFeederForcedSet)
09294                 {
09295                         g_UIGloballySelectedSiegeClass = UI_SiegeClassNum(siegeTeam2->classes[index]);
09296                         trap_Cvar_Set("ui_classDesc", g_UIClassDescriptions[g_UIGloballySelectedSiegeClass].desc);
09297 
09298                         //g_siegedFeederForcedSet = 1;
09299                         //Menu_SetFeederSelection(NULL, FEEDER_SIEGE_TEAM2, -1, NULL);
09300 
09301                         UI_SiegeSetCvarsForClass(siegeTeam2->classes[index]);
09302                 }
09303                 g_siegedFeederForcedSet = 0;
09304         }
09305         else if (feederID == FEEDER_FORCECFG) 
09306         {
09307                 int newindex = index;
09308 
09309                 if (uiForceSide == FORCE_LIGHTSIDE)
09310                 {
09311                         newindex += uiInfo.forceConfigLightIndexBegin;
09312                         if (newindex >= uiInfo.forceConfigCount)
09313                         {
09314                                 return qfalse;
09315                         }
09316                 }
09317                 else
09318                 { //else dark
09319                         newindex += uiInfo.forceConfigDarkIndexBegin;
09320                         if (newindex >= uiInfo.forceConfigCount || newindex > uiInfo.forceConfigLightIndexBegin)
09321                         { //dark gets read in before light
09322                                 return qfalse;
09323                         }
09324                 }
09325 
09326                 if (index >= 0 && index < uiInfo.forceConfigCount) 
09327                 {
09328                                 UI_ForceConfigHandle(uiInfo.forceConfigSelected, index);
09329                                 uiInfo.forceConfigSelected = index;
09330                 }
09331         } 
09332         else if (feederID == FEEDER_MAPS || feederID == FEEDER_ALLMAPS) 
09333         {
09334                 int actual, map;
09335                 const char *checkValid = NULL;
09336 
09337                 map = (feederID == FEEDER_ALLMAPS) ? ui_currentNetMap.integer : ui_currentMap.integer;
09338                 if (uiInfo.mapList[map].cinematic >= 0) {
09339                   trap_CIN_StopCinematic(uiInfo.mapList[map].cinematic);
09340                   uiInfo.mapList[map].cinematic = -1;
09341                 }
09342                 checkValid = UI_SelectedMap(index, &actual);
09343 
09344                 if (!checkValid || !checkValid[0])
09345                 { //this isn't a valid map to select, so reselect the current
09346                         index = ui_mapIndex.integer;
09347                         UI_SelectedMap(index, &actual);
09348                 }
09349 
09350                 trap_Cvar_Set("ui_mapIndex", va("%d", index));
09351                 gUISelectedMap = index;
09352                 ui_mapIndex.integer = index;
09353 
09354                 if (feederID == FEEDER_MAPS) {
09355                         ui_currentMap.integer = actual;
09356                         trap_Cvar_Set("ui_currentMap", va("%d", actual));
09357                 uiInfo.mapList[ui_currentMap.integer].cinematic = trap_CIN_PlayCinematic(va("%s.roq", uiInfo.mapList[ui_currentMap.integer].mapLoadName), 0, 0, 0, 0, (CIN_loop | CIN_silent) );
09358                         UI_LoadBestScores(uiInfo.mapList[ui_currentMap.integer].mapLoadName, uiInfo.gameTypes[ui_gameType.integer].gtEnum);
09359                         //trap_Cvar_Set("ui_opponentModel", uiInfo.mapList[ui_currentMap.integer].opponentName);
09360                         //updateOpponentModel = qtrue;
09361                 } else {
09362                         ui_currentNetMap.integer = actual;
09363                         trap_Cvar_Set("ui_currentNetMap", va("%d", actual));
09364                 uiInfo.mapList[ui_currentNetMap.integer].cinematic = trap_CIN_PlayCinematic(va("%s.roq", uiInfo.mapList[ui_currentNetMap.integer].mapLoadName), 0, 0, 0, 0, (CIN_loop | CIN_silent) );
09365                 }
09366 
09367         } else if (feederID == FEEDER_SERVERS) {
09368                 const char *mapName = NULL;
09369                 uiInfo.serverStatus.currentServer = index;
09370                 trap_LAN_GetServerInfo(ui_netSource.integer, uiInfo.serverStatus.displayServers[index], info, MAX_STRING_CHARS);
09371                 uiInfo.serverStatus.currentServerPreview = trap_R_RegisterShaderNoMip(va("levelshots/%s", Info_ValueForKey(info, "mapname")));
09372                 if (uiInfo.serverStatus.currentServerCinematic >= 0) {
09373                   trap_CIN_StopCinematic(uiInfo.serverStatus.currentServerCinematic);
09374                         uiInfo.serverStatus.currentServerCinematic = -1;
09375                 }
09376                 mapName = Info_ValueForKey(info, "mapname");
09377                 if (mapName && *mapName) {
09378                         uiInfo.serverStatus.currentServerCinematic = trap_CIN_PlayCinematic(va("%s.roq", mapName), 0, 0, 0, 0, (CIN_loop | CIN_silent) );
09379                 }
09380         } else if (feederID == FEEDER_SERVERSTATUS) {
09381                 //
09382         } else if (feederID == FEEDER_FINDPLAYER) {
09383           uiInfo.currentFoundPlayerServer = index;
09384           //
09385           if ( index < uiInfo.numFoundPlayerServers-1) {
09386                         // build a new server status for this server
09387                         Q_strncpyz(uiInfo.serverStatusAddress, uiInfo.foundPlayerServerAddresses[uiInfo.currentFoundPlayerServer], sizeof(uiInfo.serverStatusAddress));
09388                         Menu_SetFeederSelection(NULL, FEEDER_SERVERSTATUS, 0, NULL);
09389                         UI_BuildServerStatus(qtrue);
09390           }
09391         } else if (feederID == FEEDER_PLAYER_LIST) {
09392                 uiInfo.playerIndex = index;
09393         } else if (feederID == FEEDER_TEAM_LIST) {
09394                 uiInfo.teamIndex = index;
09395         } else if (feederID == FEEDER_MODS) {
09396                 uiInfo.modIndex = index;
09397         } else if (feederID == FEEDER_CINEMATICS) {
09398                 uiInfo.movieIndex = index;
09399                 if (uiInfo.previewMovie >= 0) {
09400                   trap_CIN_StopCinematic(uiInfo.previewMovie);
09401                 }
09402                 uiInfo.previewMovie = -1;
09403         } else if (feederID == FEEDER_DEMOS) {
09404                 uiInfo.demoIndex = index;
09405         }
09406         else if (feederID == FEEDER_COLORCHOICES) 
09407         {
09408                 if (index >= 0 && index < uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].ColorCount)
09409                 {
09410                         Item_RunScript(item, uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].ColorActionText[index]);
09411                 }
09412         }
09413         else if (feederID == FEEDER_PLAYER_SKIN_HEAD) 
09414         {
09415                 if (index >= 0 && index < uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinHeadCount)
09416                 {
09417                         trap_Cvar_Set("ui_char_skin_head", uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinHeadNames[index]);
09418                 }
09419         } 
09420         else if (feederID == FEEDER_PLAYER_SKIN_TORSO) 
09421         {
09422                 if (index >= 0 && index < uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinTorsoCount)
09423                 {
09424                         trap_Cvar_Set("ui_char_skin_torso", uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinTorsoNames[index]);
09425                 }
09426         } 
09427         else if (feederID == FEEDER_PLAYER_SKIN_LEGS) 
09428         {
09429                 if (index >= 0 && index < uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinLegCount)
09430                 {
09431                         trap_Cvar_Set("ui_char_skin_legs", uiInfo.playerSpecies[uiInfo.playerSpeciesIndex].SkinLegNames[index]);
09432                 }
09433         } 
09434         else if (feederID == FEEDER_PLAYER_SPECIES) 
09435         {
09436                 uiInfo.playerSpeciesIndex = index;
09437         } 
09438         else if (feederID == FEEDER_LANGUAGES) 
09439         {
09440                 uiInfo.languageCountIndex = index;
09441         } 
09442         else if (  feederID == FEEDER_SIEGE_BASE_CLASS )
09443         {
09444                 int team,baseClass; 
09445 
09446                 team = (int)trap_Cvar_VariableValue("ui_team");
09447                 baseClass = (int)trap_Cvar_VariableValue("ui_siege_class");
09448 
09449                 UI_UpdateCvarsForClass(team, baseClass, index);
09450         }
09451         else if (feederID == FEEDER_SIEGE_CLASS_WEAPONS) 
09452         {
09453 //              trap_Cvar_VariableStringBuffer( va("ui_class_weapondesc%i", index), info, sizeof(info) );
09454 //              trap_Cvar_Set( "ui_itemforceinvdesc", info );
09455         } 
09456         else if (feederID == FEEDER_SIEGE_CLASS_INVENTORY) 
09457         {
09458 //              trap_Cvar_VariableStringBuffer( va("ui_class_itemdesc%i", index), info, sizeof(info) );
09459 //              trap_Cvar_Set( "ui_itemforceinvdesc", info );
09460         } 
09461         else if (feederID == FEEDER_SIEGE_CLASS_FORCE) 
09462         {
09463                 int i;
09464 //              int validCnt = 0;
09465 
09466                 trap_Cvar_VariableStringBuffer( va("ui_class_power%i", index), info, sizeof(info) );
09467 
09468                 //count them up
09469                 for (i=0;i< NUM_FORCE_POWERS;i++)
09470                 {
09471                         if (!strcmp(HolocronIcons[i],info))
09472                         {
09473                                 trap_Cvar_Set( "ui_itemforceinvdesc", forcepowerDesc[i] );
09474                         }
09475                 }
09476         } 
09477 #ifdef _XBOX
09478         else if (feederID == FEEDER_XBL_ACCOUNTS)
09479         {
09480                 XBL_SetAccountIndex( index );
09481         }
09482         else if (feederID == FEEDER_XBL_PLAYERS)
09483         {
09484                 XBL_PL_SetPlayerIndex( index );
09485         }
09486         else if (feederID == FEEDER_XBL_FRIENDS)
09487         {
09488                 XBL_F_SetChosenFriendIndex( index );
09489         }
09490         else if (feederID == FEEDER_XBL_SERVERS)
09491         {
09492                 XBL_MM_SetChosenServerIndex( index );
09493         }
09494 #endif
09495 
09496         return qtrue;
09497 }

void UI_FillRect float  x,
float  y,
float  width,
float  height,
const float *  color
 

Definition at line 436 of file ui_atoms.c.

References NULL, trap_R_DrawStretchPic(), trap_R_SetColor(), uiInfo_t::uiDC, uiInfo, and displayContextDef_t::whiteShader.

Referenced by _UI_Init(), and UI_DrawTextBox().

00436                                                                                     {
00437         trap_R_SetColor( color );
00438 
00439         trap_R_DrawStretchPic( x, y, width, height, 0, 0, 0, 0, uiInfo.uiDC.whiteShader );
00440 
00441         trap_R_SetColor( NULL );
00442 }

void UI_ForceMenuOff void   ) 
 

const char* UI_GetArenaInfoByMap const char *  map  ) 
 

const char* UI_GetArenaInfoByNumber int  num  ) 
 

int UI_GetAwardLevel int  award  ) 
 

void UI_GetBestScore int  level,
int *  score,
int *  skill
 

char* UI_GetBotInfoByName const char *  name  ) 
 

Definition at line 308 of file ui_gameinfo.c.

References Info_ValueForKey(), name, NULL, Q_stricmp(), and ui_numBots.

00308                                               {
00309         int             n;
00310         char    *value;
00311 
00312         for ( n = 0; n < ui_numBots ; n++ ) {
00313                 value = Info_ValueForKey( ui_botInfos[n], "name" );
00314                 if ( !Q_stricmp( value, name ) ) {
00315                         return ui_botInfos[n];
00316                 }
00317         }
00318 
00319         return NULL;
00320 }

char* UI_GetBotInfoByNumber int  num  ) 
 

Definition at line 294 of file ui_gameinfo.c.

References NULL, S_COLOR_RED, trap_Print(), ui_numBots, and va().

Referenced by UI_GetBotNameByNumber().

00294                                        {
00295         if( num < 0 || num >= ui_numBots ) {
00296                 trap_Print( va( S_COLOR_RED "Invalid bot number: %i\n", num ) );
00297                 return NULL;
00298         }
00299         return ui_botInfos[num];
00300 }

char* UI_GetBotNameByNumber int  num  ) 
 

Definition at line 327 of file ui_gameinfo.c.

References Info_ValueForKey(), and UI_GetBotInfoByNumber().

00327                                        {
00328         char *info = UI_GetBotInfoByNumber(num);
00329         if (info) {
00330                 return Info_ValueForKey( info, "name" );
00331         }
00332         return "Kyle";
00333 }

int UI_GetCurrentGame void   ) 
 

int UI_GetNumArenas void   ) 
 

int UI_GetNumBots void   ) 
 

Definition at line 322 of file ui_gameinfo.c.

References ui_numBots.

00322                     {
00323         return ui_numBots;
00324 }

int UI_GetNumSPArenas void   ) 
 

int UI_GetNumSPTiers void   ) 
 

const char* UI_GetSpecialArenaInfo const char *  tag  ) 
 

void UI_GraphicsOptionsMenu void   ) 
 

void UI_InGameMenu void   ) 
 

void UI_Init void   ) 
 

void UI_InitGameinfo void   ) 
 

qboolean UI_IsFullscreen void   ) 
 

void UI_KeyEvent int  key  ) 
 

void UI_LerpColor vec4_t  a,
vec4_t  b,
vec4_t  c,
float  t
 

void UI_Load  ) 
 

Definition at line 1533 of file ui_main.c.

References uiInfo_t::inGameLoad, Menu_GetFocused(), Menus_ActivateByName(), Menus_CloseAll(), windowDef_t::name, NULL, qtrue, strcpy(), String_Init(), UI_Cvar_VariableString(), UI_LoadArenas(), UI_LoadBots(), UI_LoadMenus(), uiInfo, and menuDef_t::window.

Referenced by UI_ConsoleCommand().

01533                {
01534         char *menuSet;
01535         char lastName[1024];
01536         menuDef_t *menu = Menu_GetFocused();
01537 
01538         if (menu && menu->window.name) {
01539                 strcpy(lastName, menu->window.name);
01540         }
01541         else
01542         {
01543                 lastName[0] = 0;
01544         }
01545 
01546         if (uiInfo.inGameLoad)
01547         {
01548                 menuSet= "ui/jampingame.txt";
01549         }
01550         else
01551         {
01552                 menuSet= UI_Cvar_VariableString("ui_menuFilesMP");
01553         }
01554         if (menuSet == NULL || menuSet[0] == '\0') {
01555                 menuSet = "ui/jampmenus.txt";
01556         }
01557 
01558         String_Init();
01559 
01560 #ifdef PRE_RELEASE_TADEMO
01561         UI_ParseGameInfo("demogameinfo.txt");
01562 #else
01563         UI_ParseGameInfo("ui/jamp/gameinfo.txt");
01564 #endif
01565         UI_LoadArenas();
01566         UI_LoadBots();
01567 
01568         UI_LoadMenus(menuSet, qtrue);
01569         Menus_CloseAll();
01570         Menus_ActivateByName(lastName);
01571 
01572 }

void UI_LoadArenas void   ) 
 

Definition at line 125 of file ui_gameinfo.c.

References GT_CTF, GT_CTY, GT_DUEL, GT_FFA, GT_HOLOCRON, GT_JEDIMASTER, GT_POWERDUEL, GT_SIEGE, Info_ValueForKey(), uiInfo_t::mapCount, uiInfo_t::mapList, MAX_MAPS, S_COLOR_YELLOW, strcat(), strcpy(), String_Alloc(), strlen(), strstr(), trap_FS_GetFileList(), trap_Print(), UI_OutOfMemory(), uiInfo, and va().

Referenced by UI_Load().

00125                            {
00126         int                     numdirs;
00127         char            filename[128];
00128         char            dirlist[1024];
00129         char*           dirptr;
00130         int                     i, n;
00131         int                     dirlen;
00132         char            *type;
00133 
00134         ui_numArenas = 0;
00135         uiInfo.mapCount = 0;
00136 
00137         // get all arenas from .arena files
00138         numdirs = trap_FS_GetFileList("scripts", ".arena", dirlist, 1024 );
00139         dirptr  = dirlist;
00140         for (i = 0; i < numdirs; i++, dirptr += dirlen+1) {
00141                 dirlen = strlen(dirptr);
00142                 strcpy(filename, "scripts/");
00143                 strcat(filename, dirptr);
00144                 UI_LoadArenasFromFile(filename);
00145         }
00146 //      trap_Print( va( "%i arenas parsed\n", ui_numArenas ) );
00147         if (UI_OutOfMemory()) {
00148                 trap_Print(S_COLOR_YELLOW"WARNING: not anough memory in pool to load all arenas\n");
00149         }
00150 
00151         for( n = 0; n < ui_numArenas; n++ ) {
00152                 // determine type
00153 
00154                 uiInfo.mapList[uiInfo.mapCount].cinematic = -1;
00155                 uiInfo.mapList[uiInfo.mapCount].mapLoadName = String_Alloc(Info_ValueForKey(ui_arenaInfos[n], "map"));
00156                 uiInfo.mapList[uiInfo.mapCount].mapName = String_Alloc(Info_ValueForKey(ui_arenaInfos[n], "longname"));
00157                 uiInfo.mapList[uiInfo.mapCount].levelShot = -1;
00158                 uiInfo.mapList[uiInfo.mapCount].imageName = String_Alloc(va("levelshots/%s", uiInfo.mapList[uiInfo.mapCount].mapLoadName));
00159                 uiInfo.mapList[uiInfo.mapCount].typeBits = 0;
00160 
00161                 type = Info_ValueForKey( ui_arenaInfos[n], "type" );
00162                 // if no type specified, it will be treated as "ffa"
00163                 if( *type ) {
00164                         if( strstr( type, "ffa" ) ) {
00165                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_FFA);
00166                         }
00167                         if( strstr( type, "holocron" ) ) {
00168                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_HOLOCRON);
00169                         }
00170                         if( strstr( type, "jedimaster" ) ) {
00171                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_JEDIMASTER);
00172                         }
00173                         if( strstr( type, "duel" ) ) {
00174                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_DUEL);
00175                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_POWERDUEL);
00176                         }
00177                         if( strstr( type, "powerduel" ) ) {
00178                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_DUEL);
00179                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_POWERDUEL);
00180                         }
00181                         if( strstr( type, "siege" ) ) {
00182                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_SIEGE);
00183                         }
00184                         if( strstr( type, "ctf" ) ) {
00185                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_CTF);
00186                         }
00187                         if( strstr( type, "cty" ) ) {
00188                                 uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_CTY);
00189                         }
00190                 } else {
00191                         uiInfo.mapList[uiInfo.mapCount].typeBits |= (1 << GT_FFA);
00192                 }
00193 
00194                 uiInfo.mapCount++;
00195                 if (uiInfo.mapCount >= MAX_MAPS) {
00196                         break;
00197                 }
00198         }
00199 }

void UI_LoadBestScores const char *  map,
int  game
 

Definition at line 118 of file ui_atoms.c.

References Com_sprintf(), uiInfo_t::demoAvailable, fileHandle_t, FS_READ, MAX_QPATH, memset(), postGameInfo_t, qfalse, qtrue, trap_Cvar_VariableValue(), trap_FS_FCloseFile(), trap_FS_FOpenFile(), trap_FS_Read(), UI_SetBestScores(), and uiInfo.

Referenced by _UI_Init(), and UI_FeederSelection().

00118                                                   {
00119         char            fileName[MAX_QPATH];
00120         fileHandle_t f;
00121         postGameInfo_t newInfo;
00122         memset(&newInfo, 0, sizeof(postGameInfo_t));
00123         Com_sprintf(fileName, MAX_QPATH, "games/%s_%i.game", map, game);
00124         if (trap_FS_FOpenFile(fileName, &f, FS_READ) >= 0) {
00125                 int size = 0;
00126                 trap_FS_Read(&size, sizeof(int), f);
00127                 if (size == sizeof(postGameInfo_t)) {
00128                         trap_FS_Read(&newInfo, sizeof(postGameInfo_t), f);
00129                 }
00130                 trap_FS_FCloseFile(f);
00131         }
00132         UI_SetBestScores(&newInfo, qfalse);
00133 
00134         Com_sprintf(fileName, MAX_QPATH, "demos/%s_%d.dm_%d", map, game, (int)trap_Cvar_VariableValue("protocol"));
00135         uiInfo.demoAvailable = qfalse;
00136         if (trap_FS_FOpenFile(fileName, &f, FS_READ) >= 0) {
00137                 uiInfo.demoAvailable = qtrue;
00138                 trap_FS_FCloseFile(f);
00139         } 
00140 }

void UI_LoadBots void   ) 
 

Definition at line 257 of file ui_gameinfo.c.

References CVAR_INIT, CVAR_ROM, strcat(), strcpy(), vmCvar_t::string, strlen(), trap_Cvar_Register(), trap_FS_GetFileList(), and ui_numBots.

Referenced by _UI_Init(), and UI_Load().

00257                          {
00258         vmCvar_t        botsFile;
00259         int                     numdirs;
00260         char            filename[128];
00261         char            dirlist[1024];
00262         char*           dirptr;
00263         int                     i;
00264         int                     dirlen;
00265 
00266         ui_numBots = 0;
00267 
00268         trap_Cvar_Register( &botsFile, "g_botsFile", "", CVAR_INIT|CVAR_ROM );
00269         if( *botsFile.string ) {
00270                 UI_LoadBotsFromFile(botsFile.string);
00271         }
00272         else {
00273                 UI_LoadBotsFromFile("botfiles/bots.txt");
00274         }
00275 
00276         // get all bots from .bot files
00277         numdirs = trap_FS_GetFileList("scripts", ".bot", dirlist, 1024 );
00278         dirptr  = dirlist;
00279         for (i = 0; i < numdirs; i++, dirptr += dirlen+1) {
00280                 dirlen = strlen(dirptr);
00281                 strcpy(filename, "scripts/");
00282                 strcat(filename, dirptr);
00283                 UI_LoadBotsFromFile(filename);
00284         }
00285 //      trap_Print( va( "%i bots parsed\n", ui_numBots ) );
00286 }

void UI_LoadConfig_Cache void   ) 
 

void UI_LoadConfigMenu void   ) 
 

void UI_LoadForceConfig_List void   ) 
 

Definition at line 9734 of file ui_main.c.

References Com_sprintf(), COM_StripExtension(), uiInfo_t::forceConfigCount, uiInfo_t::forceConfigDarkIndexBegin, uiInfo_t::forceConfigLightIndexBegin, uiInfo_t::forceConfigNames, uiInfo_t::forceConfigSide, MAX_FORCE_CONFIGS, NULL, qboolean, qfalse, qtrue, strlen(), trap_FS_GetFileList(), and uiInfo.

Referenced by _UI_Init(), and UI_SaveForceTemplate().

09735 {
09736         int                     numfiles = 0;
09737         char            filelist[2048];
09738         char            configname[128];
09739         char            *fileptr = NULL;
09740         int                     j = 0;
09741         int                     filelen = 0;
09742         qboolean        lightSearch = qfalse;
09743 
09744         uiInfo.forceConfigCount = 0;
09745         Com_sprintf( uiInfo.forceConfigNames[uiInfo.forceConfigCount], sizeof(uiInfo.forceConfigNames[uiInfo.forceConfigCount]), "Custom");
09746         uiInfo.forceConfigCount++;
09747         //Always reserve index 0 as the "custom" config
09748 
09749 nextSearch:
09750         if (lightSearch)
09751         { //search light side folder
09752                 numfiles = trap_FS_GetFileList("forcecfg/light", "fcf", filelist, 2048 );
09753                 uiInfo.forceConfigLightIndexBegin = uiInfo.forceConfigCount-1;
09754         }
09755         else
09756         { //search dark side folder
09757                 numfiles = trap_FS_GetFileList("forcecfg/dark", "fcf", filelist, 2048 );
09758                 uiInfo.forceConfigDarkIndexBegin = uiInfo.forceConfigCount-1;
09759         }
09760 
09761         fileptr = filelist;
09762 
09763         for (j=0; j<numfiles && uiInfo.forceConfigCount < MAX_FORCE_CONFIGS;j++,fileptr+=filelen+1)
09764         {
09765                 filelen = strlen(fileptr);
09766                 COM_StripExtension(fileptr, configname);
09767 
09768                 if (lightSearch)
09769                 {
09770                         uiInfo.forceConfigSide[uiInfo.forceConfigCount] = qtrue; //light side config
09771                 }
09772                 else
09773                 {
09774                         uiInfo.forceConfigSide[uiInfo.forceConfigCount] = qfalse; //dark side config
09775                 }
09776 
09777                 Com_sprintf( uiInfo.forceConfigNames[uiInfo.forceConfigCount], sizeof(uiInfo.forceConfigNames[uiInfo.forceConfigCount]), configname);
09778                 uiInfo.forceConfigCount++;
09779         }
09780 
09781         if (!lightSearch)
09782         {
09783                 lightSearch = qtrue;
09784                 goto nextSearch;
09785         }
09786 }

void UI_LoadMenus const char *  menuFile,
qboolean  reset
 

Definition at line 1484 of file ui_main.c.

References Com_Printf(), Load_Menu(), Menu_Reset(), pc_token_t, Q_stricmp(), S_COLOR_RED, S_COLOR_YELLOW, pc_token_s::string, trap_Error(), trap_Milliseconds(), trap_PC_FreeSource(), trap_PC_LoadGlobalDefines(), trap_PC_LoadSource(), trap_PC_ReadToken(), trap_PC_RemoveAllGlobalDefines(), and va().

Referenced by _UI_Init(), UI_Load(), and UI_LoadNonIngame().

01484                                                         {
01485         pc_token_t token;
01486         int handle;
01487         int start;
01488 
01489         start = trap_Milliseconds();
01490 
01491         trap_PC_LoadGlobalDefines ( "ui/jamp/menudef.h" );
01492 
01493         handle = trap_PC_LoadSource( menuFile );
01494         if (!handle) {
01495                 Com_Printf( S_COLOR_YELLOW "menu file not found: %s, using default\n", menuFile );
01496                 handle = trap_PC_LoadSource( "ui/jampmenus.txt" );
01497                 if (!handle) {
01498                         trap_Error( va( S_COLOR_RED "default menu file not found: ui/menus.txt, unable to continue!\n", menuFile ) );
01499                 }
01500         }
01501 
01502         if (reset) {
01503                 Menu_Reset();
01504         }
01505 
01506         while ( 1 ) {
01507                 if (!trap_PC_ReadToken(handle, &token))
01508                         break;
01509                 if( token.string[0] == 0 || token.string[0] == '}') {
01510                         break;
01511                 }
01512 
01513                 if ( token.string[0] == '}' ) {
01514                         break;
01515                 }
01516 
01517                 if (Q_stricmp(token.string, "loadmenu") == 0) {
01518                         if (Load_Menu(handle)) {
01519                                 continue;
01520                         } else {
01521                                 break;
01522                         }
01523                 }
01524         }
01525 
01526 //      Com_Printf("UI menu load time = %d milli seconds\n", trap_Milliseconds() - start);
01527 
01528         trap_PC_FreeSource( handle );
01529 
01530         trap_PC_RemoveAllGlobalDefines ( );
01531 }

void UI_LogAwardData int  award,
int  data
 

void UI_LoginMenu void   ) 
 

void UI_MainMenu void   ) 
 

void UI_ModsMenu void   ) 
 

void UI_ModsMenu_Cache void   ) 
 

void UI_MouseEvent int  dx,
int  dy
 

void UI_NetworkOptionsMenu void   ) 
 

void UI_NetworkOptionsMenu_Cache void   ) 
 

void UI_NewGame void   ) 
 

void UI_PlayerModelMenu void   ) 
 

void UI_PlayerSettingsMenu void   ) 
 

void UI_PopMenu void   ) 
 

void UI_PreferencesMenu void   ) 
 

float UI_ProportionalSizeScale int  style  ) 
 

int UI_ProportionalStringWidth const char *  str  ) 
 

void UI_PushMenu menuframework_s menu  ) 
 

void UI_RankStatusMenu void   ) 
 

void UI_Refresh int  realtime  ) 
 

void UI_RegisterCvars void   ) 
 

Definition at line 11043 of file ui_main.c.

References trap_Cvar_Register().

Referenced by _UI_Init().

11043                               {
11044         int                     i;
11045         cvarTable_t     *cv;
11046 
11047         for ( i = 0, cv = cvarTable ; i < cvarTableSize ; i++, cv++ ) {
11048                 trap_Cvar_Register( cv->vmCvar, cv->cvarName, cv->defaultString, cv->cvarFlags );
11049         }
11050 }

void UI_RemoveBots_Cache void   ) 
 

void UI_RemoveBotsMenu void   ) 
 

void UI_Report  ) 
 

Definition at line 1404 of file ui_main.c.

References String_Report().

Referenced by UI_ConsoleCommand().

01404                  {
01405   String_Report();
01406   //Font_Report();
01407 
01408 }

void UI_SaveConfigMenu void   ) 
 

void UI_SaveConfigMenu_Cache void   ) 
 

void UI_ServerInfoMenu void   ) 
 

void UI_SetActiveMenu uiMenuCommand_t  menu  ) 
 

void UI_SetBestScore int  level,
int  score
 

void UI_SetColor const float *  rgba  ) 
 

Definition at line 469 of file ui_atoms.c.

References trap_R_SetColor().

Referenced by _UI_Init(), and _UI_Refresh().

00469                                       {
00470         trap_R_SetColor( rgba );
00471 }

void UI_SetupMenu void   ) 
 

void UI_SetupMenu_Cache void   ) 
 

void UI_ShowPostGame qboolean  newHigh  ) 
 

Definition at line 895 of file ui_main.c.

References _UI_SetActiveMenu(), uiInfo_t::soundHighScore, trap_Cvar_Set(), uiInfo, and UIMENU_POSTGAME.

Referenced by UI_ConsoleCommand().

00895                                        {
00896         trap_Cvar_Set ("cg_cameraOrbit", "0");
00897         trap_Cvar_Set("cg_thirdPerson", "0");
00898         trap_Cvar_Set( "sv_killserver", "1" );
00899         uiInfo.soundHighScore = newHigh;
00900   _UI_SetActiveMenu(UIMENU_POSTGAME);
00901 }

qboolean UI_ShowTierVideo int  tier  ) 
 

void UI_Shutdown void   ) 
 

Definition at line 389 of file ui_atoms.c.

00389                          {
00390 }

void UI_SignupMenu void   ) 
 

void UI_SoundOptionsMenu void   ) 
 

void UI_SoundOptionsMenu_Cache void   ) 
 

void UI_SPArena_Start const char *  arenaInfo  ) 
 

void UI_SpecifyLeagueMenu void   ) 
 

void UI_SpecifyServerMenu void   ) 
 

void UI_SPLevelMenu void   ) 
 

void UI_SPLevelMenu_Cache void   ) 
 

void UI_SPLevelMenu_f void   ) 
 

void UI_SPLevelMenu_ReInit void   ) 
 

void UI_SPPostgameMenu_Cache void   ) 
 

void UI_SPPostgameMenu_f void   ) 
 

void UI_SPSkillMenu const char *  arenaInfo  ) 
 

void UI_SPSkillMenu_Cache void   ) 
 

void UI_SPUnlock_f void   ) 
 

void UI_SPUnlockMedals_f void   ) 
 

void UI_StartDemoLoop void   ) 
 

Definition at line 59 of file ui_atoms.c.

References EXEC_APPEND, and trap_Cmd_ExecuteText().

00059                               {
00060         trap_Cmd_ExecuteText( EXEC_APPEND, "d1\n" );
00061 }

void UI_StartServerMenu qboolean  multiplayer  ) 
 

void UI_TeamMainMenu void   ) 
 

void UI_TeamOrdersMenu void   ) 
 

void UI_TeamOrdersMenu_Cache void   ) 
 

void UI_TeamOrdersMenu_f void   ) 
 

int UI_TierCompleted int  levelWon  ) 
 

void UI_UpdateCvars void   ) 
 

Definition at line 11057 of file ui_main.c.

References trap_Cvar_Update().

Referenced by _UI_Refresh().

11057                             {
11058         int                     i;
11059         cvarTable_t     *cv;
11060 
11061         for ( i = 0, cv = cvarTable ; i < cvarTableSize ; i++, cv++ ) {
11062                 trap_Cvar_Update( cv->vmCvar );
11063         }
11064 }

void UI_UpdateScreen void   ) 
 

Definition at line 473 of file ui_atoms.c.

References trap_UpdateScreen().

00473                              {
00474         trap_UpdateScreen();
00475 }


Variable Documentation

vec4_t color_black
 

Definition at line 279 of file ui_local.h.

vec4_t color_blue
 

Definition at line 282 of file ui_local.h.

vec4_t color_dim
 

Definition at line 285 of file ui_local.h.

vec4_t color_orange
 

Definition at line 283 of file ui_local.h.

vec4_t color_red
 

Definition at line 284 of file ui_local.h.

vec4_t color_white
 

Definition at line 280 of file ui_local.h.

vec4_t color_yellow
 

Definition at line 281 of file ui_local.h.

vec4_t list_color
 

Definition at line 287 of file ui_local.h.

vec4_t listbar_color
 

Definition at line 288 of file ui_local.h.

qboolean m_entersound
 

Definition at line 880 of file ui_local.h.

vec4_t menu_black_color
 

Definition at line 277 of file ui_local.h.

sfxHandle_t menu_buzz_sound
 

Definition at line 269 of file ui_local.h.

vec4_t menu_dark_color
 

Definition at line 274 of file ui_local.h.

vec4_t menu_dim_color
 

Definition at line 278 of file ui_local.h.

vec4_t menu_grayed_color
 

Definition at line 273 of file ui_local.h.

vec4_t menu_highlight_color
 

Definition at line 275 of file ui_local.h.

sfxHandle_t menu_in_sound
 

Definition at line 266 of file ui_local.h.

sfxHandle_t menu_move_sound
 

Definition at line 267 of file ui_local.h.

sfxHandle_t menu_null_sound
 

Definition at line 270 of file ui_local.h.

sfxHandle_t menu_out_sound
 

Definition at line 268 of file ui_local.h.

vec4_t menu_red_color
 

Definition at line 276 of file ui_local.h.

vec4_t menu_text_color
 

Definition at line 272 of file ui_local.h.

vec4_t name_color
 

Definition at line 286 of file ui_local.h.

vec4_t text_color_disabled
 

Definition at line 289 of file ui_local.h.

vec4_t text_color_highlight
 

Definition at line 291 of file ui_local.h.

vec4_t text_color_normal
 

Definition at line 290 of file ui_local.h.

vmCvar_t ui_actualNetGameType
 

Definition at line 45 of file ui_local.h.

vmCvar_t ui_arenasFile
 

Definition at line 28 of file ui_local.h.

vmCvar_t ui_botsFile
 

Definition at line 29 of file ui_local.h.

vmCvar_t ui_browserGameType
 

Definition at line 32 of file ui_local.h.

vmCvar_t ui_browserMaster
 

Definition at line 31 of file ui_local.h.

vmCvar_t ui_browserShowEmpty
 

Definition at line 35 of file ui_local.h.

vmCvar_t ui_browserShowFull
 

Definition at line 34 of file ui_local.h.

vmCvar_t ui_browserSortKey
 

Definition at line 33 of file ui_local.h.

vmCvar_t ui_bypassMainMenuLoad
 

Definition at line 88 of file ui_local.h.

Referenced by _UI_Init().

vmCvar_t ui_captureLimit
 

Definition at line 41 of file ui_local.h.

vmCvar_t ui_ctf_capturelimit
 

Definition at line 24 of file ui_local.h.

vmCvar_t ui_ctf_friendly
 

Definition at line 26 of file ui_local.h.

vmCvar_t ui_ctf_timelimit
 

Definition at line 25 of file ui_local.h.

vmCvar_t ui_currentMap
 

Definition at line 61 of file ui_local.h.

Referenced by _UI_Init(), and UI_FeederSelection().

vmCvar_t ui_currentNetMap
 

Definition at line 62 of file ui_local.h.

Referenced by UI_FeederSelection().

vmCvar_t ui_currentOpponent
 

Definition at line 64 of file ui_local.h.

vmCvar_t ui_dedicated
 

Definition at line 58 of file ui_local.h.

vmCvar_t ui_drawCrosshair
 

Definition at line 37 of file ui_local.h.

vmCvar_t ui_drawCrosshairNames
 

Definition at line 38 of file ui_local.h.

vmCvar_t ui_ffa_fraglimit
 

Definition at line 15 of file ui_local.h.

vmCvar_t ui_ffa_timelimit
 

Definition at line 16 of file ui_local.h.

vmCvar_t ui_fragLimit
 

Definition at line 42 of file ui_local.h.

vmCvar_t ui_gameType
 

Definition at line 43 of file ui_local.h.

Referenced by _UI_Init(), and UI_FeederSelection().

vmCvar_t ui_joinGameType
 

Definition at line 46 of file ui_local.h.

vmCvar_t ui_lastServerRefresh_0
 

Definition at line 67 of file ui_local.h.

vmCvar_t ui_lastServerRefresh_1
 

Definition at line 68 of file ui_local.h.

vmCvar_t ui_lastServerRefresh_2
 

Definition at line 69 of file ui_local.h.

vmCvar_t ui_lastServerRefresh_3
 

Definition at line 70 of file ui_local.h.

vmCvar_t ui_mapIndex
 

Definition at line 63 of file ui_local.h.

Referenced by UI_FeederSelection().

vmCvar_t ui_marks
 

Definition at line 39 of file ui_local.h.

char* ui_medalNames[]
 

Definition at line 293 of file ui_local.h.

char* ui_medalPicNames[]
 

Definition at line 294 of file ui_local.h.

char* ui_medalSounds[]
 

Definition at line 295 of file ui_local.h.

vmCvar_t ui_menuFiles
 

Definition at line 60 of file ui_local.h.

vmCvar_t ui_netGameType
 

Definition at line 44 of file ui_local.h.

Referenced by _UI_Init(), UI_ClampMaxPlayers(), and UpdateBotButtons().

vmCvar_t ui_netSource
 

Definition at line 56 of file ui_local.h.

Referenced by UI_FeederSelection().

vmCvar_t ui_opponentName
 

Definition at line 59 of file ui_local.h.

vmCvar_t ui_scoreAccuracy
 

Definition at line 72 of file ui_local.h.

vmCvar_t ui_scoreAssists
 

Definition at line 76 of file ui_local.h.

vmCvar_t ui_scoreBase
 

Definition at line 81 of file ui_local.h.

vmCvar_t ui_scoreDefends
 

Definition at line 75 of file ui_local.h.

vmCvar_t ui_scoreExcellents
 

Definition at line 74 of file ui_local.h.

vmCvar_t ui_scoreGauntlets
 

Definition at line 77 of file ui_local.h.

vmCvar_t ui_scoreImpressives
 

Definition at line 73 of file ui_local.h.

vmCvar_t ui_scorePerfect
 

Definition at line 79 of file ui_local.h.

vmCvar_t ui_scoreScore
 

Definition at line 78 of file ui_local.h.

vmCvar_t ui_scoreShutoutBonus
 

Definition at line 84 of file ui_local.h.

vmCvar_t ui_scoreSkillBonus
 

Definition at line 83 of file ui_local.h.

vmCvar_t ui_scoreTeam
 

Definition at line 80 of file ui_local.h.

vmCvar_t ui_scoreTime
 

Definition at line 85 of file ui_local.h.

vmCvar_t ui_scoreTimeBonus
 

Definition at line 82 of file ui_local.h.

vmCvar_t ui_selectedModelIndex
 

Definition at line 18 of file ui_local.h.

vmCvar_t ui_selectedPlayer
 

Definition at line 65 of file ui_local.h.

vmCvar_t ui_selectedPlayerName
 

Definition at line 66 of file ui_local.h.

vmCvar_t ui_serverFilterType
 

Definition at line 57 of file ui_local.h.

vmCvar_t ui_serverStatusTimeOut
 

Definition at line 86 of file ui_local.h.

vmCvar_t ui_singlePlayerActive
 

Definition at line 71 of file ui_local.h.

Referenced by _UI_SetActiveMenu().

vmCvar_t ui_team_fraglimit
 

Definition at line 20 of file ui_local.h.

vmCvar_t ui_team_friendly
 

Definition at line 22 of file ui_local.h.

vmCvar_t ui_team_timelimit
 

Definition at line 21 of file ui_local.h.

uiInfo_t uiInfo
 

Definition at line 843 of file ui_local.h.

Referenced by _UI_DrawSides(), _UI_DrawTopBottom(), _UI_Init(), _UI_MouseEvent(), _UI_Refresh(), _UI_SetActiveMenu(), Asset_Parse(), AssetCache(), Item_Model_Paint(), ItemParse_cvarStrList(), MenuFontToHandle(), UI_ClampMaxPlayers(), UI_ConsoleCommand(), UI_CursorInRect(), UI_DrawSides(), UI_DrawTopBottom(), UI_FeederSelection(), UI_FillRect(), UI_ForceConfigHandle(), UI_GetSaberForMenu(), UI_Load(), UI_LoadArenas(), UI_LoadBestScores(), UI_LoadForceConfig_List(), UI_LoadNonIngame(), UI_SaberAttachToChar(), UI_SaberDrawBlade(), UI_SaberDrawBlades(), UI_SaveForceTemplate(), UI_ServersSort(), UI_ShowPostGame(), UI_SkinColor_HandleKey(), UI_TranslateFCFIndex(), UpdateBotButtons(), and UpdateForceStatus().

uiStatic_t uis
 

Definition at line 882 of file ui_local.h.

sfxHandle_t weaponChangeSound
 

Definition at line 271 of file ui_local.h.