Follow up #1085 with expendable type description for content items

This commit is contained in:
Wojtek Figat
2023-05-10 10:29:59 +02:00
parent 3bff65d6b6
commit 0c2c643ea8
11 changed files with 64 additions and 101 deletions

View File

@@ -121,6 +121,9 @@ namespace FlaxEditor.Content
/// <inheritdoc />
public override bool Exists => Directory.Exists(Path);
/// <inheritdoc />
public override string TypeDescription => "Folder";
/// <inheritdoc />
public override SpriteHandle DefaultThumbnail => Editor.Instance.Icons.Folder128;
@@ -136,15 +139,10 @@ namespace FlaxEditor.Content
}
/// <inheritdoc />
public override void UpdateTooltipText()
protected override void OnBuildTooltipText(StringBuilder sb)
{
string fileDescription = "Folder";
StringBuilder sb = new StringBuilder();
sb.Append("Type: ").Append(fileDescription).AppendLine();
sb.Append("Type: ").Append(TypeDescription).AppendLine();
sb.Append("Path: ").Append(Utilities.Utils.GetAssetNamePathWithExt(Path)).AppendLine();
TooltipText = sb.ToString();
}
/// <inheritdoc />