mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 06:24:12 +01:00
Fix GUI rendering order
This commit is contained in:
parent
f08a574653
commit
3890698a4b
@ -44,6 +44,9 @@ public abstract class AbstractSimiContainerScreen<T extends Container> extends C
|
|||||||
renderBackground();
|
renderBackground();
|
||||||
renderWindow(mouseX, mouseY, partialTicks);
|
renderWindow(mouseX, mouseY, partialTicks);
|
||||||
|
|
||||||
|
for (Widget widget : widgets)
|
||||||
|
widget.render(mouseX, mouseY, partialTicks);
|
||||||
|
|
||||||
super.render(mouseX, mouseY, partialTicks);
|
super.render(mouseX, mouseY, partialTicks);
|
||||||
|
|
||||||
GlStateManager.enableAlphaTest();
|
GlStateManager.enableAlphaTest();
|
||||||
@ -52,9 +55,6 @@ public abstract class AbstractSimiContainerScreen<T extends Container> extends C
|
|||||||
RenderHelper.disableStandardItemLighting();
|
RenderHelper.disableStandardItemLighting();
|
||||||
GlStateManager.disableLighting();
|
GlStateManager.disableLighting();
|
||||||
GlStateManager.disableDepthTest();
|
GlStateManager.disableDepthTest();
|
||||||
|
|
||||||
for (Widget widget : widgets)
|
|
||||||
widget.render(mouseX, mouseY, partialTicks);
|
|
||||||
renderWindowForeground(mouseX, mouseY, partialTicks);
|
renderWindowForeground(mouseX, mouseY, partialTicks);
|
||||||
for (Widget widget : widgets)
|
for (Widget widget : widgets)
|
||||||
widget.renderToolTip(mouseX, mouseY);
|
widget.renderToolTip(mouseX, mouseY);
|
||||||
|
Loading…
Reference in New Issue
Block a user