public override void OnGUI(Rect rect)
{
if (s_Texts == null)
{
s_Texts = new Texts();
}
this.KeyboardHandling(base.editorWindow);
float width = 80f;
Rect rect2 = EditorGUILayout.BeginVertical(new GUILayoutOption[0]);
if (Event.current.type != EventType.Layout)
{
this.m_WantedSize = rect2;
}
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayout.Label(s_Texts.header, EditorStyles.boldLabel, new GUILayoutOption[0]);
GUILayout.EndHorizontal();
EditorGUI.BeginChangeCheck();
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.Width(width) };
GUILayout.Label(s_Texts.name, options);
EditorGUI.FocusTextInControl("NewLibraryName");
GUI.SetNextControlName("NewLibraryName");
this.m_NewLibraryName = GUILayout.TextField(this.m_NewLibraryName, new GUILayoutOption[0]);
GUILayout.EndHorizontal();
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayoutOption[] optionArray2 = new GUILayoutOption[] { GUILayout.Width(width) };
GUILayout.Label(s_Texts.location, optionArray2);
this.m_SelectedIndexInPopup = EditorGUILayout.Popup(this.m_SelectedIndexInPopup, 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();
}