Add doc tooltips for actor types in Toolbox windows

This commit is contained in:
Wojciech Figat
2021-12-22 15:03:25 +01:00
parent c72be46228
commit f295cda27a

View File

@@ -232,12 +232,15 @@ namespace FlaxEditor.Windows
private Item CreateActorItem(string name, Type type)
{
return new Item(name, GUI.Drag.DragActorType.GetDragData(type));
return CreateActorItem(name, new ScriptType(type));
}
private Item CreateActorItem(string name, ScriptType type)
{
return new Item(name, GUI.Drag.DragActorType.GetDragData(type));
return new Item(name, GUI.Drag.DragActorType.GetDragData(type))
{
TooltipText = Editor.Instance.CodeDocs.GetTooltip(type)
};
}
private ContainerControl CreateGroupWithList(Tabs parentTabs, string title, float topOffset = 0)