mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Loads of GUI/NEI work. Tomorrow I need to get overlays to render on GuiElement slots
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user