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.UnityEditor.VPPropertyDrawer Class Referenceabstract
Inheritance diagram for VehiclePhysics.UnityEditor.VPPropertyDrawer:
VehiclePhysics.UnityEditor.AxleDrawer VehiclePhysics.UnityEditor.BrakesDrawer VehiclePhysics.UnityEditor.ClutchDrawer VehiclePhysics.UnityEditor.DifferentialDrawer VehiclePhysics.UnityEditor.EngineDrawer VehiclePhysics.UnityEditor.GearboxDrawer VehiclePhysics.UnityEditor.RetarderDrawer VehiclePhysics.UnityEditor.SteeringDrawer VehiclePhysics.UnityEditor.TireFrictionDrawer VehiclePhysics.UnityEditor.TransmissionDrawer

Public Types

enum  Mode { Mode.Draw, Mode.GetHeight }
 

Public Member Functions

void Begin (Rect position, SerializedProperty property, GUIContent label)
 
void DrawCaptionLabel (string label, string hint=null)
 
void DrawCombinedProperty (SerializedProperty property, string propertyName1, string propertyName2, string label, string hint)
 
abstract void DrawGUI (Rect position, SerializedProperty property, GUIContent label)
 
void DrawHelpBox (string message, MessageType type)
 
void DrawInfoLabel (string label, string text, string hint=null)
 
void DrawLabel (string label, string hint=null)
 
int DrawPopupField (string label, int selectedIndex, string[] displayedOptions)
 
SerializedProperty DrawProperty (SerializedProperty property, string propertyName, string label=null, string hint=null)
 
void End ()
 
Rect GetControlRect (float height)
 
Rect GetControlRect ()
 
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
 Mode the DrawGUI method is being called for. More...
 
float combinedPropertyWidthRatio = 0.6f
 In combined properties, the horizontal separation between both properties. More...
 
int controlSpacing = 2
 In combined properties, the width % assigned to the first property. More...
 

Properties

Mode mode [get, set]
 

Member Enumeration Documentation

Enumerator
Draw 
GetHeight 

Member Function Documentation

void VehiclePhysics.UnityEditor.VPPropertyDrawer.Begin ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)
inline
void VehiclePhysics.UnityEditor.VPPropertyDrawer.DrawCaptionLabel ( string  label,
string  hint = null 
)
inline
void VehiclePhysics.UnityEditor.VPPropertyDrawer.DrawCombinedProperty ( SerializedProperty  property,
string  propertyName1,
string  propertyName2,
string  label,
string  hint 
)
inline

< Indent must be disabled por the properties

< First property

< Second property

< Restore indent level

abstract void VehiclePhysics.UnityEditor.VPPropertyDrawer.DrawGUI ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)
pure virtual
void VehiclePhysics.UnityEditor.VPPropertyDrawer.DrawHelpBox ( string  message,
MessageType  type 
)
inline

< The -1 for the icon to display correctly

< Debug.Log("Mode: " + mode + " level: " + EditorGUI.indentLevel + " Rect: " + m_position + " HEIGHT: " + boxHeight);

void VehiclePhysics.UnityEditor.VPPropertyDrawer.DrawInfoLabel ( string  label,
string  text,
string  hint = null 
)
inline
void VehiclePhysics.UnityEditor.VPPropertyDrawer.DrawLabel ( string  label,
string  hint = null 
)
inline
int VehiclePhysics.UnityEditor.VPPropertyDrawer.DrawPopupField ( string  label,
int  selectedIndex,
string[]  displayedOptions 
)
inline
SerializedProperty VehiclePhysics.UnityEditor.VPPropertyDrawer.DrawProperty ( SerializedProperty  property,
string  propertyName,
string  label = null,
string  hint = null 
)
inline
void VehiclePhysics.UnityEditor.VPPropertyDrawer.End ( )
inline
Rect VehiclePhysics.UnityEditor.VPPropertyDrawer.GetControlRect ( float  height)
inline
Rect VehiclePhysics.UnityEditor.VPPropertyDrawer.GetControlRect ( )
inline
override float VehiclePhysics.UnityEditor.VPPropertyDrawer.GetPropertyHeight ( SerializedProperty  property,
GUIContent  label 
)
inline

< Standard margin

< Scroll bar

override void VehiclePhysics.UnityEditor.VPPropertyDrawer.OnGUI ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)
inline
void VehiclePhysics.UnityEditor.VPPropertyDrawer.SetMinLabelWidth ( float  minLabelWidth = 0.0f,
float  labelWidthRatio = 0.4f 
)
inline
void VehiclePhysics.UnityEditor.VPPropertyDrawer.Space ( float  height)
inline

Member Data Documentation

float VehiclePhysics.UnityEditor.VPPropertyDrawer.combinedPropertySeparation = 4

Mode the DrawGUI method is being called for.

float VehiclePhysics.UnityEditor.VPPropertyDrawer.combinedPropertyWidthRatio = 0.6f

In combined properties, the horizontal separation between both properties.

int VehiclePhysics.UnityEditor.VPPropertyDrawer.controlSpacing = 2

In combined properties, the width % assigned to the first property.

Property Documentation

Mode VehiclePhysics.UnityEditor.VPPropertyDrawer.mode
getset

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