Draw Elements in GuiRenderSettings in the correct order

This commit is contained in:
CrushedPixel
2015-07-16 21:09:51 +02:00
parent af3ca17bcd
commit da82e3e1f2

View File

@@ -290,6 +290,11 @@ public class GuiRenderSettings extends GuiScreen {
toHandle.addAll(permanentButtons);
toHandle.addAll(advancedTab ? advancedButtons : defaultButtons);
for(GuiButton b : toHandle) {
b.drawButton(mc, mouseX, mouseY);
GlStateManager.enableBlend();
}
if(!advancedTab) {
this.drawString(fontRendererObj, I18n.format("replaymod.gui.rendersettings.renderer") + ":",
(width - w1) / 2, rendererDropdown.yPosition + 6, Color.WHITE.getRGB());
@@ -313,7 +318,7 @@ public class GuiRenderSettings extends GuiScreen {
encodingPresetDropdown.drawTextBox();
rendererDropdown.drawTextBox();
} else {
} else if(advancedTab) {
commandInput.drawTextBox();
ffmpegArguments.drawTextBox();
String[] rows = StringUtils.splitStringInMultipleRows(I18n.format("replaymod.gui.rendersettings.ffmpeg.description"), 305);
@@ -325,11 +330,6 @@ public class GuiRenderSettings extends GuiScreen {
}
}
for(GuiButton b : toHandle) {
b.drawButton(mc, mouseX, mouseY);
GlStateManager.enableBlend();
}
renderButton.drawOverlay(mc, mouseX, mouseY);
}