Add a transparent grey overlay over recipe output slot
This commit is contained in:
parent
ee65ed0cbe
commit
7e49c30586
1 changed files with 10 additions and 0 deletions
|
@ -64,6 +64,16 @@ public class GuiAutoCrafting extends GuiBase {
|
||||||
itemRenderer.renderItemAndEffectIntoGUI(stack, x, y);
|
itemRenderer.renderItemAndEffectIntoGUI(stack, x, y);
|
||||||
|
|
||||||
GlStateManager.disableLighting();
|
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();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue