C# Class KSPPluginFramework.MonoBehaviourWindow

An Extended version of the UnityEngine.MonoBehaviour Class Basically a template for a Window, has the MonoBehaviourExtended properties and extra bits to make drawing a window easier
Inheritance: MonoBehaviourExtended
Datei anzeigen Open project: jkoritzinsky/Extensive-Engineer-Report Class Usage Examples

Private Properties

Property Type Description
Awake void
DrawGUI void
DrawToolTip void
DrawWindow void
DrawWindowInternal void
DrawWindowPost void
DrawWindowPre void
MonoBehaviourWindow System
SetTooltipText void

Private Methods

Method Description
Awake ( ) : void
DrawGUI ( ) : void

This is the Code that draws the window and sets the skin !!!! You have to set the skin before drawing the window or you will scratch your head for ever

DrawToolTip ( ) : void

This is the meat of drawing the tooltip on screen

DrawWindow ( Int32 id ) : void

This is the must be overridden function that equates to the content of the window

DrawWindowInternal ( Int32 id ) : void

Private function that handles wrapping the drawwindow functionality with the supplementary stuff - dragging, tooltips, etc

DrawWindowPost ( Int32 id ) : void

This is the optionally overridden function that runs after DrawWindow, but before tooltips, etc

DrawWindowPre ( Int32 id ) : void

This is the optionally overridden function that runs before DrawWindow

MonoBehaviourWindow ( ) : System
SetTooltipText ( ) : void

This function is run at the end of each draw loop to store the tooltiptext for later