diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-07-06 07:57:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-06 07:57:22 +0200 |
commit | 34ba8c5fb8304e7b568822f8d3f675a0f133c6da (patch) | |
tree | 57ad5d042796e6d2de6bfe52435b1039d8fbee1e /src/main/java/at/hannibal2/skyhanni/config/features | |
parent | 406225e030892acf8a3e35791571af23b3bb8225 (diff) | |
download | skyhanni-34ba8c5fb8304e7b568822f8d3f675a0f133c6da.tar.gz skyhanni-34ba8c5fb8304e7b568822f8d3f675a0f133c6da.tar.bz2 skyhanni-34ba8c5fb8304e7b568822f8d3f675a0f133c6da.zip |
Improvement: Estimated Item Value (#2180)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/misc/EstimatedItemValueConfig.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/misc/EstimatedItemValueConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/misc/EstimatedItemValueConfig.java index d1d3e2425..dcbb65d15 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/misc/EstimatedItemValueConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/misc/EstimatedItemValueConfig.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.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorKeybind; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; import io.github.notenoughupdates.moulconfig.annotations.ConfigLink; @@ -64,6 +65,36 @@ public class EstimatedItemValueConfig { public boolean ignoreRunes = false; @Expose + @ConfigOption(name = "Bazaar Price Source", desc = "Use Instant Buy or Buy Order.") + @ConfigEditorDropdown + public BazaarPriceSource bazaarPriceSource = BazaarPriceSource.BUY_ORDER; + + public enum BazaarPriceSource { + INSTANT_BUY("Instant Buy"), + BUY_ORDER("Buy Order"), + ; + private final String str; + + BazaarPriceSource(String str) { + this.str = str; + } + + @Override + public String toString() { + return str; + } + } + + @Expose + @ConfigOption( + name = "Use Attribute Price", + desc = "Show composite price for attributes instead of lowest bin. " + + "This will drastically decrease the estimated value but might be correct when buying multiple low tier items and combining them." + ) + @ConfigEditorBoolean + public boolean useAttributeComposite = false; + + @Expose @ConfigLink(owner = EstimatedItemValueConfig.class, field = "enabled") public Position itemPriceDataPos = new Position(140, 90, false, true); } |