mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-24 01:12:41 +08:00
Added Search page and AutoCompleter
This commit is contained in:
27
src/UI/Widgets/AutoComplete/Suggestion.cs
Normal file
27
src/UI/Widgets/AutoComplete/Suggestion.cs
Normal file
@ -0,0 +1,27 @@
|
||||
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;
|
||||
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)
|
||||
{
|
||||
DisplayText = displayText;
|
||||
Addition = addition;
|
||||
Prefix = prefix;
|
||||
TextColor = color;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user