void OnGUI()
        {
            GUILayout.BeginArea(new Rect(MA_TextureAtlasserProUtils.VIEW_OFFSET, MA_TextureAtlasserProUtils.VIEW_OFFSET, position.width - (MA_TextureAtlasserProUtils.VIEW_OFFSET * 2), position.height - (MA_TextureAtlasserProUtils.VIEW_OFFSET * 2)));
            GUILayout.BeginVertical();

            //Input options
            settingsName = EditorGUILayout.TextField("Settings name", settingsName, GUILayout.ExpandWidth(true));
            if (settingsName == "Settings name" || string.IsNullOrEmpty(settingsName))
            {
                nameError           = true;
                GUI.backgroundColor = Color.red;
                GUILayout.Box("Error: Enter a valid settings name!", EditorStyles.helpBox);
                GUI.backgroundColor = Color.white;
            }
            else
            {
                nameError = false;
            }

            //Create
            if (!nameError)
            {
                if (GUILayout.Button("Create!", GUILayout.ExpandWidth(true), GUILayout.Height(37)))
                {
                    MA_TextureAtlasserProExportSettings exportSettings = MA_TextureAtlasserProUtils.CreateExportSettings(settingsName, true);

                    if (curWindow != null && curWindow.textureAtlas != null)
                    {
                        curWindow.textureAtlas.exportSettings = exportSettings;
                    }

                    this.Close();
                }
            }

            GUILayout.EndVertical();
            GUILayout.EndArea();
        }