public ElementButton(GuiContainerCore gui, int posX, int posY, int sizeX, int sizeY, int sheetX, int sheetY, int hoverX, int hoverY, String texture) { super(gui, posX, posY, sizeX, sizeY); setGuiManagedClicks(false); setTexture(texture, texW, texH); this.sheetX = sheetX; this.sheetY = sheetY; this.hoverX = hoverX; this.hoverY = hoverY; }
public ElementButton(GuiContainerCore gui, int posX, int posY, String name, int sheetX, int sheetY, int hoverX, int hoverY, int sizeX, int sizeY, String texture) { super(gui, posX, posY, sizeX, sizeY); setGuiManagedClicks(true); setName(name); setTexture(texture, texW, texH); this.sheetX = sheetX; this.sheetY = sheetY; this.hoverX = hoverX; this.hoverY = hoverY; }