Product placement.

Still less annoying than Reika's Update Checkers.
This commit is contained in:
Ellpeck 2015-12-30 23:17:03 +01:00
parent c76627463d
commit 7215a7cd80
3 changed files with 14 additions and 2 deletions

View file

@ -50,13 +50,13 @@ import net.minecraft.server.MinecraftServer;
import java.util.Locale; import java.util.Locale;
// So that BuildCraft Oil always gets used // So that BuildCraft Oil always gets used
@Mod(modid = ModUtil.MOD_ID, name = ModUtil.NAME, version = ModUtil.VERSION, dependencies = "after:BuildCraft|Energy", guiFactory = "GuiFactory") @Mod(modid = ModUtil.MOD_ID, name = ModUtil.NAME, version = ModUtil.VERSION, dependencies = "after:BuildCraft|Energy", guiFactory = "de.ellpeck.actuallyadditions.config.GuiFactory")
public class ActuallyAdditions{ public class ActuallyAdditions{
@Instance(ModUtil.MOD_ID) @Instance(ModUtil.MOD_ID)
public static ActuallyAdditions instance; public static ActuallyAdditions instance;
@SidedProxy(clientSide = "ClientProxy", serverSide = "ServerProxy") @SidedProxy(clientSide = "de.ellpeck.actuallyadditions.proxy.ClientProxy", serverSide = "de.ellpeck.actuallyadditions.proxy.ServerProxy")
public static IProxy proxy; public static IProxy proxy;
@EventHandler @EventHandler

View file

@ -66,6 +66,7 @@ public class GuiBooklet extends GuiScreen{
public GuiButton buttonForum; public GuiButton buttonForum;
public GuiButton buttonAchievements; public GuiButton buttonAchievements;
public GuiButton buttonConfig; public GuiButton buttonConfig;
public GuiButton buttonWebsite;
public GuiButton[] chapterButtons = new GuiButton[CHAPTER_BUTTONS_AMOUNT]; public GuiButton[] chapterButtons = new GuiButton[CHAPTER_BUTTONS_AMOUNT];
public GuiButton[] bookmarkButtons = new GuiButton[8]; public GuiButton[] bookmarkButtons = new GuiButton[8];
public GuiTextField searchField; public GuiTextField searchField;
@ -216,6 +217,10 @@ public class GuiBooklet extends GuiScreen{
BookletUtils.openBrowser(UpdateChecker.CHANGELOG_LINK, UpdateChecker.DOWNLOAD_LINK); BookletUtils.openBrowser(UpdateChecker.CHANGELOG_LINK, UpdateChecker.DOWNLOAD_LINK);
} }
} }
//Handles Website
else if(button == this.buttonWebsite){
BookletUtils.openBrowser("http://ellpeck.de");
}
//Handles Twitter //Handles Twitter
else if(button == this.buttonTwitter){ else if(button == this.buttonTwitter){
BookletUtils.openBrowser("http://twitter.com/ActAddMod"); BookletUtils.openBrowser("http://twitter.com/ActAddMod");
@ -293,6 +298,13 @@ public class GuiBooklet extends GuiScreen{
this.buttonAchievements = new TexturedButton(7, this.guiLeft+138, this.guiTop, 205, 0, 8, 8, Collections.singletonList(EnumChatFormatting.GOLD+"Show Achievements")); this.buttonAchievements = new TexturedButton(7, this.guiLeft+138, this.guiTop, 205, 0, 8, 8, Collections.singletonList(EnumChatFormatting.GOLD+"Show Achievements"));
this.buttonList.add(this.buttonAchievements); this.buttonList.add(this.buttonAchievements);
ArrayList websiteHover = new ArrayList();
websiteHover.add(EnumChatFormatting.GOLD+"Open Author's Website");
websiteHover.add("(There's some cool stuff there!)");
websiteHover.add(EnumChatFormatting.GRAY+""+EnumChatFormatting.ITALIC+"Would you call this Product Placement?");
this.buttonWebsite = new TexturedButton(-99, this.guiLeft, this.guiTop+20, 228, 0, 8, 8, websiteHover);
this.buttonList.add(this.buttonWebsite);
ArrayList configHover = new ArrayList(); ArrayList configHover = new ArrayList();
configHover.add(EnumChatFormatting.GOLD+"Show Configuration GUI"); configHover.add(EnumChatFormatting.GOLD+"Show Configuration GUI");
configHover.addAll(this.fontRendererObj.listFormattedStringToWidth("It is highly recommended that you restart your game after changing anything as that prevents possible bugs occuring!", 200)); configHover.addAll(this.fontRendererObj.listFormattedStringToWidth("It is highly recommended that you restart your game after changing anything as that prevents possible bugs occuring!", 200));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB