From b99761318b1b9970333d74fb9fc997173db7b08e Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 22 Jul 2022 19:48:55 +0200 Subject: [PATCH] Added Updater Icon --- .../bclib/client/gui/screens/UpdatesScreen.java | 7 ++++--- src/main/resources/assets/bclib/icon_updater.png | Bin 0 -> 508 bytes 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/assets/bclib/icon_updater.png diff --git a/src/main/java/org/betterx/bclib/client/gui/screens/UpdatesScreen.java b/src/main/java/org/betterx/bclib/client/gui/screens/UpdatesScreen.java index d40d4579..3715b576 100644 --- a/src/main/java/org/betterx/bclib/client/gui/screens/UpdatesScreen.java +++ b/src/main/java/org/betterx/bclib/client/gui/screens/UpdatesScreen.java @@ -28,6 +28,7 @@ import net.fabricmc.loader.api.ModContainer; @Environment(EnvType.CLIENT) public class UpdatesScreen extends BCLibLayoutScreen { public static final String DONATION_URL = "https://www.paypal.com/donate/?hosted_button_id=7VTXYRXBHZQZJ"; + static final ResourceLocation UPDATE_LOGO_LOCATION = new ResourceLocation(BCLib.MOD_ID, "icon_updater.png"); public UpdatesScreen(Screen parent) { super(parent, Component.translatable("bclib.updates.title"), 10, 10, 10); @@ -35,7 +36,7 @@ public class UpdatesScreen extends BCLibLayoutScreen { public ResourceLocation getUpdaterIcon(String modID) { if (modID.equals(BCLib.MOD_ID)) { - return BCLibLayoutScreen.BCLIB_LOGO_LOCATION; + return UPDATE_LOGO_LOCATION; } return EntrypointUtil.getCommon(VersionCheckEntryPoint.class) .stream() @@ -51,7 +52,7 @@ public class UpdatesScreen extends BCLibLayoutScreen { rows.addMultilineText(fill(), fit(), Component.translatable("bclib.updates.description")) .centerHorizontal(); - rows.addSpacer(16); + rows.addSpacer(8); VersionChecker.forEachUpdate((mod, cur, updated) -> { ModContainer nfo = FabricLoader.getInstance().getModContainer(mod).orElse(null); @@ -83,7 +84,7 @@ public class UpdatesScreen extends BCLibLayoutScreen { }); VerticalStack layout = new VerticalStack(relative(1), fill()).centerHorizontal(); - layout.addSpacer(8); + //layout.addSpacer(8); layout.addScrollable(rows); layout.addSpacer(8); diff --git a/src/main/resources/assets/bclib/icon_updater.png b/src/main/resources/assets/bclib/icon_updater.png new file mode 100644 index 0000000000000000000000000000000000000000..bdd375b09d8b919b4ed7f28fccdae4c7412e9f8e GIT binary patch literal 508 zcmVPx$wn;=mR9J<*mpx7bK^TVLB{U{lE_wq^Otb?J0V=JnNa+EHH3y(XY%N7uZeYXG zX+i=w(4A5e%b_r{F3jvV-|h~))n@1CdH9CR>;MIF=3mJo;{m{P1^yIox#r3=i1UlH zim*E8DK%Gw?BrsNZ6d}-7htZ)+RJT#Z6c*z!U3Syo~?1p>f!5mj)$8U0Kj0_aSm=Z zyT-ZWa#Z$@V>6c`CU9~Yi~=r1KB8BIfk6BAPHSTesEnT90l+xfX8KQ$s5N|?SFTh0 z7zJz+09}!^HKyR2KpqjQ)D)N$kWxwjI6OEZC;k4Jlcfg!{tE!$d7hC~HoZ&&D3LG_ zRbD5=kyW-n(I;?CMi~t62fF)d7R~5~aZa0000