Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
Add BWG info to Biomepedia
Browse files Browse the repository at this point in the history
  • Loading branch information
JT122406 committed Nov 24, 2024
1 parent 5584cf6 commit adeef76
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions Common/src/generated/resources/assets/byg/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -80,7 +81,12 @@ protected void init() {
.tooltip(Tooltip.create(Component.translatable("biomepedia.intro.options.download.hover")))
.build();

List<AbstractWidget> 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<AbstractWidget> 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);
Expand Down

0 comments on commit adeef76

Please sign in to comment.