mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 04:35:03 +00:00
Improved KeyPreset overlay dimensions and colorsfor GuiScriptTextArea
This commit is contained in:
1 parent
976bb9af49
commit
1a1c2af548
2 files changed
+6
-4
No files matched your search
@@ -131,8 +131,9 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
public void initGui() {
|
||||
int endX = x + width, endY = y + height;
|
||||
int xOffset = hasVerticalScrollbar() ? -8 : -2;
|
||||
KEYS_OVERLAY.elementSpacing = KEYS_OVERLAY.yStartSpacing = 0;
|
||||
KEYS_OVERLAY.initGui(endX - (width / 2)-3, y + (height / 4) - 10, endX + xOffset - 2, endY - 28);
|
||||
KEYS_OVERLAY.scale = 0.75f;
|
||||
KEYS_OVERLAY.borderCol1 = KEYS_OVERLAY.borderCol2 = 0xFF3c3c3c;
|
||||
KEYS_OVERLAY.initGui(x + (width / 4), y + 20, endX - (width / 4) + 5, endY - 28);
|
||||
|
||||
KEYS_OVERLAY.viewButton.scale = 0.45f;
|
||||
KEYS_OVERLAY.viewButton.initGui(endX + xOffset, endY - 26);
|
||||
@@ -477,7 +478,8 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
int wheelDelta = ((GuiNPCInterface) listener).mouseScroll = Mouse.getDWheel();
|
||||
if (listener instanceof GuiNPCInterface) {
|
||||
((GuiNPCInterface) listener).mouseScroll = wheelDelta;
|
||||
if (wheelDelta != 0 && !KEYS_OVERLAY.isVisible())
|
||||
boolean canScroll = !KEYS_OVERLAY.isVisible() || KEYS_OVERLAY.isVisible() && !KEYS_OVERLAY.aboveOverlay;
|
||||
if (wheelDelta != 0 && canScroll)
|
||||
scroll.applyWheelScroll(wheelDelta, maxScroll);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public class OverlayKeyPresetViewer {
|
||||
public float RELATIVE_MAX_DESC_WIDTH = 0.5f;
|
||||
private final FontRenderer font = Minecraft.getMinecraft().fontRenderer;
|
||||
|
||||
public int bgCol1 = 0x88000000, bgCol2 = 0xcc303030;
|
||||
public int bgCol1 = 0xdd101010, bgCol2 = 0xf8303030;
|
||||
public int borderCol1 = 0x22ffffff, borderCol2 = 0xffffffff;
|
||||
public boolean hasBorder = true;
|
||||
public boolean openOnClick;
|
||||
|
||||
Reference in new issue
Block a user