diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-02-12 20:43:03 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-02-12 20:43:03 +0300 |
| commit | 5cb4c6e24033cf337812390d99a6817d24d21eab (patch) | |
| tree | 695789855920199efd4702a7bb3e4bacfe58b9f0 /ihl/utils/GuiMultiTextureButton.java | |
| parent | 8f22398517206aed21a7fd840f463332429fae35 (diff) | |
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.
Diffstat (limited to 'ihl/utils/GuiMultiTextureButton.java')
| -rw-r--r-- | ihl/utils/GuiMultiTextureButton.java | 44 |
1 files changed, 44 insertions, 0 deletions
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);
+ }
+ }
+
+}
|
