private void DrawNoActiveSprint() { GUILayout.BeginVertical(); GUILayout.FlexibleSpace(); /* * GUILayout.BeginHorizontal(); * GUILayout.FlexibleSpace(); * GUILayout.Label("You haven't create any sprints!", EditorStyles.boldLabel); * GUILayout.FlexibleSpace(); * GUILayout.EndHorizontal(); */ GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); GUILayout.Label("Create a sprint"); if (GUILayout.Button("+")) { CreateSprintWindow.ShowEditor(); Repaint(); return; } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); GUILayout.FlexibleSpace(); GUILayout.EndVertical(); }
public static void ShowEditor() { CreateSprintWindow editor = (CreateSprintWindow)EditorWindow.GetWindow((typeof(CreateSprintWindow)), false, "Create New Sprint"); editor.position = new Rect(new Vector2(X_POS, y_POS), new Vector2(WIDTH, HEIGHT)); }