WidgetType

Determines which type of selector widget will be used for the Choice selector, default is POPUP

Author

fzzyhmstrs

Since

0.2.0, add INLINE and SCROLLABLE 0.6.5

Entries

Link copied to clipboard

Will display a button with the currently selected option, clicking the button will pop up a window with the available options to select from. Selecting a new option will close the popup.

Link copied to clipboard

The choices are displayed inline in the setting screen, stacked on top of each other. This widget will take up more than one "normal" setting widget of height (unless you only have one choice, in which case... consider ValidatedBoolean).

Link copied to clipboard

A traditional MC cycling button widget, iterating through the choices in order

Link copied to clipboard

The choices are displayed in a popup with a scrollable list widget displaying the choices. Up to 6 choices are displayed in the "window", with additional options available via scrolling.

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.