public void OnGUI()
 {
     if (PackageImport.ms_Constants == null)
     {
         PackageImport.ms_Constants = new PackageImport.Constants();
     }
     if (this.m_TreeViewState == null)
     {
         this.m_TreeViewState = new TreeViewState();
     }
     if (this.m_Tree == null)
     {
         this.m_Tree = new PackageImportTreeView(this, this.m_TreeViewState, default(Rect));
     }
     if (this.m_ImportPackageItems != null && this.ShowTreeGUI(this.doReInstall, this.m_ImportPackageItems))
     {
         this.TopArea();
         this.m_Tree.OnGUI(GUILayoutUtility.GetRect(1f, 9999f, 1f, 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.BeginVertical(PackageImport.ms_Constants.bottomBarBg, new GUILayoutOption[0]);
         GUILayout.Space(8f);
         GUILayout.BeginHorizontal(new GUILayoutOption[0]);
         GUILayout.FlexibleSpace();
         this.ReInstallToggle();
         if (GUILayout.Button("OK", new GUILayoutOption[0]))
         {
             base.Close();
             GUIUtility.ExitGUI();
         }
         GUILayout.Space(10f);
         GUILayout.EndHorizontal();
         GUILayout.Space(5f);
         GUILayout.EndVertical();
     }
 }
 public void OnGUI()
 {
     if (PackageImport.ms_Constants == null)
     {
         PackageImport.ms_Constants = new PackageImport.Constants();
     }
     if (this.m_Assets == null)
     {
         return;
     }
     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, default(Rect));
     }
     if (this.m_Assets.Length > 0)
     {
         this.TopArea();
         this.m_Tree.OnGUI(GUILayoutUtility.GetRect(1f, 9999f, 1f, 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();
     }
 }
		public void OnGUI()
		{
			if (PackageImport.ms_Constants == null)
			{
				PackageImport.ms_Constants = new PackageImport.Constants();
			}
			if (this.m_Assets == null)
			{
				return;
			}
			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, default(Rect));
			}
			if (this.m_Assets.Length > 0)
			{
				this.TopArea();
				this.m_Tree.OnGUI(GUILayoutUtility.GetRect(1f, 9999f, 1f, 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();
			}
		}
 public void OnGUI()
 {
   if (PackageImport.ms_Constants == null)
     PackageImport.ms_Constants = new PackageImport.Constants();
   if (this.m_TreeViewState == null)
     this.m_TreeViewState = new TreeViewState();
   if (this.m_Tree == null)
     this.m_Tree = new PackageImportTreeView(this, this.m_TreeViewState, new Rect());
   if (this.m_ImportPackageItems != null && this.ShowTreeGUI(this.doReInstall, this.m_ImportPackageItems))
   {
     this.TopArea();
     this.m_Tree.OnGUI(GUILayoutUtility.GetRect(1f, 9999f, 1f, 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.", (GUIStyle) "WordWrappedLabel", new GUILayoutOption[0]);
     GUILayout.FlexibleSpace();
     GUILayout.BeginVertical(PackageImport.ms_Constants.bottomBarBg, new GUILayoutOption[0]);
     GUILayout.Space(8f);
     GUILayout.BeginHorizontal();
     GUILayout.FlexibleSpace();
     this.ReInstallToggle();
     if (GUILayout.Button("OK"))
     {
       this.Close();
       GUIUtility.ExitGUI();
     }
     GUILayout.Space(10f);
     GUILayout.EndHorizontal();
     GUILayout.Space(5f);
     GUILayout.EndVertical();
   }
 }