I love the smell of UnrealEd crashing in the morning. – tarquin
UE3:HUD (UT3)
Contents
- 1 Properties
- 1.1 Property group 'HUD'
- 1.2 Internal variables
- 1.2.1 bMessageBeep
- 1.2.2 bShowDebugInfo
- 1.2.3 bShowHUD
- 1.2.4 bShowScores
- 1.2.5 Canvas
- 1.2.6 CenterX
- 1.2.7 CenterY
- 1.2.8 ConsoleColor
- 1.2.9 ConsoleFontSize
- 1.2.10 ConsoleMessageCount
- 1.2.11 ConsoleMessages
- 1.2.12 DebugDisplay
- 1.2.13 GreenColor
- 1.2.14 HudCanvasScale
- 1.2.15 HudOwner
- 1.2.16 LastHUDRenderTime
- 1.2.17 LostFocusPaused
- 1.2.18 MaxHUDAreaMessageCount
- 1.2.19 MessageFontOffset
- 1.2.20 MOTDColor
- 1.2.21 PlayerOwner
- 1.2.22 ProgressFadeTime
- 1.2.23 RatioX
- 1.2.24 RatioY
- 1.2.25 RedColor
- 1.2.26 RenderDelta
- 1.2.27 Scoreboard
- 1.2.28 SizeX
- 1.2.29 SizeY
- 1.2.30 ViewedInfo
- 1.2.31 WhiteColor
- 1.3 Default values
- 2 Structs
- 3 Functions
- 3.1 Static functions
- 3.2 Exec functions
- 3.3 Native functions
- 3.4 Events
- 3.5 Other instance functions
- 3.5.1 AddConsoleMessage
- 3.5.2 AddLocalizedMessage
- 3.5.3 ClearMessage
- 3.5.4 DisplayBadConnectionAlert
- 3.5.5 DisplayConsoleMessages
- 3.5.6 DisplayLocalMessages
- 3.5.7 DisplayProgressMessage
- 3.5.8 DrawDemoHUD
- 3.5.9 DrawEngineHUD
- 3.5.10 DrawHUD
- 3.5.11 DrawMessage
- 3.5.12 DrawMessageText
- 3.5.13 DrawRoute
- 3.5.14 GetScreenCoords
- 3.5.15 LocalizedMessage
- 3.5.16 Message
- 3.5.17 PlayerOwnerDied
- 3.5.18 PreCalcValues
- 3.5.19 ShouldDisplayDebug
- 3.5.20 SpawnScoreBoard
- Package:
- Engine
- Direct subclasses:
- DebugCameraHUD, GameHUD, ScoreBoard
- This class in other games:
- RTNP, U1, UT, U2XMP, UE2Runtime, UDK
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
HUD: Superclass of the heads-up display.
Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.
Properties[edit]
Property group 'HUD'[edit]
bShowBadConnectionAlert[edit]
Type: bool
Display indication of bad connection
ConsoleMessagePosX[edit]
Type: float
ConsoleMessagePosY[edit]
Type: float
DP_LowerLeft
Default value: 0.8
LocalMessages[edit]
Type: HudLocalizedMessage
Array size: 8
Modifiers: transient
Internal variables[edit]
bMessageBeep[edit]
Type: bool
Modifiers: globalconfig
If true, any console messages will make a beep
Default value: True
bShowDebugInfo[edit]
Type: bool
if true, show properties of current ViewTarget
bShowHUD[edit]
Type: bool
Modifiers: config
Is the hud visible
Default value: True
bShowScores[edit]
Type: bool
Is the Scoreboard visible
Canvas[edit]
Type: Canvas
Canvas to Draw HUD on. NOTE: a new Canvas is given every frame, only draw on it from the HUD::PostRender() event
CenterX[edit]
Type: float
Modifiers: transient
Center of Viewport
CenterY[edit]
Type: float
Modifiers: transient
Center of Viewport
ConsoleColor[edit]
Type: Object.Color
Modifiers: const
Default value:
Member | Value |
---|---|
A | 255 |
B | 253 |
G | 216 |
R | 153 |
ConsoleFontSize[edit]
Type: int
Modifiers: globalconfig
Default value: 5
ConsoleMessageCount[edit]
Type: int
Modifiers: globalconfig
Default value: 4
ConsoleMessages[edit]
Type: array<ConsoleMessage>
DebugDisplay[edit]
Modifiers: globalconfig
Default value: 'AI'
GreenColor[edit]
Type: Object.Color
Modifiers: const
Default value:
Member | Value |
---|---|
A | 255 |
B | 0 |
G | 255 |
R | 0 |
HudCanvasScale[edit]
Type: float
Modifiers: globalconfig
Default value: 0.95
HudOwner[edit]
Type: HUD
Used for sub-huds like the scoreboard
LastHUDRenderTime[edit]
Type: float
Modifiers: transient
Used to create DeltaTime
LostFocusPaused[edit]
Type: bool
Modifiers: transient
Tells whether the game was paused due to lost focus
MaxHUDAreaMessageCount[edit]
Type: int
Default value: 3
MessageFontOffset[edit]
Type: int
Modifiers: globalconfig
MOTDColor[edit]
Type: Object.Color
Default value:
Member | Value |
---|---|
A | 255 |
B | 255 |
G | 255 |
R | 255 |
PlayerOwner[edit]
Type: PlayerController
always the actual owner
ProgressFadeTime[edit]
Type: float
Default value: 1.0
RatioX[edit]
Type: float
Modifiers: transient
Ratio of viewport compared to native resolution 1024x768
RatioY[edit]
Type: float
Modifiers: transient
Ratio of viewport compared to native resolution 1024x768
RedColor[edit]
Type: Object.Color
Modifiers: const
Default value:
Member | Value |
---|---|
A | 255 |
B | 0 |
G | 0 |
R | 255 |
RenderDelta[edit]
Type: float
Modifiers: transient
Time since last render
Scoreboard[edit]
Type: ScoreBoard
SizeX[edit]
Type: float
Modifiers: transient
Size of ViewPort in pixels
SizeY[edit]
Type: float
Modifiers: transient
Size of ViewPort in pixels
ViewedInfo[edit]
Type: PlayerReplicationInfo
The PRI of the current view target
WhiteColor[edit]
Type: Object.Color
Modifiers: const
Default value:
Member | Value |
---|---|
A | 255 |
B | 255 |
G | 255 |
R | 255 |
Default values[edit]
Property | Value |
---|---|
bHidden | True |
CollisionType | COLLIDE_CustomDefault |
TickGroup | TG_DuringAsyncWork |
Structs[edit]
ConsoleMessage[edit]
Modifiers: native
- string Text
- Object.Color TextColor
- float MessageLife
- PlayerReplicationInfo PRI
HudLocalizedMessage[edit]
Modifiers: native
- class<LocalMessage> Message
- string StringMessage
- int Switch
- float EndOfLife
- float Lifetime
- float PosY
- Object.Color DrawColor
- int FontSize
- Font StringFont
- float DX
- float DY
- bool Drawn
- int Count
- Object OptionalObject
Functions[edit]
Static functions[edit]
GetFontSizeIndex[edit]
GetRYGColorRamp[edit]
Exec functions[edit]
FXPlay[edit]
Finds the nearest pawn of the given class (excluding the owner's pawn) and plays the specified FaceFX animation.
FXStop[edit]
Finds the nearest pawn of the given class (excluding the owner's pawn) and stops any currently playing FaceFX animation.
SetShowScores[edit]
sets bShowScores to a specific value (not toggle)
ShowDebug[edit]
ShowHUD[edit]
ShowScores[edit]
ToggleHUD[edit]
Native functions[edit]
Draw2DLine[edit]
Draw3DLine[edit]
Events[edit]
Destroyed[edit]
Overrides: Actor.Destroyed
OnLostFocusPause[edit]
Pauses or unpauses the game due to main window's focus being lost.
Parameters:
- Enable - tells whether to enable or disable the pause state
PostBeginPlay[edit]
Overrides: Actor.PostBeginPlay
PostRender[edit]
PostRender is the main draw loop.
Other instance functions[edit]
AddConsoleMessage[edit]
Add a new console message to display.
AddLocalizedMessage[edit]
Add the actual message to the array. Made easier to tweak in a subclass
Parameters:
- Index - The index in to the LocalMessages array to place it.
- InMessageClass - Class of the message
- CriticialString - String of the message
- Switch - The message switch
- Position - Where on the screen is the message
- LifeTime - How long does this message live
- FontSize - How big is the message
- DrawColor - The Color of the message
ClearMessage[edit]
DisplayBadConnectionAlert[edit]
DisplayConsoleMessages[edit]
Display current messages
DisplayLocalMessages[edit]
DisplayProgressMessage[edit]
display progress messages in center of screen
DrawDemoHUD[edit]
Called instead of DrawHUD() if bShowHUD==false
DrawEngineHUD[edit]
Special HUD for Engine demo
DrawHUD[edit]
The Main Draw loop for the hud. Gets called before any messaging. Should be subclassed
DrawMessage[edit]
DrawMessageText[edit]
DrawRoute[edit]
GetScreenCoords[edit]
LocalizedMessage[edit]
Message[edit]
PlayerOwnerDied[edit]
Called when the player owner has died.
PreCalcValues[edit]
Pre-Calculate most common values, to avoid doing 1200 times the same operations