diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-03-14 12:18:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 12:18:43 +0100 |
commit | 578069c68c0dc648bcc9e5fa6a2d445da7fc8e9c (patch) | |
tree | 512fd0dbfe9e411d7df0133d58190b7f4c2e9a74 /src/main/java/at/hannibal2/skyhanni/config | |
parent | 020f9b5758870d806754051f1e87ec276b0a8521 (diff) | |
download | skyhanni-578069c68c0dc648bcc9e5fa6a2d445da7fc8e9c.tar.gz skyhanni-578069c68c0dc648bcc9e5fa6a2d445da7fc8e9c.tar.bz2 skyhanni-578069c68c0dc648bcc9e5fa6a2d445da7fc8e9c.zip |
Feature: AH estimated item value comparison (#339)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Co-authored-by: Cal <cwolfson58@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
2 files changed, 46 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHousePriceComparisonConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHousePriceComparisonConfig.java new file mode 100644 index 000000000..3ff502632 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHousePriceComparisonConfig.java @@ -0,0 +1,41 @@ +package at.hannibal2.skyhanni.config.features.inventory; + +import at.hannibal2.skyhanni.config.FeatureToggle; +import at.hannibal2.skyhanni.utils.LorenzColor; +import com.google.gson.annotations.Expose; +import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; +import io.github.moulberry.moulconfig.annotations.ConfigEditorColour; +import io.github.moulberry.moulconfig.annotations.ConfigOption; + +public class AuctionHousePriceComparisonConfig { + + @Expose + @ConfigOption( + name = "Show Price Comparison", + desc = "Highlight auctions based on the difference between their estimated value and the value they are listed for. §eCan " + + "be very inaccurate." + ) + @ConfigEditorBoolean + @FeatureToggle + public boolean enabled = false; + + @Expose + @ConfigOption(name = "Good Colour", desc = "What colour to highlight good value items with.") + @ConfigEditorColour + public String good = LorenzColor.GREEN.toConfigColour(); + + @Expose + @ConfigOption(name = "Very Good Colour", desc = "What colour to highlight very good value items with.") + @ConfigEditorColour + public String veryGood = "0:255:0:139:0"; + + @Expose + @ConfigOption(name = "Bad Colour", desc = "What colour to highlight bad items with.") + @ConfigEditorColour + public String bad = LorenzColor.YELLOW.toConfigColour(); + + @Expose + @ConfigOption(name = "Very Bad Colour", desc = "What colour to highlight very bad items with.") + @ConfigEditorColour + public String veryBad = "0:255:225:43:30"; +} diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java index e82ca2827..874fde7d7 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java @@ -75,6 +75,11 @@ public class InventoryConfig { public AuctionHouseConfig auctions = new AuctionHouseConfig(); @Expose + @ConfigOption(name = "Auctions Price Comparison", desc = "") + @Accordion + public AuctionHousePriceComparisonConfig auctionsPriceComparison = new AuctionHousePriceComparisonConfig(); + + @Expose @ConfigOption( name = "Item Number", desc = "Showing the item number as a stack size for these items." |