mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
Implemented main editor focus/unfocus callbacks to GoToLine/SearchReplaceBar
This commit is contained in:
1 parent
825f3b4a39
commit
7ec0ce6f94
3 files changed
+22
-1
No files matched your search
@@ -133,6 +133,18 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
int maxScroll = Math.max(0, container.linesCount - visible);
|
||||
scroll.scrollToLine(lineIdx, visible, maxScroll);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void unfocusMainEditor() {
|
||||
// Save position but unfocus
|
||||
active = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void focusMainEditor() {
|
||||
active = true;
|
||||
selection.markActivity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDialogClose() {
|
||||
|
||||
Reference in new issue
Block a user