2021-04-23 21:50:58 +10:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityExplorer.Core;
|
|
|
|
|
|
|
|
|
|
namespace UnityExplorer.UI.Widgets.AutoComplete
|
|
|
|
|
{
|
|
|
|
|
public struct Suggestion
|
|
|
|
|
{
|
|
|
|
|
public readonly string DisplayText;
|
2021-04-24 04:03:33 +10:00
|
|
|
|
public readonly string UnderlyingValue;
|
2021-04-23 21:50:58 +10:00
|
|
|
|
public readonly string Prefix;
|
|
|
|
|
public readonly string Addition;
|
|
|
|
|
|
|
|
|
|
public string Full => Prefix + Addition;
|
|
|
|
|
|
2021-04-24 04:03:33 +10:00
|
|
|
|
public Suggestion(string displayText, string prefix, string addition, string underlyingValue)
|
2021-04-23 21:50:58 +10:00
|
|
|
|
{
|
|
|
|
|
DisplayText = displayText;
|
|
|
|
|
Addition = addition;
|
|
|
|
|
Prefix = prefix;
|
2021-04-24 04:03:33 +10:00
|
|
|
|
UnderlyingValue = underlyingValue;
|
2021-04-23 21:50:58 +10:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|