public static void Icon(Texture icon, Pharse pharse = null) { GUILayout.Label(new GUIContent(icon, pharse != null ? pharse.Text : ""), GUILayout.ExpandWidth(false), GUILayout.ExpandHeight(false)); }
public static bool Button(Texture icon, Pharse pharse = null) { return(GUILayout.Button(new GUIContent(icon, pharse != null ? pharse.Text : ""), GUILayout.ExpandWidth(false), GUILayout.ExpandHeight(false))); }
public static bool HeaderButton(Texture icon, Pharse pharse = null) { return(GUILayout.Button(new GUIContent(icon, pharse != null ? pharse.Text : ""), EditorStyles.toolbarButton, GUILayout.ExpandWidth(false), GUILayout.MaxHeight(17f))); }
public static bool Toggle(bool value, Pharse label, Pharse tooltip) { return(EditorGUILayout.Toggle(new GUIContent(label.Text, tooltip.Text), value)); }
public static float FloatField(float value, Pharse label, Pharse tooltip) { return(EditorGUILayout.FloatField(new GUIContent(label.Text, tooltip.Text), value)); }
public static string TextField(string value, Pharse label, Pharse tooltip) { return(EditorGUILayout.TextField(new GUIContent(label.Text, tooltip.Text), value)); }