diff options
author | Obsidian <108832807+Obsidianninja11@users.noreply.github.com> | 2024-03-01 01:23:20 -0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 11:23:20 +0100 |
commit | e249c70d1b0f8f543ae2fb63d71672b981cedcc0 (patch) | |
tree | cedae9090e0affb80da1036a2b82f2c57832c032 /src/main/java/at/hannibal2/skyhanni/config/features | |
parent | 498eb136629d3f2b22f217ebec60b60761e1b899 (diff) | |
download | skyhanni-e249c70d1b0f8f543ae2fb63d71672b981cedcc0.tar.gz skyhanni-e249c70d1b0f8f543ae2fb63d71672b981cedcc0.tar.bz2 skyhanni-e249c70d1b0f8f543ae2fb63d71672b981cedcc0.zip |
Added Copy Underbid Keybind. (#1052)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHouseConfig.java | 47 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/inventory/InventoryConfig.java | 26 |
2 files changed, 52 insertions, 21 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHouseConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHouseConfig.java new file mode 100644 index 000000000..8c3d8d385 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/AuctionHouseConfig.java @@ -0,0 +1,47 @@ +package at.hannibal2.skyhanni.config.features.inventory; + +import at.hannibal2.skyhanni.config.FeatureToggle; +import com.google.gson.annotations.Expose; +import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; +import io.github.moulberry.moulconfig.annotations.ConfigEditorKeybind; +import io.github.moulberry.moulconfig.annotations.ConfigOption; +import org.lwjgl.input.Keyboard; + +public class AuctionHouseConfig { + + + @Expose + @ConfigOption( + name = "Highlight Auctions", + desc = "Highlight own items that are sold in green and that are expired in red." + ) + @ConfigEditorBoolean + @FeatureToggle + public boolean highlightAuctions = true; + + @Expose + @ConfigOption( + name = "Highlight Underbid Auctions", + desc = "Highlight underbid own lowest BIN auctions that are outbid." + ) + @ConfigEditorBoolean + @FeatureToggle + public boolean highlightAuctionsUnderbid = false; + + @Expose + @ConfigOption( + name = "Auto Copy Underbid", + desc = "Automatically copies the price of an item in the \"Create BIN Auction\" minus 1 coin into the clipboard for faster under-bidding." + ) + @ConfigEditorBoolean + @FeatureToggle + public boolean autoCopyUnderbidPrice = false; + + @Expose + @ConfigOption( + name = "Copy Underbid Keybind", + desc = "Copies the price of the hovered item in Auction House minus 1 coin into the clipboard for easier under-bidding." + ) + @ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE) + public int copyUnderbidKeybind = Keyboard.KEY_NONE; +} 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 82235a828..553d58214 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 @@ -66,6 +66,11 @@ public class InventoryConfig { public GetFromSackConfig gfs = new GetFromSackConfig(); @Expose + @ConfigOption(name = "Auctions", desc = "") + @Accordion + public AuctionHouseConfig auctions = new AuctionHouseConfig(); + + @Expose @ConfigOption( name = "Item Number", desc = "Showing the item number as a stack size for these items." @@ -174,27 +179,6 @@ public class InventoryConfig { public boolean powerStoneGuide = true; @Expose - @ConfigOption(name = "Highlight Auctions", - desc = "Highlight own items that are sold in green and that are expired in red.") - @ConfigEditorBoolean - @FeatureToggle - public boolean highlightAuctions = true; - - @Expose - @ConfigOption(name = "Highlight Underbid Auctions", - desc = "Highlight underbid own lowest BIN auctions that are outbid.") - @ConfigEditorBoolean - @FeatureToggle - public boolean highlightAuctionsUnderbid = false; - - @Expose - @ConfigOption(name = "Copy Underbid Price", - desc = "Copies the price of an item in the \"Create BIN Auction\" minus 1 coin into the clipboard for faster under-bidding.") - @ConfigEditorBoolean - @FeatureToggle - public boolean copyUnderbidPrice = false; - - @Expose @ConfigOption(name = "Shift Click Equipment", desc = "Makes normal clicks to shift clicks in equipment inventory.") @ConfigEditorBoolean @FeatureToggle |