Help making my first Gizmo?

Started by mindcozy, August 29, 2016, 11:06:12 AM

Previous topic - Next topic

mindcozy

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!

Jaxxa

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