Added back buttons

This commit is contained in:
gigabit101 2015-08-10 22:19:15 +01:00
parent cc9c496f6e
commit 59590e6f76
3 changed files with 6 additions and 0 deletions

View file

@ -41,6 +41,7 @@ public class BlocksPage extends TitledPage{
public void actionPerformed(GuiButton button) {
if (button instanceof GuiButtonTextOnly)
collection.changeActivePage(((GuiButtonTextOnly)button).LINKED_PAGE);
if (button.id == 0) collection.changeActivePage("CONTENTS");
}
@Override
@ -56,5 +57,6 @@ public class BlocksPage extends TitledPage{
((GuiButtonTextOnly) this.buttonList.get(k)).drawButton(this.mc, mouseX + offsetX, mouseY + offsetY);
}
}
buttonList.add(new GuiButton(0, offsetX + 20, offsetY + 180, "BACK"));
}
}

View file

@ -39,6 +39,7 @@ public class IndexPage extends TitledPage{
public void actionPerformed(GuiButton button) {
if (button instanceof GuiButtonTextOnly)
collection.changeActivePage(((GuiButtonTextOnly)button).LINKED_PAGE);
if (button.id == 0) collection.changeActivePage("CONTENTS");
}
@Override
@ -54,5 +55,6 @@ public class IndexPage extends TitledPage{
((GuiButtonTextOnly) this.buttonList.get(k)).drawButton(this.mc, mouseX + offsetX, mouseY + offsetY);
}
}
buttonList.add(new GuiButton(0, offsetX + 20, offsetY + 180, "BACK"));
}
}

View file

@ -41,6 +41,7 @@ public class ItemsPage extends TitledPage{
public void actionPerformed(GuiButton button) {
if (button instanceof GuiButtonTextOnly)
collection.changeActivePage(((GuiButtonTextOnly)button).LINKED_PAGE);
if (button.id == 0) collection.changeActivePage("CONTENTS");
}
@Override
@ -56,5 +57,6 @@ public class ItemsPage extends TitledPage{
((GuiButtonTextOnly) this.buttonList.get(k)).drawButton(this.mc, mouseX + offsetX, mouseY + offsetY);
}
}
buttonList.add(new GuiButton(0, offsetX + 20, offsetY + 180, "BACK"));
}
}