mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
Drawn border for OverlayKeyPreset + accounted for text editor's scroll bar in init
This commit is contained in:
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 ====================
|
||||
|
||||
Reference in new issue
Block a user