mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 05:27:37 +00:00
Made Autocomplete panel pannable and resizable
This commit is contained in:
1 parent
c537a09ad1
commit
0b9abf2a57
3 files changed
+199
-32
No files matched your search
@@ -676,6 +676,30 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
hoverState.releaseTooltipResize();
|
||||
}
|
||||
}
|
||||
// Handle autocomplete scrollbar drag
|
||||
if (autocompleteManager.isDraggingScrollbarMenu()) {
|
||||
if (Mouse.isButtonDown(0)) {
|
||||
autocompleteManager.updateScrollbarDrag(yMouse);
|
||||
} else {
|
||||
autocompleteManager.releaseScrollbarDrag();
|
||||
}
|
||||
}
|
||||
// Handle autocomplete panel drag
|
||||
if (autocompleteManager.isDraggingPanel()) {
|
||||
if (Mouse.isButtonDown(0)) {
|
||||
autocompleteManager.updatePanelDrag(xMouse, yMouse);
|
||||
} else {
|
||||
autocompleteManager.releasePanelDrag();
|
||||
}
|
||||
}
|
||||
// Handle autocomplete panel resize
|
||||
if (autocompleteManager.isResizingPanel()) {
|
||||
if (Mouse.isButtonDown(0)) {
|
||||
autocompleteManager.updatePanelResize(xMouse, yMouse);
|
||||
} else {
|
||||
autocompleteManager.releasePanelResize();
|
||||
}
|
||||
}
|
||||
|
||||
// Update scroll animation
|
||||
scroll.initializeIfNeeded(scroll.getScrolledLine());
|
||||
|
||||
Reference in new issue
Block a user