Rimworld 1.5 added a groupingLabel property on XML defs.
This property allows a building to be categorized for the Take to XXX destination in any workshop (cf Rimworld.Dialog_BillConfig#206).
We can also group any Building_Storage with others to create new storage areas.
To implement these features, each building needs to implement a Thing extending Building_StorageandIRenamable instead of only Building_Storage before 1.5.
Adding IRenamable on the building add the possibility to rename directly the storage building by creating a group on the rename. There's also a rename option available in the bottom-left drescription window (next to the icon i).
This PR is a starting point to implement these features. By moving the renaming logic, I don't know if Dialog_CompSettings must be kept.
Rimworld 1.5 added a
groupingLabel
property on XML defs.This property allows a building to be categorized for the
Take to XXX
destination in any workshop (cfRimworld.Dialog_BillConfig#206
). We can also group anyBuilding_Storage
with others to create new storage areas.To implement these features, each building needs to implement a
Thing
extendingBuilding_Storage
andIRenamable
instead of onlyBuilding_Storage
before 1.5.Adding
IRenamable
on the building add the possibility to rename directly the storage building by creating a group on the rename. There's also a rename option available in the bottom-left drescription window (next to the iconi
).This PR is a starting point to implement these features. By moving the renaming logic, I don't know if
Dialog_CompSettings
must be kept.This work is based on the one from @just-harry on RimFridge.
Missing :