mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
Package name Change
This commit is contained in:
1 parent
7a99ec4932
commit
12dff53879
303 files changed
+1495
-1518
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package thaumic.tinkerer.client.gui.button;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import thaumic.tinkerer.client.lib.LibResources;
|
||||
|
||||
/**
|
||||
* Created by nekosune on 30/06/14.
|
||||
*/
|
||||
public class GuiButtonRP extends GuiButton {
|
||||
private static final ResourceLocation gui = new ResourceLocation(LibResources.GUI_REMOTE_PLACER);
|
||||
|
||||
public boolean buttonEnabled = false;
|
||||
|
||||
public GuiButtonRP(int par1, int par2, int par3, boolean enabled) {
|
||||
super(par1, par2, par3, 13, 13, "");
|
||||
this.buttonEnabled = enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawButton(Minecraft par1Minecraft, int par2, int par3) {
|
||||
if (buttonEnabled) {
|
||||
par1Minecraft.renderEngine.bindTexture(gui);
|
||||
int y = buttonEnabled ? 13 : 0;
|
||||
drawTexturedModalRect(xPosition, yPosition, 176, y, width, height);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user