Added Search page and AutoCompleter

This commit is contained in:
Sinai
2021-04-23 21:50:58 +10:00
parent eb58ab5327
commit f509a985e7
27 changed files with 1070 additions and 318 deletions

View 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;
}
}
}