From 7e49c30586dbf3d84d70ad4417ba4d5a206f4f48 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Fri, 3 Aug 2018 17:55:59 +0100 Subject: [PATCH] Add a transparent grey overlay over recipe output slot --- .../java/techreborn/client/gui/GuiAutoCrafting.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/techreborn/client/gui/GuiAutoCrafting.java b/src/main/java/techreborn/client/gui/GuiAutoCrafting.java index e1a1648d5..80f036a0b 100644 --- a/src/main/java/techreborn/client/gui/GuiAutoCrafting.java +++ b/src/main/java/techreborn/client/gui/GuiAutoCrafting.java @@ -64,6 +64,16 @@ public class GuiAutoCrafting extends GuiBase { itemRenderer.renderItemAndEffectIntoGUI(stack, x, y); GlStateManager.disableLighting(); + + GlStateManager.pushMatrix(); + GlStateManager.disableDepth(); + GlStateManager.color(1, 1, 1, 1F / 3F); + drawRect(x - 4, y- 4, x + 20, y + 20, -2139062144); + GlStateManager.enableDepth(); + GlStateManager.color(1F, 1F, 1F, 1F); + GlStateManager.enableBlend(); + GlStateManager.popMatrix(); + } }