ConsoleCommands / org.lazywizard.console.ui / UI

UI

open class UI

This is a completely optional container for user interface elements. All it does is direct calls to advance() and render() to each UIElement it contains, simplifying the code when working with multiple user interface elements.

Constructors

<init>

UI()

This is a completely optional container for user interface elements. All it does is direct calls to advance() and render() to each UIElement it contains, simplifying the code when working with multiple user interface elements.

Properties

elements

val elements: HashSet<UIElement>

Functions

addElement

fun addElement(element: UIElement): Unit

advance

fun advance(amount: Float): Unit

removeElement

fun removeElement(element: UIElement): Unit

render

fun render(): Unit