Gui rendering cleanup

This commit is contained in:
mezz committed 2017-01-24 20:53:27 -08:00
1 parent 17f036522e
commit 31a305ffc2
173 files changed
+1317 -1349

No files matched your search

@@ -63,7 +63,7 @@ public class ControlClimateBar extends Control implements ITooltip {
}
@Override
public void onRenderBackground() {
public void onRenderBackground(int guiWidth, int guiHeight) {
CraftGUI.render.texture(CraftGUITexture.EnergyBarBack, this.getArea());
final int types = this.isHumidity ? 3 : 6;
final int w = (int) ((this.getSize().x() - 2.0f) / types);
@@ -76,7 +76,7 @@ public class ControlClimateBar extends Control implements ITooltip {
} else {
colour = this.tempColours[i];
}
CraftGUI.render.solid(new IArea(x + 1, 1.0f, w, this.getSize().y() - 2.0f), colour);
CraftGUI.render.solid(new IArea(x + 1, 1, w, this.getSize().y() - 2), colour);
}
}
CraftGUI.render.texture(CraftGUITexture.EnergyBarGlass, this.getArea());