mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 08:27:45 +00:00
GuiScrollWindow backgroundColor
This commit is contained in:
1 parent
24733892a0
commit
e261f18aa9
1 file changed
+2
-1
@@ -207,6 +207,7 @@ public class GuiScrollWindow extends GuiScreen implements ITextfieldListener, IC
|
||||
return scrolls.get(id);
|
||||
}
|
||||
|
||||
public int backgroundColor = 0x66000000;
|
||||
@Override
|
||||
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
|
||||
scrollY = (float) lerp(scrollY, nextScrollY, partialTicks);
|
||||
@@ -220,7 +221,7 @@ public class GuiScrollWindow extends GuiScreen implements ITextfieldListener, IC
|
||||
|
||||
this.drawDefaultBackground = false;
|
||||
if (drawBackground)
|
||||
this.drawGradientRect(0, 0, this.width, this.height, 0x66000000, 0x88000000);
|
||||
this.drawGradientRect(0, 0, this.width, this.height, backgroundColor, backgroundColor);
|
||||
|
||||
|
||||
if (maxScrollY > 0)
|
||||
|
||||
Reference in new issue
Block a user