From 93af7607b3d5c1061bc845f097fe8be94c5e2043 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Fri, 1 Mar 2024 17:14:54 +0100 Subject: Internal Change: Bazaar Config -> Inventory Config (#1082) --- .../config/features/bazaar/BazaarConfig.java | 52 ---------------------- .../config/features/inventory/BazaarConfig.java | 52 ++++++++++++++++++++++ .../config/features/inventory/InventoryConfig.java | 4 ++ 3 files changed, 56 insertions(+), 52 deletions(-) delete mode 100644 src/main/java/at/hannibal2/skyhanni/config/features/bazaar/BazaarConfig.java create mode 100644 src/main/java/at/hannibal2/skyhanni/config/features/inventory/BazaarConfig.java (limited to 'src/main/java/at/hannibal2/skyhanni/config/features') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/bazaar/BazaarConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/bazaar/BazaarConfig.java deleted file mode 100644 index cdac05e02..000000000 --- a/src/main/java/at/hannibal2/skyhanni/config/features/bazaar/BazaarConfig.java +++ /dev/null @@ -1,52 +0,0 @@ -package at.hannibal2.skyhanni.config.features.bazaar; - -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.ConfigOption; - -public class BazaarConfig { - - @Expose - @ConfigOption(name = "Purchase Helper", desc = "Highlights the item you are trying to buy in the Bazaar.") - @ConfigEditorBoolean - @FeatureToggle - public boolean purchaseHelper = true; - - @Expose - @ConfigOption(name = "Order Helper", desc = "Show visual hints inside the Bazaar Manage Order view when items are ready to pickup or outbid.") - @ConfigEditorBoolean - @FeatureToggle - public boolean orderHelper = false; - - @Expose - @ConfigOption(name = "Best Sell Method", desc = "Show the price difference between sell instantly and sell offer.") - @ConfigEditorBoolean - @FeatureToggle - public boolean bestSellMethod = false; - - @Expose - public Position bestSellMethodPos = new Position(394, 142, false, true); - - @Expose - @ConfigOption(name = "Cancelled Buy Order Clipboard", desc = "Saves missing items from cancelled buy orders to clipboard for faster re-entry.") - @ConfigEditorBoolean - @FeatureToggle - public boolean cancelledBuyOrderClipboard = false; - - @Expose - @ConfigOption(name = "Price Website", desc = "Adds a button to the Bazaar product inventory that will open the item page in §cskyblock.bz§7.") - @ConfigEditorBoolean - @FeatureToggle - public boolean openPriceWebsite = false; - - @Expose - @ConfigOption(name = "Max Items With Purse", desc = "Calculates the maximum amount of items that can be purchased from the Bazaar with the amount of coins in your purse.") - @ConfigEditorBoolean - @FeatureToggle - public boolean maxPurseItems = false; - - @Expose - public Position maxPurseItemsPosition = new Position(346, 90, true, false); -} diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/inventory/BazaarConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/BazaarConfig.java new file mode 100644 index 000000000..418d629dc --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/config/features/inventory/BazaarConfig.java @@ -0,0 +1,52 @@ +package at.hannibal2.skyhanni.config.features.inventory; + +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.ConfigOption; + +public class BazaarConfig { + + @Expose + @ConfigOption(name = "Purchase Helper", desc = "Highlights the item you are trying to buy in the Bazaar.") + @ConfigEditorBoolean + @FeatureToggle + public boolean purchaseHelper = true; + + @Expose + @ConfigOption(name = "Order Helper", desc = "Show visual hints inside the Bazaar Manage Order view when items are ready to pickup or outbid.") + @ConfigEditorBoolean + @FeatureToggle + public boolean orderHelper = false; + + @Expose + @ConfigOption(name = "Best Sell Method", desc = "Show the price difference between sell instantly and sell offer.") + @ConfigEditorBoolean + @FeatureToggle + public boolean bestSellMethod = false; + + @Expose + public Position bestSellMethodPos = new Position(394, 142, false, true); + + @Expose + @ConfigOption(name = "Cancelled Buy Order Clipboard", desc = "Saves missing items from cancelled buy orders to clipboard for faster re-entry.") + @ConfigEditorBoolean + @FeatureToggle + public boolean cancelledBuyOrderClipboard = false; + + @Expose + @ConfigOption(name = "Price Website", desc = "Adds a button to the Bazaar product inventory that will open the item page in §cskyblock.bz§7.") + @ConfigEditorBoolean + @FeatureToggle + public boolean openPriceWebsite = false; + + @Expose + @ConfigOption(name = "Max Items With Purse", desc = "Calculates the maximum amount of items that can be purchased from the Bazaar with the amount of coins in your purse.") + @ConfigEditorBoolean + @FeatureToggle + public boolean maxPurseItems = false; + + @Expose + public Position maxPurseItemsPosition = new Position(346, 90, true, false); +} 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 553d58214..172907150 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 @@ -56,6 +56,10 @@ public class InventoryConfig { @Category(name = "Skyblock Guide", desc = "") public SkyblockGuideConfig skyblockGuideConfig = new SkyblockGuideConfig(); + @Expose + @Category(name = "Bazaar", desc = "Bazaar settings.") + public BazaarConfig bazaar = new BazaarConfig(); + @Expose @Category(name = "Helpers", desc = "Settings for Helpers") public HelperConfig helper = new HelperConfig(); -- cgit