package net.lax1dude.eaglercraft; import net.minecraft.src.EnumChatFormatting; import net.minecraft.src.GuiButton; import net.minecraft.src.GuiScreen; public class GuiScreenSingleplayerNotImplemented extends GuiScreen { private GuiScreen mainmenu; public GuiScreenSingleplayerNotImplemented(GuiScreen mainmenu) { this.mainmenu = mainmenu; } public void initGui() { this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 3 + 75, "I Understand")); this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 3 + 100, "Download server")); } public void drawScreen(int par1, int par2, float par3) { this.drawDefaultBackground(); this.drawCenteredString(fontRenderer, EnumChatFormatting.BOLD + "Singleplayer currently unsupported", this.width / 2, this.height / 3 - 25, 0xFFFFFF); this.drawCenteredString(fontRenderer, "The desktop runtime does not support singleplayer", this.width / 2, this.height / 3, 0xFFFFFF); this.drawCenteredString(fontRenderer, "This is not a bug, this version of EaglerAdapter", this.width / 2, this.height / 3 + 20, 0xFFFFFF); this.drawCenteredString(fontRenderer, "does not support singleplayer on desktop", this.width / 2, this.height / 3 + 30, 0xFFFFFF); this.drawCenteredString(fontRenderer, "Please self-host a server instead", this.width / 2, this.height / 3 + 50, 0xFFFFFF); super.drawScreen(par1, par2, par3); } protected void actionPerformed(GuiButton par1GuiButton) { if(par1GuiButton.id == 0) { this.mc.displayGuiScreen(mainmenu); } if(par1GuiButton.id == 1) { EaglerAdapter.openLink("https://github.com/catfoolyou/Eagler-Server-1.6.4"); } } }