ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hudpopstate

Table of Contents

HudPopState

Description

Restores saved HUD Library State from the state stack and removes it from the stack.

If the stack is empty, a ProgramError is emitted.

Examples

HudPushState();
// Change state
HudPopState(); // Back to saved state.

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

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