public void OnGUI()
{
if (ms_Constants == null)
{
ms_Constants = new Constants();
}
if (this.m_Assets != null)
{
if (this.m_TreeViewState == null)
{
this.m_TreeViewState = new TreeViewState();
}
if (this.m_Tree == null)
{
this.m_Tree = new PackageImportTreeView(this.m_Assets, this.m_EnabledFolders, this.m_TreeViewState, this, new Rect());
}
if (this.m_Assets.Length > 0)
{
this.TopArea();
this.m_Tree.OnGUI(GUILayoutUtility.GetRect(1f, 9999f, (float) 1f, (float) 99999f));
this.BottomArea();
}
else
{
GUILayout.Label("Nothing to import!", EditorStyles.boldLabel, new GUILayoutOption[0]);
GUILayout.Label("All assets from this package are already in your project.", "WordWrappedLabel", new GUILayoutOption[0]);
GUILayout.FlexibleSpace();
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUILayout.FlexibleSpace();
if (GUILayout.Button("OK", new GUILayoutOption[0]))
{
base.Close();
GUIUtility.ExitGUI();
}
GUILayout.EndHorizontal();
}
}
}