public override void OnGUI(Rect rect)
        {
            if (PopupWindowContentForNewLibrary.s_Texts == null)
            {
                PopupWindowContentForNewLibrary.s_Texts = new PopupWindowContentForNewLibrary.Texts();
            }
            this.KeyboardHandling(base.editorWindow);
            float width      = 80f;
            Rect  wantedSize = EditorGUILayout.BeginVertical(new GUILayoutOption[0]);

            if (Event.current.type != EventType.Layout)
            {
                this.m_WantedSize = wantedSize;
            }
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.Label(PopupWindowContentForNewLibrary.s_Texts.header, EditorStyles.boldLabel, new GUILayoutOption[0]);
            GUILayout.EndHorizontal();
            EditorGUI.BeginChangeCheck();
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.Label(PopupWindowContentForNewLibrary.s_Texts.name, new GUILayoutOption[]
            {
                GUILayout.Width(width)
            });
            EditorGUI.FocusTextInControl("NewLibraryName");
            GUI.SetNextControlName("NewLibraryName");
            this.m_NewLibraryName = GUILayout.TextField(this.m_NewLibraryName, new GUILayoutOption[0]);
            GUILayout.EndHorizontal();
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.Label(PopupWindowContentForNewLibrary.s_Texts.location, new GUILayoutOption[]
            {
                GUILayout.Width(width)
            });
            this.m_SelectedIndexInPopup = EditorGUILayout.Popup(this.m_SelectedIndexInPopup, PopupWindowContentForNewLibrary.s_Texts.fileLocations, new GUILayoutOption[0]);
            GUILayout.EndHorizontal();
            if (EditorGUI.EndChangeCheck())
            {
                this.m_ErrorString = null;
            }
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            if (!string.IsNullOrEmpty(this.m_ErrorString))
            {
                Color color = GUI.color;
                GUI.color = new Color(1f, 0.8f, 0.8f);
                GUILayout.Label(GUIContent.Temp(this.m_ErrorString), EditorStyles.helpBox, new GUILayoutOption[0]);
                GUI.color = color;
            }
            GUILayout.FlexibleSpace();
            if (GUILayout.Button(GUIContent.Temp("Create"), new GUILayoutOption[0]))
            {
                this.CreateLibraryAndCloseWindow(base.editorWindow);
            }
            GUILayout.EndHorizontal();
            GUILayout.Space(15f);
            EditorGUILayout.EndVertical();
        }
		public override void OnGUI(Rect rect)
		{
			if (PopupWindowContentForNewLibrary.s_Texts == null)
			{
				PopupWindowContentForNewLibrary.s_Texts = new PopupWindowContentForNewLibrary.Texts();
			}
			this.KeyboardHandling(base.editorWindow);
			float width = 80f;
			Rect wantedSize = EditorGUILayout.BeginVertical(new GUILayoutOption[0]);
			if (Event.current.type != EventType.Layout)
			{
				this.m_WantedSize = wantedSize;
			}
			GUILayout.BeginHorizontal(new GUILayoutOption[0]);
			GUILayout.Label(PopupWindowContentForNewLibrary.s_Texts.header, EditorStyles.boldLabel, new GUILayoutOption[0]);
			GUILayout.EndHorizontal();
			EditorGUI.BeginChangeCheck();
			GUILayout.BeginHorizontal(new GUILayoutOption[0]);
			GUILayout.Label(PopupWindowContentForNewLibrary.s_Texts.name, new GUILayoutOption[]
			{
				GUILayout.Width(width)
			});
			EditorGUI.FocusTextInControl("NewLibraryName");
			GUI.SetNextControlName("NewLibraryName");
			this.m_NewLibraryName = GUILayout.TextField(this.m_NewLibraryName, new GUILayoutOption[0]);
			GUILayout.EndHorizontal();
			GUILayout.BeginHorizontal(new GUILayoutOption[0]);
			GUILayout.Label(PopupWindowContentForNewLibrary.s_Texts.location, new GUILayoutOption[]
			{
				GUILayout.Width(width)
			});
			this.m_SelectedIndexInPopup = EditorGUILayout.Popup(this.m_SelectedIndexInPopup, PopupWindowContentForNewLibrary.s_Texts.fileLocations, new GUILayoutOption[0]);
			GUILayout.EndHorizontal();
			if (EditorGUI.EndChangeCheck())
			{
				this.m_ErrorString = null;
			}
			GUILayout.BeginHorizontal(new GUILayoutOption[0]);
			if (!string.IsNullOrEmpty(this.m_ErrorString))
			{
				Color color = GUI.color;
				GUI.color = new Color(1f, 0.8f, 0.8f);
				GUILayout.Label(GUIContent.Temp(this.m_ErrorString), EditorStyles.helpBox, new GUILayoutOption[0]);
				GUI.color = color;
			}
			GUILayout.FlexibleSpace();
			if (GUILayout.Button(GUIContent.Temp("Create"), new GUILayoutOption[0]))
			{
				this.CreateLibraryAndCloseWindow(base.editorWindow);
			}
			GUILayout.EndHorizontal();
			GUILayout.Space(15f);
			EditorGUILayout.EndVertical();
		}