diff options
author | Meredith Espinosa <goclonefilms@gmail.com> | 2019-07-24 16:08:45 -0700 |
---|---|---|
committer | Meredith Espinosa <goclonefilms@gmail.com> | 2019-07-24 16:08:45 -0700 |
commit | c62521e78d9e36969cd57767c951e4deab24d2a6 (patch) | |
tree | e9df10fe707ecd7046cc2b3cf98d76966e816367 /src/main/java | |
parent | 8ef30b1a507ded15d5d09d67015816e01e0331c0 (diff) | |
download | LibGui-c62521e78d9e36969cd57767c951e4deab24d2a6.tar.gz LibGui-c62521e78d9e36969cd57767c951e4deab24d2a6.tar.bz2 LibGui-c62521e78d9e36969cd57767c951e4deab24d2a6.zip |
fix transparency on slot painter borders
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java b/src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java index 360e85e..5a02705 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/client/BackgroundPainter.java @@ -20,14 +20,15 @@ public interface BackgroundPainter { public static BackgroundPainter SLOT = (left, top, panel) -> { if (!(panel instanceof WItemSlot)) { - ScreenDrawing.drawBeveledPanel(left-1, top-1, panel.getWidth(), panel.getHeight(), 0xFF373737, 0x4C000000, 0xFFFFFFFF); + ScreenDrawing.drawBeveledPanel(left-1, top-1, panel.getWidth(), panel.getHeight(), 0xB8000000, 0x4C000000, 0xB8FFFFFF); } else { WItemSlot slot = (WItemSlot)panel; for(int x = 0; x < slot.getWidth()/18; ++x) { for(int y = 0; y < slot.getHeight()/18; ++y) { - int lo = 0xFF373737; + int lo = 0xB8000000; int bg = 0x4C000000; - int hi = 0xFFFFFFFF; + //this will cause a slightly discolored bottom border on vanilla backgrounds but it's necessary for color support, it shouldn't be *too* visible unless you're looking for it + int hi = 0xB8FFFFFF; if (slot.isBigSlot()) { ScreenDrawing.drawBeveledPanel((x * 18) + left - 4, (y * 18) + top - 4, 24, 24, lo, bg, hi); |