MagicCombatGuiLayout

data class MagicCombatGuiLayout(val xAnchorRel: Float, val yAnchorRel: Float, val buttonWidthPx: Float, val buttonHeightPx: Float, val a: Float, val color: Color, val paddingPx: Float, val xTooltipRel: Float, val yTooltipRel: Float, val textSpacingBufferPx: Float, val fontPath: String, val xMessageRel: Float, val yMessageRel: Float)

Data class describing the layout, i.e. positions/spacings/color etc. of your GUI.

Author

Jannes

Since

1.3.0

Parameters

xAnchorRel

position in relative coordinates (value between 0 and 1) where the top-left corner of first button group of the UI shall be placed. Note that org.magiclib.combatgui.buttons.MagicCombatActionButtons will be placed above this.

yAnchorRel

cf. xAnchorRel

buttonWidthPx

button width in pixels, e.g. 100f

buttonHeightPx

button height in pixels, e.g. 20f

a

value between 0 and 1, button opacity, e.g. 0.5f

color

applies to buttons and text

paddingPx

space between buttons in pixels, e.g. 5f

xTooltipRel

position in relative coordinates (value between 0 and 1) where tooltips will be displayed

yTooltipRel

cf. xTooltipRel

textSpacingBufferPx

space in pixels to reserve for text, e.g. 25f

fontPath

path to a Starsector font, e.g. "graphics/fonts/insignia15LTaa.fnt"

xMessageRel

position in relative coordinates (value between 0 and 1) where messages will be displayed

yMessageRel

cf. xMessageRel

Constructors

Link copied to clipboard
constructor(xAnchorRel: Float, yAnchorRel: Float, buttonWidthPx: Float, buttonHeightPx: Float, a: Float, color: Color, paddingPx: Float, xTooltipRel: Float, yTooltipRel: Float, textSpacingBufferPx: Float, fontPath: String, xMessageRel: Float, yMessageRel: Float)

Properties

Link copied to clipboard
val a: Float
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