The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE3:UTHUD (UT3)
- Package:
- UTGame
- Direct subclasses:
- UTTeamHUD, UTBetrayalHUD
- This class in other games:
- UDK
The HUD class for Deathmatch and the base for all UT3 gametype HUDs.
Properties[edit]
See UTHUD properties.
Structs[edit]
DamageInfo[edit]
Modifiers: native
Holds data for directional damage indicators.
- float FadeTime
- Time for fade-out.
- float FadeValue
- Current fade value.
- MaterialInstanceConstant MatConstant
- The MIC for this indicator.
Functions[edit]
Static native functions[edit]
TranslateBindToFont[edit]
Convert a string with potential escape sequenced data in it to a font and the string that should be displayed
Other static functions[edit]
DrawBackground[edit]
Draws the background of player, vehicle and objective beacons.
DrawBarGraph[edit]
Draws a horizontal bar graph, e.g. for player health.
DrawBeaconBackground[edit]
Draws the background of a player or vehicle beacon.
DrawHealth[edit]
Wrapper function for DrawBarGraph() specifically for health-like graphs.
FormatTime[edit]
Converts the number of seconds into a time string of the form HH:MM:SS.
GetFontSizeIndex[edit]
Overrides: HUD.GetFontSizeIndex
Returns a font from the default HudFonts array. Valid font sizes range from 0 to 3, values outside the range are clamped to the nearest valid value.
GetTeamColor[edit]
Returns image color red for team 0, blue for team 1 and white for any other team index. Always returns "light gold" (a pale yellow) as the text color.
Exec functions[edit]
GrowHUD[edit]
Adds missing elements to HUD.
ReleaseShowScores[edit]
Hides the scoreboard.
SetShowScores[edit]
Overrides: HUD.SetShowScores
Shows or hides the scoreboard according to the parameter value.
ShowAllAI[edit]
Toggles whether AI information should be drawn for each bot Pawn.
ShowQuickPickMenu[edit]
Shows or hides the Quick Pick Menu according to the parameter value.
ShowSquadRoutes[edit]
Renders all squad routes of the currently spectated bot as persistent lines in the level. Each route gets a random color.
ShrinkHUD[edit]
Removes elements from HUD.
StartMusic[edit]
Creates a UTMusicManager for the player, unless there already is a music manager for that player.
ToggleHUD[edit]
Overrides: HUD.ToggleHUD
Toggles the entire HUD on/off.
Native functions[edit]
DisplayWeaponBar[edit]
Draws the weapon bar.
There doesn't seem to be any easy way to customize the behavior of this function. It's not declared as final, so creating a custom weapon bar in UT3 is possible by overriding it and completely reimplementing its functionality in UnrealScript.
DrawActorOverlays[edit]
DrawGlowText[edit]
Draw a glowing string
LinkToHudScene[edit]
This function will attempt to auto-link up HudWidgets to their associated transient property here in the hud.
Events[edit]
PostBeginPlay[edit]
Overrides: HUD.PostBeginPlay
Create a list of actors needing PostRenderFor() calls. (That would be all Pawns that are neither UTPawns nor UTVehicles, all UTGameObjectives, all UTOnslaughtNodeTeleporters, all UTDeployableNodeLockers and all UTOnslaughtFlags.) Other actors are free to register themselves via the UTHUD.AddPostRenderedActor() function.
PostRender[edit]
Overrides: HUD.PostRender
Updates drawing-related HUD properties, then calls DrawHUD() unless HUD.bShowHUD is False.
Timer[edit]
Overrides: Actor.Timer
Sorts the list of PlayerReplicationInfos via GameReplicationInfo.SortPRIArray().