C# Class Kramax.Utility.GeneralUI

Show file Open project: Kramax/KramaxAutoPilot

Public Properties

Property Type Description
ActiveBackground Color
DelayLabel UnityEngine.GUIContent
EasingLabel UnityEngine.GUIContent
HeaderButtonBackground Color
IMaxLabel UnityEngine.GUIContent
IMinLabel UnityEngine.GUIContent
InActiveBackground Color
KdLabel UnityEngine.GUIContent
KiLabel UnityEngine.GUIContent
KpLabel UnityEngine.GUIContent
ScalarLabel UnityEngine.GUIContent
UISkin UnityEngine.GUISkin
stockBackgroundGUIColor Color

Public Methods

Method Description
customSkin ( ) : void
labPlusNumBox ( GUIContent labelText, string boxText, float labelWidth = 100, float boxWidth = 60 ) : double
labPlusNumBox ( string labelText, string boxText, float labelWidth = 100, float boxWidth = 60 ) : double

Draws a label and text box of specified widths with +/- 10% increment buttons. Returns the numeric value of the text box

numberEntryBox ( double old_val, bool &inc_dec_pressed, double inc = 1.0, string nFormat = ",0.0#####", float boxWidth = 60 ) : double
postMessage ( string message ) : void

Method Details

customSkin() public static method

public static customSkin ( ) : void
return void

labPlusNumBox() public static method

public static labPlusNumBox ( GUIContent labelText, string boxText, float labelWidth = 100, float boxWidth = 60 ) : double
labelText UnityEngine.GUIContent
boxText string
labelWidth float
boxWidth float
return double

labPlusNumBox() public static method

Draws a label and text box of specified widths with +/- 10% increment buttons. Returns the numeric value of the text box
public static labPlusNumBox ( string labelText, string boxText, float labelWidth = 100, float boxWidth = 60 ) : double
labelText string text for the label
boxText string number to display in text box
labelWidth float
boxWidth float
return double

numberEntryBox() public static method

public static numberEntryBox ( double old_val, bool &inc_dec_pressed, double inc = 1.0, string nFormat = ",0.0#####", float boxWidth = 60 ) : double
old_val double
inc_dec_pressed bool
inc double
nFormat string
boxWidth float
return double

postMessage() public static method

public static postMessage ( string message ) : void
message string
return void

Property Details

ActiveBackground public static property

public static Color ActiveBackground
return Color

DelayLabel public static property

public static GUIContent,UnityEngine DelayLabel
return UnityEngine.GUIContent

EasingLabel public static property

public static GUIContent,UnityEngine EasingLabel
return UnityEngine.GUIContent

HeaderButtonBackground public static property

public static Color HeaderButtonBackground
return Color

IMaxLabel public static property

public static GUIContent,UnityEngine IMaxLabel
return UnityEngine.GUIContent

IMinLabel public static property

public static GUIContent,UnityEngine IMinLabel
return UnityEngine.GUIContent

InActiveBackground public static property

public static Color InActiveBackground
return Color

KdLabel public static property

public static GUIContent,UnityEngine KdLabel
return UnityEngine.GUIContent

KiLabel public static property

public static GUIContent,UnityEngine KiLabel
return UnityEngine.GUIContent

KpLabel public static property

public static GUIContent,UnityEngine KpLabel
return UnityEngine.GUIContent

ScalarLabel public static property

public static GUIContent,UnityEngine ScalarLabel
return UnityEngine.GUIContent

UISkin public static property

public static GUISkin,UnityEngine UISkin
return UnityEngine.GUISkin

stockBackgroundGUIColor public static property

public static Color stockBackgroundGUIColor
return Color