Modding Help Is there a mod that only gives you a bigger hotbar?

Discussion in 'Starbound Modding' started by redxlaser15, Dec 4, 2017.

  1. bk3k

    bk3k Oxygen Tank

    Close but it doesn't have to draw those boxes. This defines a grid.
    Code:
            "mainItemGrid" : {
              "type" : "itemgrid",
              "position" : [5, 27],
              "dimensions" : [15, 8],
              "spacing" : [20, 20],
              "backingImage" : "/interface/bk3k_inventory/empty.png"
            },
    
    "position" dictates where the bottom left position of the grid. 5 to the right, 27 up from the bottom left of the UI. IIRC that considers the footer height too.
    "dimensions" dictates a grid - in this case 15 long, 8 tall.
    "spacing" is the amount of pixels separating the bottom left corner of each item space. Vanilla spacing is [19, 19]
    "backingImage" tells it to draw "/interface/bk3k_inventory/empty.png" behind every spot, but in front of the background image. You could substitute your own image if desired.
    upload_2017-12-15_14-12-7.png
    That's the image it is using BTW. It just layers the image on top of the background - once for every grid item. And it spaces this [20, 20] apart from one another.
     
    Xylia likes this.
  2. Xylia

    Xylia Tiy's Beard

    That's.... a strange way of doing it, but good to know! Saves me a bit of digging around in the JSONs, lol. I would have never guessed that it started counting from the bottom left; you telling me that probably saved me a bit of time and confusion lol.
     

Share This Page