mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Make AutoCompleter a global widget which anything can use, add support to object search for it
This commit is contained in:
1 parent
5f2f3fe1c6
commit
bda286ddae
8 files changed
+246
-150
No files matched your search
@@ -86,8 +86,12 @@ namespace UnityExplorer.UI.Widgets
|
||||
|
||||
public void SetCell(ButtonCell<object> cell, int index)
|
||||
{
|
||||
bool objectAsType = m_context == SearchContext.StaticClass;
|
||||
cell.buttonText.text = ToStringUtility.ToString(currentResults[index], currentResults[index].GetActualType(), objectAsType: objectAsType);
|
||||
if (m_context == SearchContext.StaticClass)
|
||||
{
|
||||
cell.buttonText.text = SignatureHighlighter.HighlightTypeName(currentResults[index].GetActualType());
|
||||
}
|
||||
else
|
||||
cell.buttonText.text = ToStringUtility.ToString(currentResults[index], currentResults[index].GetActualType());
|
||||
}
|
||||
|
||||
private void OnCellClicked(int dataIndex)
|
||||
|
||||
Reference in new issue
Block a user