From 5cb4c6e24033cf337812390d99a6817d24d21eab Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sun, 12 Feb 2017 20:43:03 +0300 Subject: Removed explosion radius limitations. Explosion calculation optimized (reduced memory usage). One more detonator and explosive pack recipe. GT6 recipes for both chemical reactors and cryogenic distiller. Max stack size of muffle furnace is limited to 32. A lot of old features are removed. --- ihl/utils/GuiMultiTextureButton.java | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 ihl/utils/GuiMultiTextureButton.java (limited to 'ihl/utils/GuiMultiTextureButton.java') diff --git a/ihl/utils/GuiMultiTextureButton.java b/ihl/utils/GuiMultiTextureButton.java new file mode 100644 index 0000000..eb160cd --- /dev/null +++ b/ihl/utils/GuiMultiTextureButton.java @@ -0,0 +1,44 @@ +package ihl.utils; + +import org.lwjgl.opengl.GL11; + +import net.minecraft.client.Minecraft; +import net.minecraft.client.gui.GuiButton; +import net.minecraft.util.ResourceLocation; + +public class GuiMultiTextureButton extends GuiButton { + + private ResourceLocation texture; + private int textureX; + private int textureY; + private int textureActiveX; + private int textureActiveY; + public boolean isActive=false; + + public GuiMultiTextureButton(int id1, int x, int y, int w, int h, + ResourceLocation texture1, int textureX1, int textureY1, int textureActiveX1, int textureActiveY1) { + super(id1, x, y, w, h, ""); + texture=texture1; + textureX=textureX1; + textureY=textureY1; + textureActiveX=textureActiveX1; + textureActiveY=textureActiveY1; + + } + + @Override + public void drawButton(Minecraft minecraft, int i, int j) + { + GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); + minecraft.getTextureManager().bindTexture(this.texture); + if(this.isActive) + { + this.drawTexturedModalRect(this.xPosition, this.yPosition, this.textureActiveX, this.textureActiveY, this.width, this.height); + } + else + { + this.drawTexturedModalRect(this.xPosition, this.yPosition, this.textureX, this.textureY, this.width, this.height); + } + } + +} -- cgit v1.2.3