Package 

Class GuiLayout

  • All Implemented Interfaces:

    
    public final class GuiLayout
    
                        

    data class describing they layout, i.e. positions/spacings/color etc. of you GUI

    • 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 text
        paddingPx - space between buttons in pixels, e.g.
        xTooltipRel - position in relative coordinates (value between 0 and 1) where tooltips will be displayed
        yTooltipRel - 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 displayed
        yMessageRel - cf.