DecoratedActiveButtonWidget
open class DecoratedActiveButtonWidget(titleSupplier: Supplier<Text>, width: Int, height: Int, decoration: Identifier, activeProvider: Supplier<Boolean>, pressAction: Consumer<ActiveButtonWidget>, background: ActiveButtonWidget.Background? = null) : ActiveButtonWidget, Decorated
An ActiveButtonWidget that allows for parents to render its decoration
This does NOT render its own decoration by default, something like a custom Screen or ParentElement that is checking for Decorated will typically render it
Author
fzzyhmstrs
Since
0.2.0
Parameters
titleSupplier
Supplier<Text> - supplies the message/label for this button
width
Int - width of the widget
height
Int - height of the widget
activeSupplier
Supplier
pressAction
Consumer
background
Identifier, optional - a custom background identifier. needs to be a nine-patch sprite
Constructors
Link copied to clipboard
constructor(title: Text, width: Int, height: Int, decoration: Identifier, activeProvider: Supplier<Boolean>, pressAction: Consumer<ActiveButtonWidget>, background: ActiveButtonWidget.Background? = null)
constructor(titleSupplier: Supplier<Text>, width: Int, height: Int, decoration: Identifier, activeProvider: Supplier<Boolean>, pressAction: Consumer<ActiveButtonWidget>, background: ActiveButtonWidget.Background? = null)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard