Go to the source code of this file.
Defines | |
#define | ACTOR_HAND_CHAR_RIGHT (char)'r' |
#define | ACTOR_HAND_CHAR_LEFT (char)'l' |
#define | ACTOR_GET_HAND_CHAR(hand) ((hand) == ACTOR_HAND_LEFT ? ACTOR_HAND_CHAR_LEFT : ACTOR_HAND_CHAR_RIGHT) |
#define | ACTOR_GET_HAND_INDEX(hand) ((hand) == ACTOR_HAND_CHAR_LEFT ? ACTOR_HAND_LEFT : ACTOR_HAND_RIGHT) |
Functions | |
void | HUD_DisplayFiremodes (const le_t *actor, actorHands_t hand, qboolean firemodesChangeDisplay) |
void | HUD_HideFiremodes (void) |
Makes all entries of the firemode lists invisible. | |
void | HUD_InitStartup (void) |
void | HUD_DisplayMessage (const char *text) |
Displays a message on the hud. | |
void | HUD_Update (void) |
Updates console vars for an actor. | |
void | HUD_UpdateCursor (void) |
Updates the cursor texts when in battlescape. | |
Variables | |
cvar_t * | cl_worldlevel |
#define ACTOR_GET_HAND_CHAR | ( | hand | ) | ((hand) == ACTOR_HAND_LEFT ? ACTOR_HAND_CHAR_LEFT : ACTOR_HAND_CHAR_RIGHT) |
[in] | hand | Hand index (ACTOR_HAND_RIGHT, ACTOR_HAND_LEFT) |
Definition at line 33 of file cl_hud.h.
Referenced by HUD_DisplayFiremodeEntry().
#define ACTOR_GET_HAND_INDEX | ( | hand | ) | ((hand) == ACTOR_HAND_CHAR_LEFT ? ACTOR_HAND_LEFT : ACTOR_HAND_RIGHT) |
[in] | hand | Hand index (ACTOR_HAND_CHAR_RIGHT, ACTOR_HAND_CHAR_LEFT) |
Definition at line 35 of file cl_hud.h.
Referenced by HUD_DisplayFiremodes_f(), HUD_FireWeapon_f(), HUD_SelectReactionFiremode_f(), and HUD_SwitchFiremodeList_f().
void HUD_DisplayFiremodes | ( | const le_t * | actor, | |
actorHands_t | hand, | |||
qboolean | firemodesChangeDisplay | |||
) |
< Not our turn
Definition at line 463 of file cl_hud.c.
References ACTOR_HAND_RIGHT, cl, CL_ActorGetChr(), cls, Com_DPrintf(), DEBUG_CLIENT, HUD_DisplayFiremodeEntry(), HUD_GetFireDefinitionForHand(), HUD_HideFiremodes(), i, MAX_FIREDEFS_PER_WEAPON, fireDef_s::obj, qtrue, client_static_s::team, visibleFiremodeListLeft, visibleFiremodeListRight, and fireDef_s::weapFdsIdx.
Referenced by CL_ActorReactionFireChange(), HUD_DisplayFiremodes_f(), and HUD_SwitchFiremodeList_f().
void HUD_DisplayMessage | ( | const char * | text | ) |
Displays a message on the hud.
[in] | text | text is already translated here |
Definition at line 119 of file cl_hud.c.
References cvar_s::integer, mn_hud, cvar_s::string, and UI_DisplayNotice().
Referenced by CL_ActorAppear(), CL_ActorCheckAction(), CL_ActorDie(), CL_ActorReload(), CL_ActorRevitalised(), CL_DoEndRound(), CL_ParseServerMessage(), GAME_MP_EndRoundAnnounce(), HUD_CheckReload(), HUD_CheckShooting(), HUD_FireWeapon_f(), and HUD_UpdateActorFireMode().
void HUD_HideFiremodes | ( | void | ) |
Makes all entries of the firemode lists invisible.
Definition at line 184 of file cl_hud.c.
References qfalse, UI_ExecuteConfunc(), visibleFiremodeListLeft, and visibleFiremodeListRight.
Referenced by CL_ActorSelect(), HUD_DisplayFiremodes(), and HUD_FireWeapon_f().
void HUD_InitStartup | ( | void | ) |
Definition at line 1439 of file cl_hud.c.
References _, CL_CvarWorldLevel(), Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), Cvar_RegisterChangeListener(), Cvar_SetCheckFunction(), HUD_ActorGetCvarData_f(), HUD_ActorSelectionChangeListener(), HUD_DisplayFiremodes_f(), HUD_InitCallbacks(), HUD_LeftHandChangeListener(), HUD_PopupFiremodeReservation_f(), HUD_RemainingTUs_f(), HUD_RightHandChangeListener(), HUD_SelectReactionFiremode_f(), HUD_ShotReserve_f(), HUD_SwitchFiremodeList_f(), HUD_TUChangeListener(), cvar_s::modified, and qfalse.
Referenced by CL_InitLocal().
void HUD_Update | ( | void | ) |
Updates console vars for an actor.
This function updates the cvars for the hud (battlefield) unlike CL_ActorCvars and CL_UGVCvars which updates them for displaying the data in the menu system
Definition at line 1326 of file cl_hud.c.
References ca_active, cl, cls, Cvar_Set(), Cvar_SetValue(), HUD_UpdateActor(), HUD_UpdateAllActors(), i, cvar_s::integer, cvar_s::modified, PATHFINDING_HEIGHT, qfalse, selActor, client_static_s::state, TEXT_STANDARD, UI_ExecuteConfunc(), and UI_RegisterText().
Referenced by CL_SlowFrame().
void HUD_UpdateCursor | ( | void | ) |
Updates the cursor texts when in battlescape.
Definition at line 930 of file cl_hud.c.
References cl_map_debug, image_s::height, HUD_DrawMouseCursorText(), cvar_s::integer, it_pic, LE_IsCrouched, LONGLINES_WRAP, MAPDEBUG_TEXT, mousePosX, mousePosY, R_DrawImage(), R_FindImage(), R_FontTextSize(), selActor, le_s::state, STATE_REACTION, STATE_REACTION_MANY, STATE_REACTION_ONCE, TEXT_MOUSECURSOR_BOTTOM, TEXT_MOUSECURSOR_LEFT, TEXT_MOUSECURSOR_PLAYERNAMES, TEXT_MOUSECURSOR_RIGHT, TEXT_MOUSECURSOR_TOP, UI_GetText(), UI_ResetData(), viddef, viddef_t::virtualWidth, and image_s::width.
Referenced by SCR_DrawCursor().
Definition at line 49 of file cl_hud.c.
Referenced by CL_ActorMouseTrace(), CL_ActorMoveMouse(), CL_ActorVis(), CL_AddPathing(), CL_AddTargeting(), CL_CameraMove(), CL_LevelDown_f(), CL_LevelUp_f(), CL_ParticleRun2(), CL_StartGame(), CL_ViewUpdateRenderData(), LE_AddToScene(), LE_PlayFootStepSound(), LM_AddToSceneOrder(), UI_RadarNodeDraw(), and UI_RadarNodeGetActorColor().