Table of Contents

Class CloseableUIStack

Namespace
GrindFest
Assembly
GrindFest.dll

Manages a stack of closeable UI elements so ESC closes the most recently opened item.

public class CloseableUIStack : Singleton<CloseableUIStack>
Inheritance
object
CloseableUIStack
Inherited Members

Properties

HasOpenUI

Check if there's anything in the stack

Methods

BringToTop(ICloseableUI)

Bring a UI element to the top of the stack (when clicked)

Clear()

Clear the entire stack (useful for scene transitions)

CloseTop()

Close the most recently opened UI element

Push(ICloseableUI)

Register a UI element as opened (pushes to stack)

Remove(ICloseableUI)

Unregister a UI element when manually closed (removes from stack)