change existing button

Started by vinny, October 28, 2020, 01:30:01 AM

Previous topic - Next topic

vinny

Hi!
Could you please help me with another problem.
I want to change mechanic (and texture too) of Harvest button for plant. But only for one plant (I override Plant class for this). How can I do this ?
Maybe I need just hide Harvest button and create own button? I know how to create new button, but how to hide existing?

LWM

What, exactly, do you want to do to this button?

You can see what I did for the "cut tree" button in my "Minor Changes" mod, which may give you an idea what to do?  https://github.com/lilwhitemouse/RimWorld-LWM.MinorChanges/blob/master/Source/Patch_Designator_PlantsCut-cutTrees.cs