private void DrawToolbar()
 {
     if (GUILayout.Button("< Back", EditorToolkit.LargeToolbarButtonLayoutOption()))
     {
         Selection.activeGameObject = pool.transform.parent.gameObject;
     }
 }
        private void DrawToolbar()
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();

            if (GUILayout.Button("New Zone", EditorToolkit.LargeToolbarButtonLayoutOption()))
            {
                AddBoxZone();
            }

            EditorGUILayout.Space();
            EditorGUILayout.EndHorizontal();
        }
Exemple #3
0
        private void ShowToolbar()
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();

            if (GUILayout.Button("New Group", EditorToolkit.LargeToolbarButtonLayoutOption()))
            {
                AddGroup();
            }

            EditorGUILayout.Space();
            EditorGUILayout.EndHorizontal();
        }
Exemple #4
0
        private void DrawToolbar()
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();

            if (GUILayout.Button("Add Pool", EditorToolkit.LargeToolbarButtonLayoutOption()))
            {
                CreatePool();
            }

            if (GUILayout.Button("Destroy All", EditorToolkit.LargeToolbarButtonLayoutOption()))
            {
                DestroyAll();
            }

            EditorGUILayout.Space();
            EditorGUILayout.EndHorizontal();
        }
Exemple #5
0
        private void DrawToolbar()
        {
            EditorGUILayout.BeginHorizontal();

            if (GUILayout.Button("< Back", EditorToolkit.LargeToolbarButtonLayoutOption()))
            {
                Selection.activeGameObject = group.gameObject.transform.parent.gameObject;
            }

            EditorGUILayout.Space();

            if (GUILayout.Button("Add Segment", EditorToolkit.LargeToolbarButtonLayoutOption()))
            {
                AddSegment();
            }

            EditorGUILayout.EndHorizontal();
        }
Exemple #6
0
        private void DrawSupportInfo()
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();
            if (GUILayout.Button("Forum Link", EditorToolkit.LargeToolbarButtonLayoutOption()))
            {
                Application.OpenURL("http://forum.unity3d.com/threads/201034-uDesign-Tools-Released");
            }
            EditorGUILayout.Space();
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.Space();

            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();
            if (GUILayout.Button("Contact Support", EditorToolkit.LargeToolbarButtonLayoutOption()))
            {
                Application.OpenURL("mailto:[email protected]");
            }
            EditorGUILayout.Space();
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.Space();
        }