mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Added mouseover docs support
This commit is contained in:
parent
dc2603bc60
commit
e02b42d6f4
5 changed files with 58 additions and 28 deletions
|
@ -4852,6 +4852,24 @@ namespace IDE.ui
|
|||
origDebugExpr.Set(debugExpr);
|
||||
|
||||
debugExpr.Set(resolveParams.mResultString);
|
||||
|
||||
if (debugExpr.StartsWith(':'))
|
||||
{
|
||||
int docsPos = debugExpr.IndexOf('\x03');
|
||||
if (docsPos != -1)
|
||||
{
|
||||
String docs = scope String()..Append(debugExpr, docsPos + 1);
|
||||
debugExpr.RemoveToEnd(docsPos);
|
||||
|
||||
DocumentationParser docParser = scope .(docs);
|
||||
var showString = docParser.ShowDocString;
|
||||
if (!String.IsNullOrEmpty(showString))
|
||||
{
|
||||
debugExpr.AppendF("\n{}", Font.EncodeColor(0xFFC0C0C0));
|
||||
debugExpr.Append(showString);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!triedShow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue