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