예제 #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));
 }