lilwhitemouse / RimWorld-LWM.DeepStorage

A mod for the game RimWorld that has a set of Deep Storage Units that allow storing more than one item at a location.
GNU General Public License v3.0
29 stars 36 forks source link

[WIP] Use grouping labels from 1.5 #151

Open AamuLumi opened 4 months ago

AamuLumi commented 4 months ago

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_Storage and IRenamable 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.

This work is based on the one from @just-harry on RimFridge.

Missing :

lilwhitemouse commented 4 months ago

Oh my, this looks like it's going to parallel a lot work I did for storage building settings. Thanks for putting this together