Add helper tooltips for Scene Animation actions UI

This commit is contained in:
Wojtek Figat
2021-08-10 13:54:22 +02:00
parent c1b2fc19c1
commit 62c43f9f95
8 changed files with 38 additions and 32 deletions

View File

@@ -204,14 +204,7 @@ namespace FlaxEditor.Windows
continue;
var item = _groupSearch.AddChild(CreateActorItem(CustomEditors.CustomEditorsUtil.GetPropertyNameUI(text), actorType));
item.TooltipText = actorType.TypeName;
var attributes = actorType.GetAttributes(false);
var tooltipAttribute = (TooltipAttribute)attributes.FirstOrDefault(x => x is TooltipAttribute);
if (tooltipAttribute != null)
{
item.TooltipText += '\n';
item.TooltipText += tooltipAttribute.Text;
}
item.TooltipText = Surface.SurfaceUtils.GetVisualScriptTypeDescription(actorType);
var highlights = new List<Rectangle>(ranges.Length);
var style = Style.Current;