From adeef76521b8d685fc6e013a8847e56d12b4c079 Mon Sep 17 00:00:00 2001 From: "Joseph T. McQuigg" Date: Sun, 24 Nov 2024 15:38:22 -0500 Subject: [PATCH] Add BWG info to Biomepedia --- CHANGELOG.md | 1 + Common/src/generated/resources/assets/byg/lang/en_us.json | 6 ++---- .../gui/biomepedia/screen/BiomepediaHomeScreen.java | 8 +++++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a890f5145..8b7938193 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * Fix Rose Collector and Explore Biome Advancements missing Language Keys * Remove Translate and Ores Options from Biomepedia * Add Man O War Bucket to #c:entity_water_buckets item tag +* Add BWG info to Biomepedia # 4.0.1.2 (Forge Only) * Add SereneSeasons Support diff --git a/Common/src/generated/resources/assets/byg/lang/en_us.json b/Common/src/generated/resources/assets/byg/lang/en_us.json index e31e04124..13e9da4d3 100644 --- a/Common/src/generated/resources/assets/byg/lang/en_us.json +++ b/Common/src/generated/resources/assets/byg/lang/en_us.json @@ -136,10 +136,8 @@ "biomepedia.intro.options.download.hover": "Get the latest BYG from the official download page!", "biomepedia.intro.options.issues": "Issues", "biomepedia.intro.options.issues.hover": "Found a bug or issue? Report it to us!", - "biomepedia.intro.options.ores": "Ores", - "biomepedia.intro.options.ores.hover": "Learn more about BYG's ores!", - "biomepedia.intro.options.translate": "Translate", - "biomepedia.intro.options.translate.hover": "Know any other languages beyond English? Help us translate!", + "biomepedia.intro.options.bwg": "Biomes We've Gone", + "biomepedia.intro.options.bwg.hover": "Learn more about the sequel to BYG!", "block.byg.allium_flower_bush": "Allium Flower Bush", "block.byg.aloe_vera": "Aloe Vera", "block.byg.alpine_bellflower": "Alpine Bellflower", diff --git a/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomepediaHomeScreen.java b/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomepediaHomeScreen.java index fb1a57ffd..bc2720880 100644 --- a/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomepediaHomeScreen.java +++ b/Common/src/main/java/potionstudios/byg/client/gui/biomepedia/screen/BiomepediaHomeScreen.java @@ -27,6 +27,7 @@ public class BiomepediaHomeScreen extends AbstractBiomepediaScreen { public static final String GITHUB_ISSUES_URL = "https://github.com/Potion-Studios/BYG/issues"; public static final ResourceLocation BIOMEPEDIA_LOCATION = BYG.createLocation("textures/gui/biomepedia_book_gui.png"); public static final String DOWNLOAD_URL = ModPlatform.INSTANCE.curseForgeURL(); + public static final String BWG_URL = "https://www.curseforge.com/minecraft/mc-mods/oh-the-biomes-weve-gone"; public static final ResourceLocation BOOK_TEXTURES = BYG.createLocation("textures/gui/biomepedia.png"); int toolTipMaxWidth; @@ -80,7 +81,12 @@ protected void init() { .tooltip(Tooltip.create(Component.translatable("biomepedia.intro.options.download.hover"))) .build(); - List buttons = ImmutableList.of(blocksAndItems, biomes, download, issues, donate); + Button bwg = new Button.Builder(Component.translatable("biomepedia.intro.options.bwg"), + consumeLink(BWG_URL)).bounds(0, this.topPos, buttonWidth, buttonHeight) + .tooltip(Tooltip.create(Component.translatable("biomepedia.intro.options.bwg.hover"))) + .build(); + + List buttons = ImmutableList.of(blocksAndItems, biomes, download, issues, donate, bwg); int listRenderedHeight = IMAGE_HEIGHT + this.bottomPos; this.widgets = new WidgetList(buttons, buttonWidth + 9, listRenderedHeight + 20, this.bottomPos + 15, listRenderedHeight - 15, buttonHeight + 4);