Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
VehiclePhysics.EditorTools.VPPropertyDrawer Class Referenceabstract
Inheritance diagram for VehiclePhysics.EditorTools.VPPropertyDrawer:
VehiclePhysics.EditorTools.AbsDrawer VehiclePhysics.EditorTools.AngularJointMotionDrawer VehiclePhysics.EditorTools.AntiSpinDrawer VehiclePhysics.EditorTools.AxleDrawer VehiclePhysics.EditorTools.BrakesDrawer VehiclePhysics.EditorTools.ChangeDrawer VehiclePhysics.EditorTools.ClutchDrawer VehiclePhysics.EditorTools.CurvePointDrawer VehiclePhysics.EditorTools.DifferentialDrawer VehiclePhysics.EditorTools.EngineDrawer VehiclePhysics.EditorTools.GearboxDrawer VehiclePhysics.EditorTools.HeadHorizontalMotionDrawer VehiclePhysics.EditorTools.HeadVerticalMotionDrawer VehiclePhysics.EditorTools.InertiaDrawer VehiclePhysics.EditorTools.JointMotionDrawer VehiclePhysics.EditorTools.RetarderDrawer VehiclePhysics.EditorTools.SpecificationsDrawer VehiclePhysics.EditorTools.StabilityControlDrawer VehiclePhysics.EditorTools.SteeringAidsDrawer VehiclePhysics.EditorTools.SteeringDrawer VehiclePhysics.EditorTools.TireFrictionDrawer VehiclePhysics.EditorTools.TractionControlDrawer VehiclePhysics.EditorTools.TransmissionDrawer

Public Types

enum  Mode { Mode.Draw, Mode.GetHeight }
 

Public Member Functions

void Begin (Rect position, SerializedProperty property, GUIContent label)
 
void BeginInline (Rect position, SerializedProperty property, GUIContent label, float labelWidth=50.0f)
 
void DrawCaptionLabel (string label, string hint=null)
 
void DrawCombinedProperty (SerializedProperty property, float widthRatio, string propertyName1, string propertyName2, string label, string hint)
 
void DrawCombinedPropertyInline (SerializedProperty property, float widthRatio, float separation, string propertyName1, string propertyName2)
 
void DrawCombinedPropertyInline (SerializedProperty property, float widthRatio1, float widthRatio2, float separation, string propertyName1, string propertyName2, string propertyName3)
 
abstract void DrawGUI (Rect position, SerializedProperty property, GUIContent label)
 
void DrawHeader (string label, string hint=null)
 
void DrawHelpBox (string message, MessageType type)
 
void DrawInfoLabel (string label, string text, string hint=null)
 
void DrawLabel (string label, string hint=null)
 
string DrawMinMaxSlider (SerializedProperty property, string propertyNameMin, string propertyNameMax, float min, float max, string label=null, string hint=null, string valueFormat="0.00")
 
int DrawPopupField (string label, int selectedIndex, string[] displayedOptions)
 
SerializedProperty DrawProperty (SerializedProperty property, string propertyName, string label=null, string hint=null)
 
void End ()
 
void EndInline ()
 
Rect GetControlRect (float height)
 
Rect GetControlRect ()
 
Rect GetControlRectInline (float height)
 
Rect GetControlRectInline ()
 
override float GetPropertyHeight (SerializedProperty property, GUIContent label)
 
override void OnGUI (Rect position, SerializedProperty property, GUIContent label)
 
void SetMinLabelWidth (float minLabelWidth=0.0f, float labelWidthRatio=0.4f)
 
void Space (float height)
 

Public Attributes

float combinedPropertySeparation = 4
 
int controlSpacing = 2
 

Properties

Mode mode [get, set]
 

Member Enumeration Documentation

Enumerator
Draw 
GetHeight 

Member Function Documentation

void VehiclePhysics.EditorTools.VPPropertyDrawer.Begin ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.BeginInline ( Rect  position,
SerializedProperty  property,
GUIContent  label,
float  labelWidth = 50.0f 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.DrawCaptionLabel ( string  label,
string  hint = null 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.DrawCombinedProperty ( SerializedProperty  property,
float  widthRatio,
string  propertyName1,
string  propertyName2,
string  label,
string  hint 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.DrawCombinedPropertyInline ( SerializedProperty  property,
float  widthRatio,
float  separation,
string  propertyName1,
string  propertyName2 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.DrawCombinedPropertyInline ( SerializedProperty  property,
float  widthRatio1,
float  widthRatio2,
float  separation,
string  propertyName1,
string  propertyName2,
string  propertyName3 
)
inline
abstract void VehiclePhysics.EditorTools.VPPropertyDrawer.DrawGUI ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)
pure virtual
void VehiclePhysics.EditorTools.VPPropertyDrawer.DrawHeader ( string  label,
string  hint = null 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.DrawHelpBox ( string  message,
MessageType  type 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.DrawInfoLabel ( string  label,
string  text,
string  hint = null 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.DrawLabel ( string  label,
string  hint = null 
)
inline
string VehiclePhysics.EditorTools.VPPropertyDrawer.DrawMinMaxSlider ( SerializedProperty  property,
string  propertyNameMin,
string  propertyNameMax,
float  min,
float  max,
string  label = null,
string  hint = null,
string  valueFormat = "0.00" 
)
inline
int VehiclePhysics.EditorTools.VPPropertyDrawer.DrawPopupField ( string  label,
int  selectedIndex,
string[]  displayedOptions 
)
inline
SerializedProperty VehiclePhysics.EditorTools.VPPropertyDrawer.DrawProperty ( SerializedProperty  property,
string  propertyName,
string  label = null,
string  hint = null 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.End ( )
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.EndInline ( )
inline
Rect VehiclePhysics.EditorTools.VPPropertyDrawer.GetControlRect ( float  height)
inline
Rect VehiclePhysics.EditorTools.VPPropertyDrawer.GetControlRect ( )
inline
Rect VehiclePhysics.EditorTools.VPPropertyDrawer.GetControlRectInline ( float  height)
inline
Rect VehiclePhysics.EditorTools.VPPropertyDrawer.GetControlRectInline ( )
inline
override float VehiclePhysics.EditorTools.VPPropertyDrawer.GetPropertyHeight ( SerializedProperty  property,
GUIContent  label 
)
inline
override void VehiclePhysics.EditorTools.VPPropertyDrawer.OnGUI ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.SetMinLabelWidth ( float  minLabelWidth = 0.0f,
float  labelWidthRatio = 0.4f 
)
inline
void VehiclePhysics.EditorTools.VPPropertyDrawer.Space ( float  height)
inline

Member Data Documentation

float VehiclePhysics.EditorTools.VPPropertyDrawer.combinedPropertySeparation = 4
int VehiclePhysics.EditorTools.VPPropertyDrawer.controlSpacing = 2

Property Documentation

Mode VehiclePhysics.EditorTools.VPPropertyDrawer.mode
getset

The documentation for this class was generated from the following file: