mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-24 22:04:49 +00:00
Work on NEI module
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user