Starbound

Starbound

Many Frogs - Categories and Tabs
 This topic has been pinned, so it's probably important
GonDragon  [developer] 14 Aug, 2017 @ 9:59pm
How to add a Tab
Topic for moders.

You should create the next file
objects\outpost\frogfurnishing\frogfurnishing.object.patch
In this file, you should put the patch to create new tabs, and is the same file to add new items. Remember to ALWAYS put the new tabs BEFORE the new items.

This is how the patch for the tabs should look
[ [ { "op": "test", "path": "/modTab", "inverse": true }, { "op": "add", "path": "/modTab", "value": [] } ], [ { "op": "add", "path": "/modTab/-", "value": { "file": "<iconPath>", "label": "<label>", "filter": [ "<categorie>" ] } }, { "op": "add", "path": "/storeInventory/<categorie>", "value": [] } ] ]
Now, reeplace where necesary with the info of your tab:
  • <iconPath> is the path of the icon you want for the tab, the Icon should be 13 px height, and I recommend something between 9 and 15 px wide.
  • <label> is the name that will appear in the tab.
  • <categorie> is the categorie of the items in the tab. Usually is the same as label, but in one word on lowercase.

    That's it! Enjoy!