MagicCombatButtonGroupLayout

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.

Author

Jannes

Since

1.3.0

Parameters

x

position of first button

y

position of first button

w

width of single button

h

height of single button

a

opacity of button outline

color

of button (when not disabled)

padding

blank space between two buttons

xTooltip

x-position where hover tooltip shall be displayed

yTooltip

y-position where hover tooltip shall be displayed

horizontal

if true, buttons will be displayed from left to right, otherwise from top to bottom

Constructors

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

Properties

Link copied to clipboard
val a: Float
Link copied to clipboard
Link copied to clipboard
val h: Float
Link copied to clipboard
val horizontal: Boolean = true
Link copied to clipboard
Link copied to clipboard
val w: Float
Link copied to clipboard
val x: Float
Link copied to clipboard
Link copied to clipboard
val y: Float
Link copied to clipboard