mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Product placement.
Still less annoying than Reika's Update Checkers.
This commit is contained in:
parent
c76627463d
commit
7215a7cd80
3 changed files with 14 additions and 2 deletions
|
@ -50,13 +50,13 @@ import net.minecraft.server.MinecraftServer;
|
|||
import java.util.Locale;
|
||||
|
||||
// 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{
|
||||
|
||||
@Instance(ModUtil.MOD_ID)
|
||||
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;
|
||||
|
||||
@EventHandler
|
||||
|
|
|
@ -66,6 +66,7 @@ public class GuiBooklet extends GuiScreen{
|
|||
public GuiButton buttonForum;
|
||||
public GuiButton buttonAchievements;
|
||||
public GuiButton buttonConfig;
|
||||
public GuiButton buttonWebsite;
|
||||
public GuiButton[] chapterButtons = new GuiButton[CHAPTER_BUTTONS_AMOUNT];
|
||||
public GuiButton[] bookmarkButtons = new GuiButton[8];
|
||||
public GuiTextField searchField;
|
||||
|
@ -216,6 +217,10 @@ public class GuiBooklet extends GuiScreen{
|
|||
BookletUtils.openBrowser(UpdateChecker.CHANGELOG_LINK, UpdateChecker.DOWNLOAD_LINK);
|
||||
}
|
||||
}
|
||||
//Handles Website
|
||||
else if(button == this.buttonWebsite){
|
||||
BookletUtils.openBrowser("http://ellpeck.de");
|
||||
}
|
||||
//Handles Twitter
|
||||
else if(button == this.buttonTwitter){
|
||||
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.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();
|
||||
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));
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Loading…
Reference in a new issue