Skip to content

HUD

Class in Engine · Engine.HUD · native, config, transient

Object › Actor › HUD

Subclasses: DebugCameraHUD, H7Hud, MobileHUD

Using it from Lua
h7.find_all("HUD")            -- live instances
h7.find_class("Engine.HUD")   -- the class
h7.hook("Engine.HUD.AddConsoleMessage", fn)

Structs

ConsoleMessage

FieldType
Textstring
TextColorcolor
MessageLifefloat
PRIPlayerReplicationInfo

HudLocalizedMessage

FieldType
Messageclass<LocalMessage>
StringMessageString
Switchint
EndOfLifefloat
Lifetimefloat
PosYfloat
DrawColorColor
FontSizeint
StringFontFont
DXfloat
DYfloat
Drawnbool
Countint
OptionalObjectobject

KismetDrawTextInfo

FieldType
MessageTextstring
AppendedTextstring
MessageFontFont
MessageFontScalevector2d
MessageOffsetvector2d
MessageColorColor
MessageEndTimefloat

Properties

NameTypeNotes
bLostFocusPausedbooltransient
bMessageBeepboolglobalconfig
bRenderFullScreenbool
bScaleCanvasForCinematicModebool
bShowBadConnectionAlertbool
bShowDebugInfobool
bShowDirectorInfoDebugboolconfig
bShowDirectorInfoHUDboolconfig
bShowHUDboolconfig
bShowOverlaysbool
bShowScoresbool
CanvasCanvas
CenterXfloattransient
CenterYfloattransient
ConsoleColorColorconst
ConsoleFontSizeintglobalconfig
ConsoleMessageCountintconfig
ConsoleMessagePosXfloat
ConsoleMessagePosYfloat
ConsoleMessagesarray<ConsoleMessage>
DebugDisplayarrayglobalconfig
GreenColorcolorconst
HudCanvasScalefloatglobalconfig
KismetTextInfoarray<KismetDrawTextInfo>
LastHUDRenderTimefloattransient
LocalMessagesHudLocalizedMessage[8]transient
MaxHUDAreaMessageCountint
MessageFontOffsetintglobalconfig
PlayerOwnerPlayerController
PostRenderedActorsarray<Actor>
RatioXfloattransient
RatioYfloattransient
RedColorcolorconst
RenderDeltafloattransient
SizeXfloattransient
SizeYfloattransient
WhiteColorcolorconst

Functions

NameDeclaration
AddConsoleMessagefunction AddConsoleMessage(string M, class<LocalMessage> InMessageClass, PlayerReplicationInfo PRI, optional float LifeTime)
AddLocalizedMessagefunction AddLocalizedMessage(int Index, class<LocalMessage> InMessageClass, string CriticalString, int Switch, float Position, float LifeTime, int FontSize, color DrawColor, optional int MessageCount, optional object OptionalObject)
AddPostRenderedActorfunction AddPostRenderedActor(Actor A)
ClearMessagefunction ClearMessage(out HudLocalizedMessage M)
DisplayBadConnectionAlertfunction DisplayBadConnectionAlert()
DisplayConsoleMessagesfunction DisplayConsoleMessages()
DisplayKismetMessagesfunction DisplayKismetMessages()
DisplayLocalMessagesfunction DisplayLocalMessages()
Draw2DLinefinal native function Draw2DLine(int X1, int Y1, int X2, int Y2, color LineColor)
Draw3DLinefinal native function Draw3DLine(vector Start, vector End, color LineColor)
DrawActorOverlaysnative function DrawActorOverlays(vector Viewpoint, rotator ViewRotation)
DrawHUDfunction DrawHUD()
DrawMessagefunction DrawMessage(int i, float PosY, out float DX, out float DY)
DrawMessageTextfunction DrawMessageText(HudLocalizedMessage LocalMessage, float ScreenX, float ScreenY)
DrawRoutefunction DrawRoute(Pawn Target)
DrawTextfunction DrawText(string Text, vector2d Position, Font TextFont, vector2d FontScale, Color TextColor, optional const out FontRenderInfo RenderInfo)
GetFontSizeIndexstatic function Font GetFontSizeIndex(int FontSize)
GetScreenCoordsfunction GetScreenCoords(float PosY, out float ScreenX, out float ScreenY, out HudLocalizedMessage InMessage)
LocalizedMessagefunction LocalizedMessage(class<LocalMessage> InMessageClass, PlayerReplicationInfo RelatedPRI_1, PlayerReplicationInfo RelatedPRI_2, string CriticalString, int Switch, float Position, float LifeTime, int FontSize, color DrawColor, optional object OptionalObject)
Messagefunction Message(PlayerReplicationInfo PRI, coerce string Msg, name MsgType, optional float LifeTime)
NotifyBindPostProcessEffectsfunction NotifyBindPostProcessEffects()
OnLostFocusPauseevent OnLostFocusPause(bool bEnable)
PlayerOwnerDiedfunction PlayerOwnerDied()
PostBeginPlayevent PostBeginPlay()
PostRenderevent PostRender()
PreCalcValuesfunction PreCalcValues()
RemovePostRenderedActorfunction RemovePostRenderedActor(Actor A)
SetShowScoresexec function SetShowScores(bool bNewValue)
ShouldDisplayDebugfunction bool ShouldDisplayDebug(name DebugType)
ShouldShowConsoleMessagefunction bool ShouldShowConsoleMessage(const ConsoleMessage InConsoleMessage)
ShowDebugexec function ShowDebug(optional name DebugType)
ShowDebugInfofunction ShowDebugInfo(out float out_YL, out float out_YPos)
ShowHUDexec function ShowHUD()
ShowScoresexec function ShowScores()
ToggleDirectorInfoDebugexec function ToggleDirectorInfoDebug()
ToggleDirectorInfoHUDexec function ToggleDirectorInfoHUD()
ToggleHUDexec function ToggleHUD()

Default values

TickGroup=TG_DuringAsyncWork
bHidden=true
RemoteRole=ROLE_None
WhiteColor=(R=255,G=255,B=255,A=255)
ConsoleColor=(R=153,G=216,B=253,A=255)
GreenColor=(R=0,G=255,B=0,A=255)
RedColor=(R=255,G=0,B=0,A=255)
ConsoleMessagePosY=0.8
MaxHUDAreaMessageCount=3
bLostFocusPaused=false
bScaleCanvasForCinematicMode=true
bRenderFullScreen=false

Inherited

FromMembers
Actor156 properties, 262 functions
Object13 properties, 308 functions