mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 19:59:49 +00:00
Gui rendering cleanup
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user