diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java index 79b8115c0..3730d9547 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/InitBooklet.java @@ -104,7 +104,6 @@ public final class InitBooklet{ chaptersIntroduction[0] = new BookletChapter("bookTutorial", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitItems.itemBooklet), new PageTextOnly(1), new PageTextOnly(2), new PageTextOnly(3), new PageCrafting(4, ItemCrafting.recipeBook).setNoText()); chaptersIntroduction[1] = new BookletChapter("videoGuide", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.YOUTUBE_ICON.ordinal()), new PageLinkButton(1, "https://www.youtube.com/watch?v=fhjz0Ew56pM")).setImportant(); new BookletChapter("intro", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitItems.itemBooklet), new PageTextOnly(1), new PageTextOnly(2), new PageTextOnly(3)); - new BookletChapter("reviews", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(Items.BOOK), new PageTextOnly(1)); ArrayList crystalPages = new ArrayList(); crystalPages.addAll(Arrays.asList(new PageTextOnly(1).addTextReplacement("", TileEntityAtomicReconstructor.ENERGY_USE), new PageTextOnly(2), new PageTextOnly(3), new PagePicture(4, "pageAtomicReconstructor", 0).setNoText(), new PageTextOnly(5), new PageCrafting(6, BlockCrafting.recipeAtomicReconstructor).setWildcard())); for(int i = 0; i < LensRecipeHandler.MAIN_PAGE_RECIPES.size(); i++){ diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiMainPage.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiMainPage.java index 989e0cf40..6f2efbac1 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiMainPage.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiMainPage.java @@ -30,14 +30,33 @@ import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import java.io.IOException; +import java.util.List; @SideOnly(Side.CLIENT) public class GuiMainPage extends GuiBooklet{ + private static final String[] QUOTES = new String[]{ + "Actually Additions, to me, is quite magical in a way.@Saphrym", + "Actually quite cool. Lots of nice little additions.@Direwolf20", + "Mod Dev quite rude and arrogant@Bubb1e0seven", + "A whimsical breath of fresh air in a stuffy tech-mod world.@mezz", + "User-friendly :3@TheMeeep", + "A lot of stuff, some of it really good.@Narubion", + "I like the bookmarks.@Vazkii", + "It's got some stuff I guess.@Ellpeck", + "Actually Additions should be included in every new modpack that includes any form of tech.@KarillEndusa", + "A mod that basically lets you do what ever the heck you want.@Joshwoo70", + "TINY TORCHES!! BABY TORCHES!! Somebody actually finally did it!!@Soaryn" + }; + private GuiButton tutorialButton; - private String bookletName; private boolean showTutorial; + private String bookletName; + + private List quote; + private String quoteGuy; + public GuiMainPage(GuiScreen previousScreen){ super(previousScreen, null); } @@ -52,6 +71,13 @@ public class GuiMainPage extends GuiBooklet{ } this.bookletName = "info."+ModUtil.MOD_ID+".booklet.manualName.1."+flavor; + String usedQuote = QUOTES[this.mc.theWorld.rand.nextInt(QUOTES.length)]; + String[] quoteSplit = usedQuote.split("@"); + if(quoteSplit.length == 2){ + this.quote = this.fontRendererObj.listFormattedStringToWidth(quoteSplit[0], 120); + this.quoteGuy = quoteSplit[1]; + } + PlayerSave data = PlayerData.getDataFromPlayer(this.mc.thePlayer); if(!data.didBookTutorial){ this.showTutorial = true; @@ -153,6 +179,14 @@ public class GuiMainPage extends GuiBooklet{ String text = TextFormatting.BLUE+"It looks like this is the first time you are using this manual. \nIf you click the button below, some useful bookmarks will be stored at the bottom of the GUI. You should definitely check them out to get started with "+ModUtil.NAME+"! \nIf you don't want this, shift-click the button."; this.renderSplitScaledAsciiString(text, this.guiLeft+11, this.guiTop+55, 0, false, 0.75F, 120); } + else if(this.quote != null && !this.quote.isEmpty() && this.quoteGuy != null){ + int quoteSize = this.quote.size(); + + for(int i = 0; i < quoteSize; i++){ + this.renderScaledAsciiString(TextFormatting.ITALIC+this.quote.get(i), this.guiLeft+25, this.guiTop+90+(i*8), 0, false, 0.75F); + } + this.renderScaledAsciiString("- "+this.quoteGuy, this.guiLeft+60, this.guiTop+93+quoteSize*8, 0, false, 0.8F); + } } @Override diff --git a/src/main/resources/assets/actuallyadditions/lang/en_us.lang b/src/main/resources/assets/actuallyadditions/lang/en_us.lang index 5eac2cc4c..66d9299ed 100644 --- a/src/main/resources/assets/actuallyadditions/lang/en_us.lang +++ b/src/main/resources/assets/actuallyadditions/lang/en_us.lang @@ -1055,9 +1055,6 @@ booklet.actuallyadditions.chapter.bioReactor.text.1=The Bio Reactor use booklet.actuallyadditions.chapter.farmer.name=Farmer booklet.actuallyadditions.chapter.farmer.text.1=The Farmer is a block that can, once placed in the world, plant and harvest crops like Wheat, Potatoes, Canola and more. The left side of its GUI is reserved for seeds, while the right side will contain the harvested goods. It will farm in a 9x9 area in front of it. For every operation, it uses RF. my fam -booklet.actuallyadditions.chapter.reviews.name=What people think -booklet.actuallyadditions.chapter.reviews.text.1="Actually Additions, to me, is quite magical in a way." -Saphrym "Actually quite cool. Lots of nice little additions. Gonna be in the pack." -Direwolf20 "Mod Dev quite rude and arrogant" -Bubb1e0seven "A whimsical breath of fresh air in a stuffy tech-mod world." -mezz - booklet.actuallyadditions.chapter.lensMoreDeath.name=Lens of the Killer booklet.actuallyadditions.chapter.lensMoreDeath.text.1=The Lens of the Killer works much like the Lens of Certain Death, however it will also drop experience and player-kill loot. This means, however, that it will use a lot more power. To pick up the experience it drops, you might want to try an Experience Solidifier.