Magic Combat Button Group Layout
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
x Tooltip
x-position where hover tooltip shall be displayed
y Tooltip
y-position where hover tooltip shall be displayed
horizontal
if true, buttons will be displayed from left to right, otherwise from top to bottom