Great, I've been trying to get it working but I can't. Removing all unused or irrelevant code:
public class GuiAutoMerchant extends GuiMerchant {
GuiButton buttonStart;
public GuiAutoMerchant(InventoryPlayer inventory, IMerchant merchant, World worldIn) {
super(inventory, merchant, worldIn);
// TODO Auto-generated constructor stub
this.buttonList.add(this.buttonOptions = new GuiButton(0, 100, 100, 200, 200, "Options"));
}
@Override
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
// TODO Auto-generated method stub
super.drawGuiContainerBackgroundLayer(partialTicks, mouseX, mouseY);
System.out.println("Drawing default merchant GUI");
}
}
But my button doesn't show up. I opted to draw default Villager GUI but even with custom background GUI, button wasn't displayed. What am I missing?