This mod is not known to work with the latest version of Kerbal Space Program. Proceed with caution.
This simple mod allow the creation of custom part categories in the editor.
The mod parse all EditorCategory entries it can find inside the .cfg files in GameData, and use that information to create custom categories.
| PROPERTY | DESCRIPTION | EXAMPLE
| ------------- |------------------------------------------------------------|---
| name | Unique name for the category | Electrical
| tag | Tag used to identify parts that belongs to this category | _electrical
| icon | Url to the icon | MyMod/icons/my_icon
| tooltip | Optional tooltip shown when hovering the icon | Electrical
`
An icon is required, and it need to be 32x32 pixels in size. The url to the icon is the path inside GameData, without file extension. If another image is present with the same url but ending with _selected
, that image will be used when the category is selected.
The tag system is exploited to identify parts that belong to a category. In the example above, any parts that contain the string _electrical
in its tags
field will be included in the Electrical category.
To avoid showing a part in a custom category and in the stock category at the same time, the part category
field can be set to none
. This reduce the clutter, but has the drawback that the part can't be filtered by tag anymore in the stock search system.
Only a category is provided, as an example: Electrical. It include solar panels, batteries, lights, rtg and fuel cells.
// define the category
EditorCategory
{
name = ExplosiveDevices
tag = _explosive
icon = MyMod/icons/tnt
tooltip = Explosive devices
}
// add parts to that category
@PART[Bomb01,NuclearDevice]
{
@tags ^= :$: _explosive: // add tag to the part
@category = none // optionally, hide the part from stock category
}
Raw stats are from the beginning of time until now. Each follower and download entry represents one hour of data. Uneventful hours are omitted.