Exemple #1
0
        public static void Init()
        {
            GroupifyWindow window = EditorWindow.GetWindow <GroupifyWindow>();

            window.minSize = new Vector2(370, 250);
            window.Show();

            if (window.Groupify == null)
            {
                window.Groupify = FindObjectOfType <Groupify>();
            }
        }
Exemple #2
0
 public override void OnInspectorGUI()
 {
     GUILayout.BeginVertical(GUI.skin.box);
     GUILayout.BeginHorizontal();
     GUILayout.Label("Groups: " + groupify.GroupsCount);
     GUILayout.EndHorizontal();
     if (GUILayout.Button("Open groupify window", EditorStyles.miniButton))
     {
         GroupifyWindow.Init(groupify);
     }
     if (GUILayout.Button("About", EditorStyles.miniButton))
     {
     }
     GUILayout.EndVertical();
 }
Exemple #3
0
 private void NoGroupify()
 {
     using (new VerticalBlock())
     {
         GUILayout.FlexibleSpace();
         using (new HorizontalBlock())
         {
             GUILayout.FlexibleSpace();
             if (GUILayout.Button("Create groupify"))
             {
                 GroupifyWindow.CreateGroupify();
             }
             GUILayout.FlexibleSpace();
         }
         GUILayout.FlexibleSpace();
     }
 }