mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-23 21:49: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
@@ -23,10 +23,10 @@ class ControlBreedingProgress extends Control {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRenderBackground() {
|
||||
public void onRenderBackground(int guiWidth, int guiHeight) {
|
||||
CraftGUI.render.texture(CraftGUITexture.PanelBlack, this.getArea());
|
||||
final IArea area = this.getArea().inset(1);
|
||||
area.setSize(new IPoint(area.size().x() * this.percentage, area.size().y()));
|
||||
area.setSize(new IPoint(Math.round(area.size().x() * this.percentage), area.size().y()));
|
||||
CraftGUI.render.colour(this.colour);
|
||||
CraftGUI.render.texture(ControlBreedingProgress.Progress, area);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user