Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| hud_library [2017/04/18 13:27] – korshun | hud_library [2017/07/09 11:26] (current) – 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 ===== |
| |
| Scaling is implemented by calling SetHudSize with values that don't match those set in [[functions:HudSetVirtualSize]]. | Scaling is implemented by calling [[zdoom>SetHudSize]] with values that don't match those set in [[functions:HudSetVirtualSize]]. |
| |
| For example: | For example: |
| |
| ===== State operations ===== | ===== State operations ===== |
| The whole [[HUD Library state]] can be reset to default using [[functions:HudResetState]]. It can be saved and loaded using [[functions:HudPushState]] and [[functions:HudPopState]] to a stack. The stack's maximum size is defined in [[ACSUtils_configuration#ACSUTILS_HUDLIB_SAVEDSTATES|ACSUTILS_HUDLIB_SAVEDSTATES]] ACSUtils setting. The stack can be cleared using [[functions:HudClearStateStack]]. | The whole [[HUD Library state]] can be reset to default using [[functions:HudResetState]]. It can be saved and loaded using [[functions:HudPushState]] and [[functions:HudPopState]] to a stack. The stack can be cleared using [[functions:HudClearStateStack]]. |