Aviuz / BadPeople

Bad People mod for RimWorld
3 stars 3 forks source link

Non-destructive tab insertion. #13

Closed jptrrs closed 3 years ago

jptrrs commented 3 years ago

Hi! It was reported to me this mod was interfering with a custom tab I added to all pawns on my mod, Human Resources. Then I decided to take a look at your code. I realized the way you were adding and removing your debug tab was, in the end, resetting the inspector panels for pawns to the default def only. This will erase any panels added by any other mods! This is a quick fix, switching your debug tab to use the built-in tab visibility instead. A much friendlier approach, IMHO. I hooked it up so you get the same behaviour form your settings.

Hazzer commented 3 years ago

Yeah, looks good. Thank you!