Starbound

Starbound

The Bookstore
 This topic has been pinned, so it's probably important
GonDragon  [developer] 18 Aug, 2017 @ 7:33am
Add a new Tab
Maybe you don't found the right tab, maybe you want a more specific clasification, or maybe you just want a place to put your books and only your books. No mather the reason, if you want to add a new tab, it's just an easy adition to the patch. You will need three things this time, but first, let's see the structure

[ { "op": "add", "path": "/interactData/modTab/-", "value": { "file": "<iconPath>", "label": "<tabName>", "filter": [ "<category>" ] } }, { "op": "add", "path": "/storeInventory/<category>", "value": [] } ]
  • <iconPath>: it's the direction of the image that you will use as a icon for your tab. It should be a 13x13 png file.
  • <tabName>: it's the name that will appear next to the icon.
  • <category>: it's the category of the tab, the name that you need to know to add books to that tab. I recommend using a single word, in lowercase.