- Now removing <see cref> tags from tooltips

- Capitalizing the first character of inputs/outpus
- Removing & chars from input/output types to make it easier to read
- Moving description signature down to make items without a description look less ugly
This commit is contained in:
Nils Hausfeld
2024-06-19 20:56:25 +02:00
parent a808ac5dc8
commit cb1324fc2d
2 changed files with 17 additions and 4 deletions

View File

@@ -316,7 +316,9 @@ namespace FlaxEditor.Modules.SourceCodeEditing
var memberReader = xmlReader.ReadSubtree();
if (memberReader.ReadToDescendant("summary"))
{
result[rawName] = memberReader.ReadInnerXml().Replace('\n', ' ').Trim();
// Remove <see cref=""/> and replace them with the captured group (the content of the cref). Additionally, getting rid of prefixes
const string crefPattern = @"<see\s+cref=""(?:[A-Z]:FlaxEngine\.)?([^""]+)""\s*\/>";
result[rawName] = Regex.Replace(memberReader.ReadInnerXml(), crefPattern, "$1").Replace('\n', ' ').Trim();
}
}
}