Beispiel #1
0
		public static void Center(FoldoutDraw element) {
			GUILayout.BeginHorizontal();
			GUILayout.FlexibleSpace();
			element();
			GUILayout.FlexibleSpace();
			GUILayout.EndHorizontal();
		}
Beispiel #2
0
 public static void Center(FoldoutDraw element)
 {
     GUILayout.BeginHorizontal();
     GUILayout.FlexibleSpace();
     element();
     GUILayout.FlexibleSpace();
     GUILayout.EndHorizontal();
 }
Beispiel #3
0
		public static void Indent(float width, FoldoutDraw draw) {
			EditorGUILayout.BeginHorizontal();
			EditorGUILayout.BeginVertical(GUILayout.Width(width));
			GUILayout.Label("");
			EditorGUILayout.EndVertical();
			EditorGUILayout.BeginVertical();
			draw.Invoke();
			EditorGUILayout.EndVertical();
			EditorGUILayout.EndHorizontal();
		}
Beispiel #4
0
		public static void Foldout(ref bool open, GUIContent content, FoldoutDraw draw, FoldoutDraw moreLabel) {
			GUILayout.BeginHorizontal();
			open = EditorGUILayout.Foldout(open, content);
			if(moreLabel != null)
				moreLabel.Invoke();
			GUILayout.EndHorizontal();
			if(open) {
				Indent(draw);
			}
		}
Beispiel #5
0
 public static void Indent(float width, FoldoutDraw draw)
 {
     EditorGUILayout.BeginHorizontal();
     EditorGUILayout.BeginVertical(GUILayout.Width(width));
     GUILayout.Label("");
     EditorGUILayout.EndVertical();
     EditorGUILayout.BeginVertical();
     draw.Invoke();
     EditorGUILayout.EndVertical();
     EditorGUILayout.EndHorizontal();
 }
Beispiel #6
0
 public static void Foldout(ref bool open, GUIContent content, FoldoutDraw draw, FoldoutDraw moreLabel)
 {
     GUILayout.BeginHorizontal();
     open = EditorGUILayout.Foldout(open, content);
     if (moreLabel != null)
     {
         moreLabel.Invoke();
     }
     GUILayout.EndHorizontal();
     if (open)
     {
         Indent(draw);
     }
 }
Beispiel #7
0
 public static void Indent(FoldoutDraw draw)
 {
     Indent(TAB_SIZE, draw);
 }
Beispiel #8
0
 public static void Foldout(ref bool open, string title, FoldoutDraw draw, FoldoutDraw moreLabel)
 {
     Foldout(ref open, new GUIContent(title), draw, moreLabel);
 }
Beispiel #9
0
 public static void Foldout(ref bool open, GUIContent content, FoldoutDraw draw)
 {
     Foldout(ref open, content, draw, null);
 }
Beispiel #10
0
 public static void Foldout(ref bool open, string title, FoldoutDraw draw)
 {
     Foldout(ref open, new GUIContent(title), draw, null);
 }
Beispiel #11
0
 public static void Foldout(ref bool open, string title, FoldoutDraw draw, FoldoutDraw moreLabel)
 {
     Foldout(ref open, new GUIContent(title), draw, moreLabel);
 }
Beispiel #12
0
 public static void Foldout(ref bool open, GUIContent content, FoldoutDraw draw)
 {
     Foldout(ref open, content, draw, null);
 }
Beispiel #13
0
 public static void Foldout(ref bool open, string title, FoldoutDraw draw)
 {
     Foldout(ref open, new GUIContent(title), draw, null);
 }
Beispiel #14
0
 public static void Indent(FoldoutDraw draw)
 {
     Indent(TAB_SIZE, draw);
 }