Draw Elements in GuiRenderSettings in the correct order
This commit is contained in:
@@ -290,6 +290,11 @@ public class GuiRenderSettings extends GuiScreen {
|
|||||||
toHandle.addAll(permanentButtons);
|
toHandle.addAll(permanentButtons);
|
||||||
toHandle.addAll(advancedTab ? advancedButtons : defaultButtons);
|
toHandle.addAll(advancedTab ? advancedButtons : defaultButtons);
|
||||||
|
|
||||||
|
for(GuiButton b : toHandle) {
|
||||||
|
b.drawButton(mc, mouseX, mouseY);
|
||||||
|
GlStateManager.enableBlend();
|
||||||
|
}
|
||||||
|
|
||||||
if(!advancedTab) {
|
if(!advancedTab) {
|
||||||
this.drawString(fontRendererObj, I18n.format("replaymod.gui.rendersettings.renderer") + ":",
|
this.drawString(fontRendererObj, I18n.format("replaymod.gui.rendersettings.renderer") + ":",
|
||||||
(width - w1) / 2, rendererDropdown.yPosition + 6, Color.WHITE.getRGB());
|
(width - w1) / 2, rendererDropdown.yPosition + 6, Color.WHITE.getRGB());
|
||||||
@@ -313,7 +318,7 @@ public class GuiRenderSettings extends GuiScreen {
|
|||||||
|
|
||||||
encodingPresetDropdown.drawTextBox();
|
encodingPresetDropdown.drawTextBox();
|
||||||
rendererDropdown.drawTextBox();
|
rendererDropdown.drawTextBox();
|
||||||
} else {
|
} else if(advancedTab) {
|
||||||
commandInput.drawTextBox();
|
commandInput.drawTextBox();
|
||||||
ffmpegArguments.drawTextBox();
|
ffmpegArguments.drawTextBox();
|
||||||
String[] rows = StringUtils.splitStringInMultipleRows(I18n.format("replaymod.gui.rendersettings.ffmpeg.description"), 305);
|
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);
|
renderButton.drawOverlay(mc, mouseX, mouseY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user