Added back buttons
This commit is contained in:
parent
cc9c496f6e
commit
59590e6f76
3 changed files with 6 additions and 0 deletions
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue