mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-23 21:49:49 +00:00
Move static rendering methods to RenderUtil
This commit is contained in:
1 parent
9c4b081f6d
commit
460a7db190
42 files changed
+442
-414
No files matched your search
@@ -6,6 +6,7 @@ import binnie.craftgui.core.CraftGUI;
|
||||
import binnie.craftgui.core.IWidget;
|
||||
import binnie.craftgui.core.geometry.IArea;
|
||||
import binnie.craftgui.core.geometry.IPoint;
|
||||
import binnie.craftgui.core.renderer.RenderUtil;
|
||||
import binnie.craftgui.resource.Texture;
|
||||
import binnie.craftgui.resource.minecraft.CraftGUITexture;
|
||||
import binnie.craftgui.resource.minecraft.CraftGUITextureSheet;
|
||||
@@ -27,7 +28,7 @@ class ControlBreedingProgress extends Control {
|
||||
CraftGUI.render.texture(CraftGUITexture.PanelBlack, this.getArea());
|
||||
final IArea area = this.getArea().inset(1);
|
||||
area.setSize(new IPoint(Math.round(area.size().x() * this.percentage), area.size().y()));
|
||||
CraftGUI.render.colour(this.colour);
|
||||
RenderUtil.setColour(this.colour);
|
||||
CraftGUI.render.texture(ControlBreedingProgress.Progress, area);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user