Ludeon Forums

RimWorld => Mods => Help => Topic started by: mindcozy on August 29, 2016, 11:06:12 AM

Title: Help making my first Gizmo?
Post by: mindcozy on August 29, 2016, 11:06:12 AM
I'm trying to implement a timer switch for powered appliances as a comp, but the only real thing that has me stumped is how to make a gizmo.  I think understand the Comp and CompProperties_ classes, but the code for the specific Gizmos seems to be internal. 

Any help would be very much appreciated!
Title: Re: Help making my first Gizmo?
Post by: Jaxxa on August 29, 2016, 04:32:32 PM
I am using a few Gizmoes in my Shields mod.
Mainly have a look at the "GetGizmos()" function.

Hope that helps. Might not be the best way to do it, but should get you started.

https://github.com/jaxxa/ED-Shields/blob/master/Source/ED-Shields/Shields/Building_Shield.cs