Class UIHelpers
public static class UIHelpers
- Inheritance
-
UIHelpers
Fields
BarLeftColor
public static Color BarLeftColor
Field Value
BarRightColor
public static Color BarRightColor
Field Value
Methods
DrawCenteredLabel(string, params GUILayoutOption[])
public static void DrawCenteredLabel(string labelText, params GUILayoutOption[] options)
Parameters
labelText
stringoptions
GUILayoutOption[]
DrawIcon(string, float)
public static void DrawIcon(string typeName, float size)
Parameters
GetIcon(string)
public static Texture GetIcon(string typeName)
Parameters
typeName
string
Returns
GetLODColor(float, int, bool)
public static Color GetLODColor(float level, int maxLevel, bool active)
Parameters
Returns
GetMaxSizeOfLabels(GUISkin, List<string>)
public static Vector2 GetMaxSizeOfLabels(GUISkin skin, List<string> labels)
Parameters
Returns
GetSchemaTypeByDisplayOrder()
public static SchemaType[] GetSchemaTypeByDisplayOrder()
Returns
HSVLerp(Color, Color, float)
public static Color HSVLerp(Color from, Color to, float amount)
Parameters
Returns
LinkLabel(GUIContent, GUIStyle, params GUILayoutOption[])
public static bool LinkLabel(GUIContent label, GUIStyle style, params GUILayoutOption[] options)
Parameters
label
GUIContentstyle
GUIStyleoptions
GUILayoutOption[]