diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
| commit | 05c78126859231a68e199dc34613689bd0978e2f (patch) | |
| tree | 050bea104a18c72905095d29f31bec2935a27a24 /ihl/datanet/GuiInvisibleButton.java | |
Initial commit
Diffstat (limited to 'ihl/datanet/GuiInvisibleButton.java')
| -rw-r--r-- | ihl/datanet/GuiInvisibleButton.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ihl/datanet/GuiInvisibleButton.java b/ihl/datanet/GuiInvisibleButton.java new file mode 100644 index 0000000..2222859 --- /dev/null +++ b/ihl/datanet/GuiInvisibleButton.java @@ -0,0 +1,21 @@ +package ihl.datanet;
+
+import java.util.List;
+import java.util.Map;
+
+import net.minecraft.client.Minecraft;
+import net.minecraft.client.gui.GuiButton;
+
+public class GuiInvisibleButton extends GuiButton {
+
+ public GuiInvisibleButton(int id1, int x, int y, int w, int h, Map<Integer, Integer[]> linksCoordinatesMap, List buttonList)
+ {
+ super(id1, x, y, w, h, "");
+ linksCoordinatesMap.put(id1, new Integer[] {x+w/2,y+h/2});
+ buttonList.add(this);
+ }
+
+ @Override
+ public void drawButton(Minecraft minecraft, int i, int j){}
+
+}
|
