use of mods.railcraft.client.gui.buttons.GuiButtonRoutingTableNextPage in project Railcraft by Railcraft.
the class GuiRoutingTable method initGui.
/**
* Adds the buttons (and other controls) to the screen in question.
*/
@Override
public void initGui() {
super.initGui();
buttonList.clear();
Keyboard.enableRepeatEvents(true);
if (editable) {
List<GuiSimpleButton> buttons = new ArrayList<GuiSimpleButton>();
buttons.add(buttonSign = new GuiSimpleButton(3, 0, 4 + bookImageHeight, 65, LocalizationPlugin.translate(TABLE_LOC_TAG + "name")));
buttons.add(buttonHelp = new GuiSimpleButton(4, 0, 4 + bookImageHeight, 65, LocalizationPlugin.translate("gui.railcraft.help")));
buttons.add(buttonDone = new GuiSimpleButton(0, 0, 4 + bookImageHeight, 65, I18n.translateToLocal("gui.done")));
GuiTools.newButtonRowAuto(buttonList, width / 2 - 100, 200, buttons);
} else
buttonList.add(buttonDone = new GuiSimpleButton(0, width / 2 - 100, 4 + bookImageHeight, 200, I18n.translateToLocal("gui.done")));
int xOffset = (width - bookImageWidth) / 2;
byte yOffset = 2;
buttonList.add(buttonNextPage = new GuiButtonRoutingTableNextPage(1, xOffset + 200, yOffset + 154, true));
buttonList.add(buttonPreviousPage = new GuiButtonRoutingTableNextPage(2, xOffset + 30, yOffset + 154, false));
updateButtons();
}
Aggregations