Esempio n. 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));
 }
Esempio n. 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)));
 }
Esempio n. 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)));
 }
Esempio n. 4
0
 public static bool Toggle(bool value, Pharse label, Pharse tooltip)
 {
     return(EditorGUILayout.Toggle(new GUIContent(label.Text, tooltip.Text), value));
 }
Esempio n. 5
0
 public static float FloatField(float value, Pharse label, Pharse tooltip)
 {
     return(EditorGUILayout.FloatField(new GUIContent(label.Text, tooltip.Text), value));
 }
Esempio n. 6
0
 public static string TextField(string value, Pharse label, Pharse tooltip)
 {
     return(EditorGUILayout.TextField(new GUIContent(label.Text, tooltip.Text), value));
 }