This is an old revision of the document!
HUD library state can be reset to default using HudResetState.
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:
Whether to exclude status bar from HUD coordinate system.
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.
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:
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.
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.