Many Tabs (1/2)

If you liked this item, please rate it up on Steam Workshop page.

Author: v6

Last revision: 9 Oct, 2017 at 09:42 UTC (1)

File size: 38.53 KB

On Steam Workshop

Description:

PLEASE NOTE THAT THIS IS PART 1 OF THE MOD. YOU MUST ALSO INSTALL PART 2
http://steamcommunity.com/sharedfiles/filedetails/?id=956247051

Adds an easy way for modders to add filter tabs to vanilla crafting stations and race tabs to the codex library without having to worry about compatibility with other mods.

Moves the filter tabs for vanilla crafting tables to the left side and change them to a vertical layout.
Codex library will auto-expand to fit the amount of race tabs that have been added.

Please keep in mind that it is not possible to add an unlimited amount of tabs so you should preferably only use one.

Fully functional with Extended GUI but tabs currently start in the middle of the screen instead of top.

NOTE: Do not put this mod as a include or require in your metadata file or you will break its functionality.

How to add a filter tab to crafting station

Create a transparent 26 x 17 px png with a centered icon.
Create a patch file in the usual location for the specific crafting table.
E.g. interface/windowconfig/xxxxxx.config.patch

[ { "op": "add", "path": "/modTab/-", "value": { "file": "/interface/crafting/tabicon_yourmod.png", "filter": [ "yourfilter" ] }} ]

Please note that adding tabs to crafting.config is not supported as it is shared between plain hands, capturestation, ironcraftingtable, railcraftingtable, heartforge, holidaycraftingtable & spawnerstation.

How to add a race tab to codex window

Add a race button like you normally would and do not change anything else

/interface/windowconfig/codex.config.patch

[ { "op": "add", "path": "/paneLayout/speciesTabs/buttons/-", "value": { "position": [4, 5], "baseImage": "/interface/codex/tab_yourrace.png", "baseImageChecked": "/interface/codex/tab_yourrace_select.png", "pressedOffset": [0, 0], "data": { "species": "yourrace" } } } ]
Check if the mod is loaded (not required to add tabs)
// Mod loaded { "op": "test", "path": "/manytabs", "value": true } // Mod not loaded { "op": "test", "path": "/manytabs", "inverse": true }
Known mods that add tabs

Foraging Table
– Gardenbot2 (2) — Built-in support
Pixel Printer
– Print Crafting Stations (1) — Built-in support
Spinning Wheel
– Frackin’ Universe (1) — Built-in support

Download
Required items:

Click the title to search on this site.


Many Tabs (2/2)Steam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.