Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
hud_library [2017/04/18 16:26] – korshun | hud_library [2017/07/09 14:24] – korshun |
---|
</code> | </code> |
| |
The only drawing functions in HUD Library are [[functions:HudDrawText]] and [[functions:HudDrawImage]]. They call [[zdoom>SetHudSize]], [[zdoom>SetFont]] and then HudMessage(Bold) every time a message is drawn. This means that if you are mixing HUD Library with HudMesasge, then, after calling one of HudDraw* functions, your SetHudSize and SetFont settings are lost and you need to set them back. | The only drawing functions in HUD Library are [[functions:HudDrawText]] and [[functions:HudDrawImage]]. They call [[zdoom>SetHudSize]], [[zdoom>SetFont]] and then [[zdoom>HudMessage]]([[zdoom>HudMessageBold|Bold]]) every time a message is drawn. This means that if you are mixing HUD Library with HudMesasge, then, after calling one of HudDraw* functions, your SetHudSize and SetFont settings are lost and you need to set them back. |
| |
===== Scaling ===== | ===== Scaling ===== |
HudResetState(); | HudResetState(); |
HudSetPoint3D(x, y, z); | HudSetPoint3D(x, y, z); |
HudSetCameraActor(0); | HudSetCameraActor(0); // Set HUD Library camera to match the activator |
HudDrawText(1, "Look here!") | HudDrawText(1, "Look here!") |
</code> | </code> |