mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-20 23:57:49 +08:00
28 lines
693 B
C#
28 lines
693 B
C#
![]() |
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|