Category Button
This mod adds the ability for mod makers to add buttons that have multiple buttons. Also groups the bridges in the paths menu.
Disclaimer!
This plugin is currently only supported in the experimental version of Timberborn.
How to use
The category buttons works as you think it would, it adds another layer of buttons to use. But u can also use SHIFT + MOUSE SCROLL to switch between buttons of the same group.
Modders: how to use
- Add the CategoryButton package to the the project.
- Create a new prefab that has the following components:
- Prefab (Required: Prefab Name)
- Placeable Block Object (Required: ToolGroupID, Tool Order)
- Labeled Prefab (Required: DisplayNameLocKey, Image)
- Block Object (Required: a blocksize of atleast 1. The BlockSpecification entries has to be "any")
- Category Button Component (Required: List with names of the prefabs of which the buttons need to be in the group)
- Add a BepInEx dependency to the plugin: [BepInDependency("tobbert.categorybutton")].
- Load the object as usually (Manifest and specification).
Installing
Recommended way to install this mod is through Thunderstore. You can install this plugin manually by cloning the repo, building it
and adding the dll to your bepinex plugins folder. This plugin is dependent on the magnificent TimberAPI.
Problems?
In case you experience problems, message me in the modding channel of the the Timberborn discord or message me directly (Tobbert#1607). I will try to fix it as soon as possible. :D
Changelog
1.1.1 29.8.2022
- Removed unnecessary console logs.
- Fixed a bug that prevented water from appearing when exiting a category button that had no button inside the category selected.
1.1.0 18.8.2022
- The last used button will now be selected upon reopen.
- Added the possibility to use shift+scroll to switch between buttons of the same group.
1.0.4 16.8.2022
- Fixed a bug that prevented the button from working if it was first in the row.
1.0.3 15.8.2022
- Fixed a bug that the place of the group was incorrect on non-native resolutions.
1.0.2 14.8.2022
- Fixed a bug that closed the category window when clicking the category button twice.
- Fixed a bug that caused a crash when opening the editor.
1.0.1 13.8.2022
- Fixed a bug that prevented loading the mod.
1.0.0 - 13.8.2022