HUD Library has a lot of settings telling it how to draw messages. It stores them in current state.
This state can be reset to default using HudResetState. It can be saved and restored using HudPushState and HudPopState respectively.
These settings apply to 2D drawing only.
The current 2D point in the HUD coordinate system to draw the message at.
Default: x=0.0 y=0.0
Manipulated by HudSetPoint.
The width and height of the HUD coordinate system.
Default: 640×480
Manipulated by HudSetVirtualSize.
Whether to exclude status bar from HUD coordinate system. This is equivalent to the third argument to SetHudSize.
Default: false
Manipulated by HudSetExcludeStatusBar.
These settings affect all messages drawn through HUD Library.
Whether to draw in 2D or 3D mode.
Default: 2D mode.
Manipulated by:
Current X and Y scale of the message to draw.
Default: x=1.0 y=1.0
Manipulated by:
Whether to use HudMessage or HudMessageBold.
Default: false (use HudMessage)
Manipulated by HudSetShowToEveryone.
Duration of fade-in animation in seconds. 0 disables fade-in animation and makes the message appear instantly.
Default: 0.0
Manipulated by HudSetAppearTime.
For how long the message stays after the end of fade-in and before the beginning fade-out (in seconds).
Default: HUD_STAYTIME_FOREVER.
Manipulated by HudSetStayTime.
Duration of fade-out animation in seconds. 0 disables fade-out animation and makes the message disappear instantly.
Default: 0.0
Manipulated by HudSetDisappearTime.
Which blend style to use for the message. Can be one of the following:
Default: HUD_BLENDSTYLE_NORMAL (makes messages with alpha = 1.0 opaque).
Manipulated by HudSetBlendStyle.
Whether to show the message in 3D game view. If false, applies HUDMSG_NOTWITH3DVIEW flag to the message.
Default: true
Manipulated by: HudSetShowIn3DView.
Whether to show the message when overlay automap is enabled. If false, applies HUDMSG_NOTWITHOVERLAYMAP flag to the message.
Default: true
Manipulated by: HudSetShowOnOverlayAutomap.
Whether to show the message in full automap mode. If false, applies HUDMSG_NOTWITHFULLMAP flag to the message.
Default: true
Manipulated by: HudSetShowOnFullAutomap.
Which HUD layer to draw the message at. Uses HUDMSG_LAYER_* constants from ZDoom.
Default: HUDMSG_LAYER_OVERHUD
Manipulated by: HudSetLayer.
These settings apply only to HudDrawText, not to HudDrawImage.
Default text color to use in absence of any color codes.
Default: apply no recoloring to original font.
Manipulated by:
HudSetTextColor(CR_UNTRANSLATED)
to reset back to default.
Whether to make appearance animation use type-on effect instead of fade-in.
Default: false
Manipulated by HudSetTextTypeOn.
Whether to enable word wrap when the message goes off the right edge of the screen.
Default: false
Manipulated by HudSetWordWrap.
Which point of the text box to position.
Horizontal origin can be one of:
Vertical origin can be one of:
Default: HUD_TEXTORIGIN_CENTER HUD_TEXTORIGIN_CENTER
Manipulated by:
Whether to log the text of the message to the console using HUDMSG_LOG flag.
Default: false
Manipulated by HudSetLogMessage
These settings apply to 3D drawing only.
The current 3D point to draw the message at.
Default: x=0.0 y=0.0 z=0.0
Manipulated by HudSetPoint3D.
The 3D position of the camera that views the 3D points.
Default: x=0.0 y=0.0 z=0.0
Manipulated by:
The direction of the camera that views the 3D points.
Default: along the world X axis.
Manipulated by:
3D projection mode to convert 3D coordinates to 2D. Can be one of the following:
Default: HUD_PROJECTION_AUTO
Manipulated by HudSetProjectionMode.
Whether to multiply the scale of the message by a factor to make it change size with distance.
Default: true
Manipulated by HudSetAutoDistanceScale.