From 8c32d23f14858adcfc740706a9feea79647126c2 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 18 Nov 2023 11:36:02 +0100 Subject: Added option to change the item scale of SkyMart Coins per Copper list. --- .../at/hannibal2/skyhanni/config/features/garden/SkyMartConfig.java | 6 ++++++ .../skyhanni/features/garden/inventory/SkyMartCopperPrice.kt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/SkyMartConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/SkyMartConfig.java index 7dfd94b34..65eeea93e 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/garden/SkyMartConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/SkyMartConfig.java @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.config.FeatureToggle; import at.hannibal2.skyhanni.config.core.config.Position; import com.google.gson.annotations.Expose; import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; +import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider; import io.github.moulberry.moulconfig.annotations.ConfigOption; public class SkyMartConfig { @@ -18,6 +19,11 @@ public class SkyMartConfig { @ConfigEditorBoolean public boolean copperPriceAdvancedStats = false; + @Expose + @ConfigOption(name = "Item Scale", desc = "Change the size of the items.") + @ConfigEditorSlider(minValue = 0.3f, maxValue = 5, minStep = 0.1f) + public double itemScale = 1.7; + @Expose public Position copperPricePos = new Position(211, 132, false, true); } diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/SkyMartCopperPrice.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/SkyMartCopperPrice.kt index ffd2dfa51..a70ca7f96 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/SkyMartCopperPrice.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/SkyMartCopperPrice.kt @@ -73,7 +73,7 @@ class SkyMartCopperPrice { config.copperPricePos.renderStringsAndItems( display, extraSpace = 5, - itemScale = 1.7, + itemScale = config.itemScale, posLabel = "SkyMart Copper Price" ) } -- cgit