mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-10 14:03:30 +08:00
Make AutoCompleter a global widget which anything can use, add support to object search for it
This commit is contained in:
@ -10,18 +10,18 @@ namespace UnityExplorer.UI.Widgets.AutoComplete
|
||||
public struct Suggestion
|
||||
{
|
||||
public readonly string DisplayText;
|
||||
public readonly string UnderlyingValue;
|
||||
public readonly string Prefix;
|
||||
public readonly string Addition;
|
||||
public readonly Color TextColor;
|
||||
|
||||
public string Full => Prefix + Addition;
|
||||
|
||||
public Suggestion(string displayText, string prefix, string addition, Color color)
|
||||
public Suggestion(string displayText, string prefix, string addition, string underlyingValue)
|
||||
{
|
||||
DisplayText = displayText;
|
||||
Addition = addition;
|
||||
Prefix = prefix;
|
||||
TextColor = color;
|
||||
UnderlyingValue = underlyingValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user