Skip to content

Commit 512c7df

Browse files
authored
Merge pull request #2464 from aharabada/Filter-Errors-Panel
Filter options for errors panel
2 parents 8aeb860 + b5688aa commit 512c7df

4 files changed

Lines changed: 624 additions & 29 deletions

File tree

BeefLibs/Beefy2D/src/theme/dark/DarkButton.bf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ namespace Beefy.theme.dark
1111
{
1212
public String mLabel ~ delete _;
1313
public float mDrawDownPct;
14+
public FontAlign mLabelAlign = .Centered;
15+
public float mLabelXOfs;
1416
public float mLabelYOfs;
1517

1618
[DesignEditable(DefaultEditString=true)]
@@ -79,7 +81,7 @@ namespace Beefy.theme.dark
7981
using (g.PushColor(mDisabled ? 0x80FFFFFF : Color.White))
8082
{
8183
using (g.PushColor(DarkTheme.COLOR_TEXT))
82-
DarkTheme.DrawUnderlined(g, mLabel, GS!(2), (mHeight - GS!(20)) / 2 + mLabelYOfs, .Centered, mWidth - GS!(4), .Truncate);
84+
DarkTheme.DrawUnderlined(g, mLabel, GS!(2) + mLabelXOfs, (mHeight - GS!(20)) / 2 + mLabelYOfs, mLabelAlign, mWidth - GS!(4) - mLabelXOfs, .Truncate);
8385
}
8486
}
8587
}

IDE/src/IDEApp.bf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7370,6 +7370,8 @@ namespace IDE
73707370
if ((setFocus) && (sourceViewPanel.mWidgetWindow != null))
73717371
sourceViewPanel.FocusEdit();
73727372

7373+
mErrorsPanel?.OnSourceViewOpened();
7374+
73737375
return (sourceViewPanel, newTabButton);
73747376
}
73757377

@@ -7684,6 +7686,8 @@ namespace IDE
76847686
}
76857687
}
76867688

7689+
mErrorsPanel?.OnSourceViewClosed();
7690+
76877691
//var intDict = scope Dictionary<String, int>();
76887692

76897693
/*if (mRecentFilesList.Count >= 1)

0 commit comments

Comments
 (0)