ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hudpushstate

Table of Contents

HudPushState

Description

Saves current HUD Library State to state stack.

If the stack is full, a LimitError is emitted.

Do not forget to call HudPopState. Otherwise the stack may fill up.

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/hudpushstate.txt · Last modified: 2017/04/17 19:41 by korshun