diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-18 11:36:02 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-18 11:36:02 +0100 |
commit | 8c32d23f14858adcfc740706a9feea79647126c2 (patch) | |
tree | 6224ffbbf75e43e22f59e8fd93e54229954a7a6c /src/main/java/at/hannibal2/skyhanni | |
parent | 42610a4dfaf50b6fcee9896a3b9b25837e595201 (diff) | |
download | skyhanni-8c32d23f14858adcfc740706a9feea79647126c2.tar.gz skyhanni-8c32d23f14858adcfc740706a9feea79647126c2.tar.bz2 skyhanni-8c32d23f14858adcfc740706a9feea79647126c2.zip |
Added option to change the item scale of SkyMart Coins per Copper list.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/garden/SkyMartConfig.java | 6 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/inventory/SkyMartCopperPrice.kt | 2 |
2 files changed, 7 insertions, 1 deletions
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 { @@ -19,5 +20,10 @@ public class SkyMartConfig { 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" ) } |