Adding back rest of the menu, ported most of Reflection Inspector for new UI

This commit is contained in:
Sinai committed 2021-04-25 00:21:12 +10:00
1 parent 0cf8309a82
commit 6d4cc66079
44 files changed
+5995 -350

No files matched your search

@@ -5,6 +5,7 @@ using System.Text;
using UnityEngine;
using UnityEngine.UI;
using UnityExplorer.Core.Search;
using UnityExplorer.UI.Inspectors;
using UnityExplorer.UI.Models;
using UnityExplorer.UI.Panels;
using UnityExplorer.UI.Utility;
@@ -96,7 +97,10 @@ namespace UnityExplorer.UI.Widgets
private void OnCellClicked(int dataIndex)
{
ExplorerCore.Log("TODO");
if (m_context == SearchContext.StaticClass)
InspectorManager.InspectType(currentResults[dataIndex] as Type);
else
InspectorManager.Inspect(currentResults[dataIndex]);
}
private bool ShouldDisplayCell(object arg1, string arg2) => true;