C# 클래스 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
상속: MonoBehaviourExtended
파일 보기 프로젝트 열기: jkoritzinsky/Extensive-Engineer-Report 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Awake void
DrawGUI void
DrawToolTip void
DrawWindow void
DrawWindowInternal void
DrawWindowPost void
DrawWindowPre void
MonoBehaviourWindow System
SetTooltipText void

비공개 메소드들

메소드 설명
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