MagicCombatGuiLayout

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)

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