public void OnGUI()
{
AboutWindow.LoadLogos();
GUILayout.Space(10f);
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayout.Space(5f);
GUILayout.BeginVertical(new GUILayoutOption[0]);
GUILayout.FlexibleSpace();
GUILayout.Label(AboutWindow.s_Header, GUIStyle.none, new GUILayoutOption[0]);
this.ListenForSecretCodes();
string text = string.Empty;
if (InternalEditorUtility.HasPro())
{
text = " Pro";
}
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayout.Space(52f);
this.m_ShowDetailedVersion |= Event.current.alt;
if (this.m_ShowDetailedVersion)
{
int unityVersionDate = InternalEditorUtility.GetUnityVersionDate();
DateTime dateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0);
string unityBuildBranch = InternalEditorUtility.GetUnityBuildBranch();
string text2 = string.Empty;
if (unityBuildBranch.Length > 0)
{
text2 = "Branch: " + unityBuildBranch;
}
EditorGUILayout.SelectableLabel(string.Format("Version {0}{1}\n{2:r}\n{3}", new object[]
{
InternalEditorUtility.GetFullUnityVersion(),
text,
dateTime.AddSeconds((double)unityVersionDate),
text2
}), new GUILayoutOption[]
{
GUILayout.Width(400f),
GUILayout.Height(42f)
});
this.m_TextInitialYPos = 108f;
}
else
{
GUILayout.Label(string.Format("Version {0}{1}", Application.unityVersion, text), new GUILayoutOption[0]);
}
if (Event.current.type == EventType.ValidateCommand)
{
return;
}
GUILayout.EndHorizontal();
GUILayout.Space(4f);
GUILayout.EndVertical();
GUILayout.EndHorizontal();
GUILayout.FlexibleSpace();
GUI.BeginGroup(GUILayoutUtility.GetRect(10f, this.m_TextInitialYPos));
float width = base.position.width - 10f;
float num = EditorStyles.wordWrappedLabel.CalcHeight(GUIContent.Temp(this.kCreditsNames), width);
Rect position = new Rect(5f, this.m_TextYPos, width, num);
GUI.Label(position, this.kCreditsNames, EditorStyles.wordWrappedLabel);
float num2 = EditorStyles.wordWrappedMiniLabel.CalcHeight(GUIContent.Temp("Thanks to Forest 'Yoggy' Johnson, Graham McAllister, David Janik-Jones, Raimund Schumacher, Alan J. Dickins and Emil 'Humus' Persson"), width);
Rect position2 = new Rect(5f, this.m_TextYPos + num, width, num2);
GUI.Label(position2, "Thanks to Forest 'Yoggy' Johnson, Graham McAllister, David Janik-Jones, Raimund Schumacher, Alan J. Dickins and Emil 'Humus' Persson", EditorStyles.wordWrappedMiniLabel);
GUI.EndGroup();
this.m_TotalCreditsHeight = num + num2;
GUILayout.FlexibleSpace();
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayout.Label(AboutWindow.s_MonoLogo, new GUILayoutOption[0]);
GUILayout.Label("Scripting powered by The Mono Project.\n\n(c) 2011 Novell, Inc.", "MiniLabel", new GUILayoutOption[]
{
GUILayout.Width(200f)
});
GUILayout.Label(AboutWindow.s_AgeiaLogo, new GUILayoutOption[0]);
GUILayout.Label("Physics powered by PhysX.\n\n(c) 2011 NVIDIA Corporation.", "MiniLabel", new GUILayoutOption[]
{
GUILayout.Width(200f)
});
GUILayout.EndHorizontal();
GUILayout.FlexibleSpace();
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayout.Space(5f);
GUILayout.BeginVertical(new GUILayoutOption[0]);
GUILayout.FlexibleSpace();
GUILayout.Label("\n" + InternalEditorUtility.GetUnityCopyright(), "MiniLabel", new GUILayoutOption[0]);
GUILayout.EndVertical();
GUILayout.Space(10f);
GUILayout.FlexibleSpace();
GUILayout.BeginVertical(new GUILayoutOption[0]);
GUILayout.FlexibleSpace();
GUILayout.Label(InternalEditorUtility.GetLicenseInfo(), "AboutWindowLicenseLabel", new GUILayoutOption[0]);
GUILayout.EndVertical();
GUILayout.Space(5f);
GUILayout.EndHorizontal();
GUILayout.Space(5f);
}