1. Welcome to the Starbound support forums. Please check the support FAQs before posting: http://playstarbound.com/support

interface slider - scale 1px off

Discussion in 'Starbound Support' started by Snow_Cat, Mar 24, 2017.

  1. Snow_Cat

    Snow_Cat Intergalactic Tourist

    While updating Kitty's Zoom Levels to 1.2.2 (using patches for better future compatibility) I noticed a minor bug in the interface that causes the "type" : "slider" to start centred one pixel to the left of the gridImage and then jump 1 pixel to the right in the middle, causing uneven spacing.

    This is slightly annoying since the thumb-slider and zoomSlider thing is exactly the right size for ten steps (/nine intervals) of 4 pixels with no margin for error.

    The table below shows the slider-offset from the left edge of the grid-
    • as observed
    • as calculated using method that yields consistent results (for this case)
    • as calculated using a method that yields the desired results (for this case)
    -Observedwidth/steps*(step-1)-1(width-1)/steps*(step-1)
    step
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    offsetinterval
    -1
    34
    74
    114
    154
    205
    244
    284
    324
    364
    offsetinterval
    -1.0
    3.14.111
    7.24.111
    11.34.111
    15.44.111
    19.64.111
    23.74.111
    27.84.111
    31.94.111
    36.04.111
    offsetinterval
    0
    44
    84
    124
    164
    204
    244
    284
    324
    364
    total373736


    Attached are- kitty_zoomlevel_bug.7z, the mod/test-case demonstrating the effect this has on the slider with all ten steps (nine intervals) marked evenly.
    And kitty_zoomlevel.7z, the same mod with only steps {1,4,7 and 10} marked as they are currently rendered. Not as noticeably off. as a userfriendly pak file (not allowed to upload?)


    edit: Windowed mode, Windows 7 (64 bit)
     

    Attached Files:

    Last edited: Mar 24, 2017

Share This Page