C# Class MBGUI, Pharos

GUI helper class to get a consistent layout
ファイルを表示 Open project: rstaewen/Pharos

Public Properties

Property Type Description
HasChanged bool
_DefaultWidth int

Public Methods

Method Description
DoButton ( GUIContent content, bool enabled, bool expand ) : bool
DoButton ( string text, string tooltip, bool enabled ) : bool
DoColorField ( string text, string tooltip, Color value ) : Color
DoCurve ( string text, string tooltip, AnimationCurve curve, float init0, float init1 ) : AnimationCurve
DoEditorEvent ( string text, string tooltip, MBSendMessageTarget, smEvent ) : MBSendMessageTarget,
DoEnumField ( string text, string tooltip, System value ) : Enum
DoFloatField ( string text, string tooltip, float value ) : float
DoFloatField ( string text, string tooltip, float value, bool round ) : float
DoFloatFieldSmall ( GUIContent content, float value, bool round ) : float
DoFloatFieldSmall ( string text, string tooltip, float value ) : float
DoFloatSlider ( string text, string tooltip, float value, float min, float max ) : float
DoFloatSliderSmall ( GUIContent content, float value, float min, float max ) : float
DoHeader ( string caption ) : void
DoIntField ( string text, string tooltip, int value ) : int
DoIntFieldSmall ( string text, string tooltip, int value ) : int
DoLabel ( GUIContent content ) : void
DoLabel ( string text ) : void
DoLabel ( string text, int width, bool bold ) : void
DoLabelButton ( GUIContent content, bool enabled ) : bool
DoLabelButton ( GUIContent content, int width, bool enabled ) : bool
DoLayerMask ( string text, string tooltip, LayerMask mask ) : LayerMask
DoMinMax ( string text, string tooltip, float &minValue, float &maxValue, float min, float max ) : void
DoObjectField ( string text, string tooltip, Object obj, System objtype ) : Object
DoTextField ( string text, string tooltip, string value ) : string
DoToggle ( Texture tex, string tooltip, bool value, bool &hasChanged ) : bool
DoToggle ( string text, string tooltip, bool value ) : bool
DoToggle ( string text, string tooltip, bool value, bool &hasChanged ) : bool
DoToggleButton ( GUIContent content, bool value ) : bool
DoVector2Field ( string text, Vector2 value ) : Vector2
DoVector3Array ( string text, Vector3 points, bool isPolygon, bool &folderopen ) : Vector3[]
DoVector3Field ( string text, Vector3 value ) : Vector3
LimitCurveValue ( AnimationCurve &curve, float min, float max ) : void

Method Details

DoButton() public static method

public static DoButton ( GUIContent content, bool enabled, bool expand ) : bool
content GUIContent
enabled bool
expand bool
return bool

DoButton() public static method

public static DoButton ( string text, string tooltip, bool enabled ) : bool
text string
tooltip string
enabled bool
return bool

DoColorField() public static method

public static DoColorField ( string text, string tooltip, Color value ) : Color
text string
tooltip string
value Color
return Color

DoCurve() public static method

public static DoCurve ( string text, string tooltip, AnimationCurve curve, float init0, float init1 ) : AnimationCurve
text string
tooltip string
curve UnityEngine.AnimationCurve
init0 float
init1 float
return UnityEngine.AnimationCurve

DoEditorEvent() public static method

public static DoEditorEvent ( string text, string tooltip, MBSendMessageTarget, smEvent ) : MBSendMessageTarget,
text string
tooltip string
smEvent MBSendMessageTarget,
return MBSendMessageTarget,

DoEnumField() public static method

public static DoEnumField ( string text, string tooltip, System value ) : Enum
text string
tooltip string
value System
return System.Enum

DoFloatField() public static method

public static DoFloatField ( string text, string tooltip, float value ) : float
text string
tooltip string
value float
return float

DoFloatField() public static method

public static DoFloatField ( string text, string tooltip, float value, bool round ) : float
text string
tooltip string
value float
round bool
return float

DoFloatFieldSmall() public static method

public static DoFloatFieldSmall ( GUIContent content, float value, bool round ) : float
content GUIContent
value float
round bool
return float

DoFloatFieldSmall() public static method

public static DoFloatFieldSmall ( string text, string tooltip, float value ) : float
text string
tooltip string
value float
return float

DoFloatSlider() public static method

public static DoFloatSlider ( string text, string tooltip, float value, float min, float max ) : float
text string
tooltip string
value float
min float
max float
return float

DoFloatSliderSmall() public static method

public static DoFloatSliderSmall ( GUIContent content, float value, float min, float max ) : float
content GUIContent
value float
min float
max float
return float

DoHeader() public static method

public static DoHeader ( string caption ) : void
caption string
return void

DoIntField() public static method

public static DoIntField ( string text, string tooltip, int value ) : int
text string
tooltip string
value int
return int

DoIntFieldSmall() public static method

public static DoIntFieldSmall ( string text, string tooltip, int value ) : int
text string
tooltip string
value int
return int

DoLabel() public static method

public static DoLabel ( GUIContent content ) : void
content GUIContent
return void

DoLabel() public static method

public static DoLabel ( string text ) : void
text string
return void

DoLabel() public static method

public static DoLabel ( string text, int width, bool bold ) : void
text string
width int
bold bool
return void

DoLabelButton() public static method

public static DoLabelButton ( GUIContent content, bool enabled ) : bool
content GUIContent
enabled bool
return bool

DoLabelButton() public static method

public static DoLabelButton ( GUIContent content, int width, bool enabled ) : bool
content GUIContent
width int
enabled bool
return bool

DoLayerMask() public static method

public static DoLayerMask ( string text, string tooltip, LayerMask mask ) : LayerMask
text string
tooltip string
mask LayerMask
return LayerMask

DoMinMax() public static method

public static DoMinMax ( string text, string tooltip, float &minValue, float &maxValue, float min, float max ) : void
text string
tooltip string
minValue float
maxValue float
min float
max float
return void

DoObjectField() public static method

public static DoObjectField ( string text, string tooltip, Object obj, System objtype ) : Object
text string
tooltip string
obj Object
objtype System
return Object

DoTextField() public static method

public static DoTextField ( string text, string tooltip, string value ) : string
text string
tooltip string
value string
return string

DoToggle() public static method

public static DoToggle ( Texture tex, string tooltip, bool value, bool &hasChanged ) : bool
tex Texture
tooltip string
value bool
hasChanged bool
return bool

DoToggle() public static method

public static DoToggle ( string text, string tooltip, bool value ) : bool
text string
tooltip string
value bool
return bool

DoToggle() public static method

public static DoToggle ( string text, string tooltip, bool value, bool &hasChanged ) : bool
text string
tooltip string
value bool
hasChanged bool
return bool

DoToggleButton() public static method

public static DoToggleButton ( GUIContent content, bool value ) : bool
content GUIContent
value bool
return bool

DoVector2Field() public static method

public static DoVector2Field ( string text, Vector2 value ) : Vector2
text string
value Vector2
return Vector2

DoVector3Array() public static method

public static DoVector3Array ( string text, Vector3 points, bool isPolygon, bool &folderopen ) : Vector3[]
text string
points Vector3
isPolygon bool
folderopen bool
return Vector3[]

DoVector3Field() public static method

public static DoVector3Field ( string text, Vector3 value ) : Vector3
text string
value Vector3
return Vector3

LimitCurveValue() public static method

public static LimitCurveValue ( AnimationCurve &curve, float min, float max ) : void
curve UnityEngine.AnimationCurve
min float
max float
return void

Property Details

HasChanged public_oe static_oe property

public static bool HasChanged
return bool

_DefaultWidth public_oe static_oe property

public static int _DefaultWidth
return int