Package-level declarations

Types

Link copied to clipboard

implement this interface to tell a button group what action to perform

Link copied to clipboard
data class MagicCombatButtonGroupLayout(val x: Float, val y: Float, val w: Float, val h: Float, val a: Float, val color: Color, val padding: Float, val xTooltip: Float, val yTooltip: Float, val horizontal: Boolean = true)

Set of parameters to define positioning/size etc. of a button group. Only use for custom button groups. Coordinates are screen coordinates.

Link copied to clipboard

Implement this interface to create buttons for a button group Consider using MagicCombatCreateSimpleButtons rather than creating your own action

Link copied to clipboard

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

Link copied to clipboard
abstract class MagicCombatDataButtonGroup(val font: <Error class: unknown class>?, var descriptionText: String, val layout: MagicCombatButtonGroupLayout)

If possible, use org.magiclib.combatgui.MagicCombatGuiBase.addButtonGroup rather than using this class directly!

Link copied to clipboard

pass this to org.magiclib.combatgui.MagicCombatGuiBase.addButtonGroup as refresh to enable radio-button behavior

Link copied to clipboard

defines an action to be performed whenever anything happens Use this to e.g. disable buttons that are incompatible with other active buttons