Work on NEI module

This commit is contained in:
Aidan C. Brady committed 2014-06-14 14:33:02 +02:00
1 parent a40ab961c6
commit 3b99d376a4
7 files changed
+30 -27

No files matched your search

@@ -31,12 +31,14 @@ public class GuiProgress extends GuiElement
public void renderBackground(int xAxis, int yAxis, int guiWidth, int guiHeight)
{
mc.renderEngine.bindTexture(RESOURCE);
if(handler.isActive())
{
guiObj.drawTexturedRect(guiWidth + xLocation, guiHeight + yLocation, type.textureX, type.textureY, type.width, type.height);
int displayInt = (int)(handler.getProgress() * (type.width-2*innerOffsetX));
guiObj.drawTexturedRect(guiWidth + xLocation + innerOffsetX, guiHeight + yLocation, type.textureX + type.width + innerOffsetX, type.textureY, displayInt, type.height);
}
mc.renderEngine.bindTexture(defaultLocation);
}