From 0cd9274e0fefb8c89b11219f3b96d3b873a090f7 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 4 Apr 2023 20:50:23 +0200 Subject: Added Custom Format - Use a custom format for money per hour --- .../hannibal2/skyhanni/config/features/Garden.java | 26 ++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config/features') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java index 74b874186..d433d401e 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Garden.java @@ -333,7 +333,7 @@ public class Garden { @ConfigOption(name = "Set Default", desc = "Reset all keys to default.") @ConfigEditorButton(buttonText = "Default") @ConfigAccordionId(id = 8) - public Runnable keyBindPresetDefault = ()-> { + public Runnable keyBindPresetDefault = () -> { keyBindAttack = -100; keyBindLeft = Keyboard.KEY_A; keyBindRight = Keyboard.KEY_D; @@ -594,6 +594,7 @@ public class Garden { @ConfigEditorBoolean @ConfigAccordionId(id = 13) public boolean moneyPerHourAlwaysOn = false; + @Expose @ConfigOption( name = "Compact Mode", @@ -601,6 +602,7 @@ public class Garden { @ConfigEditorBoolean @ConfigAccordionId(id = 13) public boolean moneyPerHourCompact = false; + @Expose @ConfigOption( name = "Compact Price", @@ -608,13 +610,29 @@ public class Garden { @ConfigEditorBoolean @ConfigAccordionId(id = 13) public boolean moneyPerHourCompactPrice = false; + @Expose @ConfigOption( - name = "Advanced stats", - desc = "Show not only Sell Offer price but also Instant Sell price and NPC Sell price.") + name = "Use Custom", + desc = "Use the custom format below instead of classic -> §eSell Offer §7and other profiles -> §eNPC Price.") @ConfigEditorBoolean @ConfigAccordionId(id = 13) - public boolean moneyPerHourAdvancedStats = false; + public boolean moneyPerHourUseCustomFormat = false; + + @Expose + @ConfigOption( + name = "Custom Format", + desc = "Set what prices to show") + @ConfigEditorDraggableList( + exampleText = { + "§eSell Offer", + "§eInstant Sell", + "§eNPC Price" + }, + requireNonEmpty = true + ) + @ConfigAccordionId(id = 13) + public List moneyPerHourCustomFormat = new ArrayList<>(Arrays.asList(0, 1, 2)); @Expose public Position moneyPerHourPos = new Position(16, -232, false, true); -- cgit