-
- All Implemented Interfaces:
public final class GuiLayoutdata class describing they layout, i.e. positions/spacings/color etc. of you GUI
-
-
Field Summary
Fields Modifier and Type Field Description private final FloatxAnchorRelprivate final FloatyAnchorRelprivate final FloatbuttonWidthPxprivate final FloatbuttonHeightPxprivate final Floataprivate final Colorcolorprivate final FloatpaddingPxprivate final FloatxTooltipRelprivate final FloatyTooltipRelprivate final FloattextSpacingBufferPxprivate final StringfontPathprivate final FloatxMessageRelprivate final FloatyMessageRel
-
Method Summary
Modifier and Type Method Description final FloatgetXAnchorRel()final FloatgetYAnchorRel()final FloatgetButtonWidthPx()final FloatgetButtonHeightPx()final FloatgetA()final ColorgetColor()final FloatgetPaddingPx()final FloatgetXTooltipRel()final FloatgetYTooltipRel()final FloatgetTextSpacingBufferPx()final StringgetFontPath()final FloatgetXMessageRel()final FloatgetYMessageRel()-
-
Constructor Detail
-
GuiLayout
GuiLayout(Float xAnchorRel, Float yAnchorRel, Float buttonWidthPx, Float buttonHeightPx, Float a, Color color, Float paddingPx, Float xTooltipRel, Float yTooltipRel, Float textSpacingBufferPx, String fontPath, Float xMessageRel, Float yMessageRel)
- 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.yAnchorRel- cf.buttonWidthPx- button width in pixels, e.g.buttonHeightPx- button height in pixels, e.g.a- value between 0 and 1, button opacity, e.g.color- applies to buttons and textpaddingPx- space between buttons in pixels, e.g.xTooltipRel- position in relative coordinates (value between 0 and 1) where tooltips will be displayedyTooltipRel- cf.textSpacingBufferPx- space in pixels to reserve for text, e.g.fontPath- path to a Starsector font, e.g.xMessageRel- position in relative coordinates (value between 0 and 1) where messages will be displayedyMessageRel- cf.
-
-
Method Detail
-
getXAnchorRel
final Float getXAnchorRel()
-
getYAnchorRel
final Float getYAnchorRel()
-
getButtonWidthPx
final Float getButtonWidthPx()
-
getButtonHeightPx
final Float getButtonHeightPx()
-
getPaddingPx
final Float getPaddingPx()
-
getXTooltipRel
final Float getXTooltipRel()
-
getYTooltipRel
final Float getYTooltipRel()
-
getTextSpacingBufferPx
final Float getTextSpacingBufferPx()
-
getFontPath
final String getFontPath()
-
getXMessageRel
final Float getXMessageRel()
-
getYMessageRel
final Float getYMessageRel()
-
-
-
-