mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-01 05:45:59 +02:00
Added mouseover docs support
This commit is contained in:
parent
dc2603bc60
commit
e02b42d6f4
5 changed files with 58 additions and 28 deletions
|
@ -724,23 +724,20 @@ namespace IDE.ui
|
|||
if (evalString.StartsWith(":", StringComparison.Ordinal))
|
||||
{
|
||||
var showString = scope String(evalString, 1);
|
||||
int crPos = showString.IndexOf('\n');
|
||||
if (crPos != -1)
|
||||
bool isShowingDoc = showString.Contains('\x01');
|
||||
if (!isShowingDoc)
|
||||
{
|
||||
val.Append("\n\n");
|
||||
val.Append(showString, crPos + 1);
|
||||
showString.RemoveToEnd(crPos);
|
||||
int crPos = showString.IndexOf('\n');
|
||||
if (crPos != -1)
|
||||
{
|
||||
val.Append("\n\n");
|
||||
val.Append(showString, crPos + 1);
|
||||
showString.RemoveToEnd(crPos);
|
||||
}
|
||||
}
|
||||
|
||||
useListViewItem.Label = showString;
|
||||
isStringLiteral = true;
|
||||
|
||||
|
||||
/*int lineCount = 0;
|
||||
for (int i = 0; i < evalString.Length; i++)
|
||||
if (evalString[i] == '\n')
|
||||
lineCount++;
|
||||
listViewItem.mBottomPadding = listView.mFont.GetLineSpacing() * lineCount; */
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue