ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hudresetstate

Table of Contents

HudResetState

Description

Resets all HUD Library State to defaults. Should be used at the beginning of any drawing to clear any state left by previously run scripts, just like SetHudSize and SetFont are used for that purpose.

Examples

HudResetState();
HudSetPoint(320.0, 240.0);
HudDrawText(1, "Hello");

This function is not affected by current HUD Library state and doesn't overwrite it:

function DrawSomething(void)
{
    HudPushState();
    HudResetState();
    ...
    HudPopState();
}
functions/hudresetstate.txt · Last modified: 2017/04/17 19:33 by korshun