SinglePage

Represents a single-page state for use with DynamicGUI.

This enum is intended to be used when a DynamicGUI does not require multiple states, but still benefits from its dynamic button mapping and management capabilities.

Example Usage:

val gui = DynamicGUI<SinglePage>(player)
.setButtonMappings(
mapOf(SinglePage.PAGE to listOf(button1, button2, button3))
)
// SinglePage is the default state, so you don’t need to set it manually
//.setState(SinglePage.PAGE)

This allows you to use DynamicGUI without having to define multiple states, making it useful for simple, one-page GUI setups.

Entries

Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.