use of pneumaticCraft.api.client.pneumaticHelmet.IOptionPage in project PneumaticCraft by MineMaarten.
the class GuiHelmetMainScreen method drawScreen.
@Override
public void drawScreen(int x, int y, float partialTicks) {
drawDefaultBackground();
IOptionPage optionPage = upgradePages.get(page);
optionPage.drawPreButtons(x, y, partialTicks);
super.drawScreen(x, y, partialTicks);
optionPage.drawScreen(x, y, partialTicks);
drawCenteredString(fontRendererObj, upgradePages.get(page).getPageName(), 100, 25, 0xFFFFFFFF);
if (optionPage.displaySettingsText())
drawCenteredString(fontRendererObj, "Settings", 100, 115, 0xFFFFFFFF);
}
use of pneumaticCraft.api.client.pneumaticHelmet.IOptionPage in project PneumaticCraft by MineMaarten.
the class GuiHelmetMainScreen method addPages.
private void addPages() {
for (int i = 0; i < UpgradeRenderHandlerList.instance().upgradeRenderers.size(); i++) {
if (init || CommonHUDHandler.getHandlerForPlayer().upgradeRenderersInserted[i]) {
IUpgradeRenderHandler upgradeRenderHandler = UpgradeRenderHandlerList.instance().upgradeRenderers.get(i);
IOptionPage optionPage = upgradeRenderHandler.getGuiOptionsPage();
if (optionPage != null) {
upgradePageNames.add(upgradeRenderHandler.getUpgradeName());
upgradePages.add(optionPage);
}
}
}
}
Aggregations