int a = 0;
String cards = ":textures/gui/k.png";
String cards1 = ":textures/gui/k1.png";
@Override
public void actionPerformed(GuiButton btn) {
if (btn.enabled) {
switch(btn.id) {
case -1:
FMLCommonHandler.instance().showGuiScreen(new guiPets1());
break;
case 33:
a = 1;
break;
}
}
}
@Override
public void updateScreen() {
super.updateScreen();
}
@Override
public void initGui() {
int guiX = (width - guiWidth) / 2;
int guiY = (height - guiHeight) / 2;
buttonList.clear();
if (a == 0) {
buttonList.add(new ButtonP(33,cards,cards, guiX + 130, guiY + 55,60,70,""));
}
if (a == 1) {
buttonList.add(new ButtonP(33,cards1,cards1, guiX + 30, guiY + 55,60,70,""));
}
super.initGui();
}