|
UFO: Alien Invasion
|
HUD related routines. More...

Go to the source code of this file.
Macros | |
| #define | ACTOR_HAND_CHAR_RIGHT (char)'r' |
| #define | ACTOR_HAND_CHAR_LEFT (char)'l' |
| #define | ACTOR_GET_HAND_CHAR(hand) |
| #define | ACTOR_GET_HAND_INDEX(hand) |
Functions | |
| void | HUD_InitStartup (void) |
| void | HUD_InitUI (const char *optionWindowName) |
| Display the user interface. | |
| void | HUD_DisplayMessage (const char *text) |
| Displays a message on the hud. | |
| void | HUD_Update (void) |
| Updates console vars for an actor. | |
| void | HUD_UpdateActorStats (const struct le_s *le) |
| void | HUD_UpdateCursor (void) |
| Updates the cursor texts when in battlescape. | |
| int | HUD_ReactionFireGetTUs (const struct le_s *actor) |
Variables | |
| cvar_t * | cl_worldlevel |
HUD related routines.
Definition in file cl_hud.h.
| #define ACTOR_GET_HAND_CHAR | ( | hand | ) |
| [in] | hand | Hand index (ACTOR_HAND_RIGHT, ACTOR_HAND_LEFT) |
Definition at line 32 of file cl_hud.h.
Referenced by HUD_DisplayFiremodeEntry().
| #define ACTOR_GET_HAND_INDEX | ( | hand | ) |
| [in] | hand | Hand index (ACTOR_HAND_CHAR_RIGHT, ACTOR_HAND_CHAR_LEFT) |
Definition at line 34 of file cl_hud.h.
Referenced by HUD_DisplayFiremodes_f(), HUD_FireWeapon_f(), and HUD_SelectReactionFiremode_f().
| void HUD_DisplayMessage | ( | const char * | text | ) |
Displays a message on the hud.
| [in] | text | text is already translated here |
Definition at line 138 of file cl_hud.cpp.
References cl_hud, cl_hud_message_timeout, and UI_DisplayNotice().
Referenced by CL_ActorAppear(), CL_ActorCheckAction(), CL_ActorDie(), CL_ActorReload(), CL_ActorRevitalised(), CL_ActorStateChange(), CL_ActorWound(), CL_DoEndRound(), CL_NextRound_f(), CL_ParseServerMessage(), GAME_GetImportData(), HUD_CheckReload(), HUD_CheckShooting(), HUD_FireWeapon_f(), HUD_ReloadLeft_f(), HUD_ReloadRight_f(), HUD_ToggleCrouchReservation_f(), HUD_ToggleReaction_f(), HUD_UpdateActorFireMode(), and cgame_import_t::void().
Definition at line 1597 of file cl_hud.cpp.
References CL_CvarWorldLevel(), cl_hud, cl_hud_message_timeout, cl_show_cursor_tooltips, cl_worldlevel, Cmd_AddCommand(), CVAR_ARCHIVE, Cvar_Get(), CVAR_LATCH, Cvar_RegisterChangeListener(), Cvar_SetCheckFunction(), HUD_ActorSelectionChangeListener(), HUD_ActorWoundData_f(), HUD_CvarCheckMNHud(), HUD_DisplayActions_f(), HUD_DisplayFiremodes_f(), HUD_InitCallbacks(), HUD_LeftHandChangeListener(), HUD_PopupFiremodeReservation_f(), HUD_RemainingTUs_f(), HUD_RightHandChangeListener(), HUD_SelectReactionFiremode_f(), HUD_ShotReserve_f(), HUD_TUChangeListener(), and HUD_UpdateActorLoad_f().
Referenced by CL_InitLocal().
| void HUD_InitUI | ( | const char * | optionWindowName | ) |
Display the user interface.
| optionWindowName | Name of the window used to display options, else nullptr if nothing |
Definition at line 1572 of file cl_hud.cpp.
References buttonStates, cl_hud, Cvar_Set(), HUD_CheckCLHud(), OBJZERO, UI_ExecuteConfunc(), and UI_InitStack().
Referenced by GAME_GetImportData(), GAME_StartBattlescape(), and cgame_import_t::void().
| int HUD_ReactionFireGetTUs | ( | const struct le_s * | actor | ) |
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 1428 of file cl_hud.cpp.
References ca_active, cl, cl_worldlevel, cls, Cvar_Set(), Cvar_SetValue(), HUD_UpdateActor(), i, PATHFINDING_HEIGHT, selActor, and UI_ExecuteConfunc().
Referenced by CL_SlowFrame().
| void HUD_UpdateActorStats | ( | const struct le_s * | le | ) |
Updates the cursor texts when in battlescape.
Definition at line 976 of file cl_hud.cpp.
References cl_map_debug, image_t::height, HUD_DrawMouseCursorText(), it_pic, LE_IsCrouched, LONGLINES_WRAP, MAPDEBUG_TEXT, mousePosX, mousePosY, R_DrawImage(), R_FindImage(), R_FontTextSize(), selActor, le_t::state, STATE_REACTION, TEXT_MOUSECURSOR_BOTTOM, TEXT_MOUSECURSOR_LEFT, TEXT_MOUSECURSOR_PLAYERNAMES, TEXT_MOUSECURSOR_RIGHT, TEXT_MOUSECURSOR_TOP, UI_GetText(), UI_ResetData(), viddef, and image_t::width.
Referenced by SCR_DrawCursor().
|
extern |
Definition at line 46 of file cl_hud.cpp.
Referenced by CL_ActorMouseTrace(), CL_ActorMoveMouse(), CL_ActorVis(), CL_AddActorPathing(), CL_AddPathing(), CL_AddTargeting(), CL_CameraMove(), CL_GetWorldCoordsUnderMouse(), CL_LevelDown_f(), CL_LevelUp_f(), CL_ParticleRun2(), CL_StartGame(), CL_ViewUpdateRenderData(), uiRadarNode::draw(), HUD_InitStartup(), HUD_Update(), LE_AddToScene(), LE_BrushModelAction(), LE_PlayFootStepSound(), LM_AddToSceneOrder(), and UI_RadarNodeGetActorColor().