MagicCombatCreateSimpleButtons

Simple implementation of MagicCombatCreateButtonsAction interface that creates a button for each entry in names.

Author

Jannes

Since

1.3.0

Parameters

names

list of display names of buttons. Must not be null and defines the number of buttons created

data

list of data that buttons shall contain. If null or too short, button names will be used as data.

tooltips

list of tooltips to use for buttons. If null or too short, no tooltip will be used.

Constructors

Link copied to clipboard
constructor(names: List<String>, data: List<Any>?, tooltips: List<String>?)

Functions

Link copied to clipboard
open override fun createButtons(group: MagicCombatDataButtonGroup)

Call group.addButton in this method to add a button to the group