TilesetSelectorBuilder

class TilesetSelectorBuilder : SelectorBuilder<TilesetResource>

Builder for a Selector to change the tileset of multiple TilesetOverrides or Groups at runtime.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

build
Link copied to clipboard
common
open override fun build(): Selector<TilesetResource>
Builds an object of type T.
createCopy
Link copied to clipboard
common
open override fun createCopy(): Builder<Selector<TilesetResource>>
Creates a deep copy of this object.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String
withCenteredText
Link copied to clipboard
common
fun withCenteredText(centerText: Boolean): SelectorBuilder<TilesetResource>
Whether the text on the label should be centered.
withClickableLabel
Link copied to clipboard
common
fun withClickableLabel(clickable: Boolean): SelectorBuilder<TilesetResource>
When set to true the center component, showing the text, will be an undecorated button that also invokes the callback (else it is just a simple label).
withDefaultSelected
Link copied to clipboard
common
fun withDefaultSelected(item: TilesetResource): SelectorBuilder<TilesetResource>
withGroups
Link copied to clipboard
common
fun withGroups(vararg groups: Group<out Component>): TilesetSelectorBuilder
Sets the given groups to be updated whenever the underlying Selector's Selector.selectedValue changes.
withPosition
Link copied to clipboard
common
override fun withPosition(position: Position): SelectorBuilder<TilesetResource>
Aligns the resulting Component positionally, relative to its parent.
override fun withPosition(x: Int, y: Int): SelectorBuilder<TilesetResource>
Aligns the resulting Component positionally, relative to its parent.
withTilesetOverrides
Link copied to clipboard
common
fun withTilesetOverrides(vararg tilesetOverrides: TilesetOverride): TilesetSelectorBuilder
Sets the given tilesetOverrides to be updated whenever the underlying Selector's Selector.selectedValue changes.
withToStringMethod
Link copied to clipboard
common
fun withToStringMethod(function: (TilesetResource) -> String): SelectorBuilder<TilesetResource>
The method to use for the label text if not ::toString

Properties

values
Link copied to clipboard
common
val values: List<TilesetResource>
width
Link copied to clipboard
common
val width: Int

Sources

(source)
Link copied to clipboard