diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-16 20:31:04 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-16 20:31:04 +0100 |
commit | 07351036391533533cd059ef6910c6bc1efeb36f (patch) | |
tree | 723c655ac358227b98548a4e81f1eafd00636265 /src/main/java/at/hannibal2/skyhanni/config | |
parent | 67011d64534f855959ab33abc56e83eec713e924 (diff) | |
download | skyhanni-07351036391533533cd059ef6910c6bc1efeb36f.tar.gz skyhanni-07351036391533533cd059ef6910c6bc1efeb36f.tar.bz2 skyhanni-07351036391533533cd059ef6910c6bc1efeb36f.zip |
Show copper to coin prices inside the Sky Mart inventory.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/Features.java | 9 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/Garden.java | 25 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/Features.java b/src/main/java/at/hannibal2/skyhanni/config/Features.java index f0a830624..633bc66c6 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/Features.java +++ b/src/main/java/at/hannibal2/skyhanni/config/Features.java @@ -136,6 +136,11 @@ public class Features extends Config { editOverlay(activeConfigCategory, 200, 16, misc.tpsDisplayPosition); return; } + + if (runnableId.equals("skyMartCopperPrice")) { + editOverlay(activeConfigCategory, 200, 16, garden.skyMartCopperPricePos); + return; + } } @Expose @@ -203,6 +208,10 @@ public class Features extends Config { public Mobs mobs = new Mobs(); @Expose + @Category(name = "Garden", desc = "Features on the Garden island.") + public Garden garden = new Garden(); + + @Expose @Category(name = "Misc", desc = "Settings without a category.") public Misc misc = new Misc(); diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java new file mode 100644 index 000000000..9dec32d73 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java @@ -0,0 +1,25 @@ +package at.hannibal2.skyhanni.config.features; + +import at.hannibal2.skyhanni.config.core.config.Position; +import at.hannibal2.skyhanni.config.core.config.annotations.*; +import com.google.gson.annotations.Expose; + +public class Garden { + + @Expose + @ConfigOption(name = "Sky Mart", desc = "") + @ConfigEditorAccordion(id = 0) + public boolean skyMart = false; + + @Expose + @ConfigOption(name = "Copper Price", desc = "Show copper to coin prices inside the Sky Mart inventory.") + @ConfigEditorBoolean + @ConfigAccordionId(id = 0) + public boolean skyMartCopperPrice = true; + + @Expose + @ConfigOption(name = "Copper Price Position", desc = "") + @ConfigEditorButton(runnableId = "skyMartCopperPrice", buttonText = "Edit") + @ConfigAccordionId(id = 0) + public Position skyMartCopperPricePos = new Position(44, -108, false, true); +} |