Drawn border for OverlayKeyPreset + accounted for text editor's scroll bar in init

This commit is contained in:
bigguy345 committed 2025-12-19 18:06:27 +02:00
1 parent 37cd4f1b7a
commit 9d8fd5bada
3 files changed
+55 -6

No files matched your search

@@ -94,11 +94,12 @@ public class GuiScriptTextArea extends GuiNpcTextField {
public void initGui() {
int endX = x + width, endY = y + height;
KEYS_OVERLAY.elementSpacing = 0;
KEYS_OVERLAY.initGui(endX - (width / 2) , y + (height / 4), endX - 7, endY - 27);
int xOffset = hasVerticalScrollbar() ? -8 : -2;
KEYS_OVERLAY.elementSpacing = KEYS_OVERLAY.yStartSpacing = 0;
KEYS_OVERLAY.initGui(endX - (width / 2), y + (height / 4) - 10, endX + xOffset - 2, endY - 28);
KEYS_OVERLAY.viewButton.scale = 0.45f;
KEYS_OVERLAY.viewButton.initGui(endX - 7, endY - 26);
KEYS_OVERLAY.viewButton.initGui(endX + xOffset, endY - 26);
}
// ==================== RENDERING ====================