mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 20:07:32 +00:00
Fixed mouse click being on main text area when search bar open (still WIP)
This commit is contained in:
1 parent
1c7f614c3f
commit
cf1afc9fca
1 file changed
+4
-3
@@ -313,7 +313,8 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
doubleClicked = false;
|
||||
tripleClicked = false;
|
||||
}
|
||||
|
||||
// y += searchHeight;
|
||||
// height -= searchHeight;
|
||||
// Calculate braces next to cursor to highlight
|
||||
int startBracket = 0, endBracket = 0;
|
||||
if (selection.getStartSelection() >= 0 && text != null && text.length() > 0 &&
|
||||
@@ -557,8 +558,8 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
goToLineDialog.draw(xMouse, yMouse);
|
||||
|
||||
KEYS_OVERLAY.draw(xMouse, yMouse, wheelDelta);
|
||||
y -= searchHeight;
|
||||
height += searchHeight;
|
||||
// y -= searchHeight;
|
||||
// height += searchHeight;
|
||||
}
|
||||
|
||||
private void scissorViewport() {
|
||||
|
||||
Reference in new issue
Block a user