Loads of GUI/NEI work. Tomorrow I need to get overlays to render on GuiElement slots

This commit is contained in:
Aidan C. Brady committed 2014-06-15 02:22:55 +02:00
1 parent 3a81058cbd
commit f2b914e216
27 files changed
+320 -65

No files matched your search

@@ -1,5 +1,6 @@
package mekanism.client.gui;
import codechicken.lib.vec.Rectangle4i;
import mekanism.common.util.MekanismUtils;
import mekanism.common.util.MekanismUtils.ResourceType;
import net.minecraft.util.ResourceLocation;
@@ -26,6 +27,12 @@ public class GuiProgress extends GuiElement
this.type = type;
this.handler = handler;
}
@Override
public Rectangle4i getBounds(int guiWidth, int guiHeight)
{
return new Rectangle4i(guiWidth + xLocation, guiHeight + yLocation, type.width, type.height);
}
@Override
public void renderBackground(int xAxis, int yAxis, int guiWidth, int guiHeight)