Example #1
0
 public static void Icon(Texture icon, Pharse pharse = null)
 {
     GUILayout.Label(new GUIContent(icon, pharse != null ? pharse.Text : ""), GUILayout.ExpandWidth(false), GUILayout.ExpandHeight(false));
 }
Example #2
0
 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)));
 }
Example #3
0
 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)));
 }
Example #4
0
 public static bool Toggle(bool value, Pharse label, Pharse tooltip)
 {
     return(EditorGUILayout.Toggle(new GUIContent(label.Text, tooltip.Text), value));
 }
Example #5
0
 public static float FloatField(float value, Pharse label, Pharse tooltip)
 {
     return(EditorGUILayout.FloatField(new GUIContent(label.Text, tooltip.Text), value));
 }
Example #6
0
 public static string TextField(string value, Pharse label, Pharse tooltip)
 {
     return(EditorGUILayout.TextField(new GUIContent(label.Text, tooltip.Text), value));
 }