Single Page
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)
Content copied to clipboard
This allows you to use DynamicGUI without having to define multiple states, making it useful for simple, one-page GUI setups.
Properties
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.