diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-10-17 20:51:43 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-17 11:51:43 +0200 |
commit | 75624d65238a305872b61b43a8b94584a98f657c (patch) | |
tree | 8590b9892406ddcc2f623e0452c0f5afc4d71ad1 /src/main/java/at/hannibal2 | |
parent | efedfa550e5a41d52ff27f98a72571ffe01e9997 (diff) | |
download | skyhanni-75624d65238a305872b61b43a8b94584a98f657c.tar.gz skyhanni-75624d65238a305872b61b43a8b94584a98f657c.tar.bz2 skyhanni-75624d65238a305872b61b43a8b94584a98f657c.zip |
Fix & Backend: Format GardenConfig and bring back option (#592)
Fixed bug that the option Garden Level was not found in the config settins. #592
Diffstat (limited to 'src/main/java/at/hannibal2')
7 files changed, 63 insertions, 27 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/DevConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/DevConfig.java index bacdcd0d5..be43a7526 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/DevConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/DevConfig.java @@ -20,7 +20,8 @@ public class DevConfig { @ConfigOption(name = "Debug", desc = "") @Accordion public DebugConfig debug = new DebugConfig(); - public static class DebugConfig{ + + public static class DebugConfig { @Expose @ConfigOption(name = "Enable Debug", desc = "Enable Test logic") @ConfigEditorBoolean @@ -136,7 +137,7 @@ public class DevConfig { @Accordion public MinecraftConsoleConfig minecraftConsoles = new MinecraftConsoleConfig(); - public static class MinecraftConsoleConfig{ + public static class MinecraftConsoleConfig { @Expose @ConfigOption(name = "Unfiltered Debug", desc = "Print the debug information for unfiltered console messages.") @ConfigEditorBoolean @@ -168,7 +169,7 @@ public class DevConfig { @Accordion public ConsoleFiltersConfig consoleFilter = new ConsoleFiltersConfig(); - public static class ConsoleFiltersConfig{ + public static class ConsoleFiltersConfig { @Expose @ConfigOption(name = "Filter Chat", desc = "Filter chat messages.") @ConfigEditorBoolean diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/FishingConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/FishingConfig.java index b161f356a..56dfc021e 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/FishingConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/FishingConfig.java @@ -93,6 +93,7 @@ public class FishingConfig { @ConfigOption(name = "Thunder Spark", desc = "") @Accordion public ThunderSparkConfig thunderSpark = new ThunderSparkConfig(); + public static class ThunderSparkConfig { @Expose @ConfigOption(name = "Thunder Spark Highlight", desc = "Highlight Thunder Sparks after killing a Thunder.") @@ -110,7 +111,8 @@ public class FishingConfig { @ConfigOption(name = "Barn Fishing Timer", desc = "") @Accordion public BarnTimerConfig barnTimer = new BarnTimerConfig(); - public static class BarnTimerConfig{ + + public static class BarnTimerConfig { @Expose @ConfigOption( name = "Barn Fishing Timer", diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java index c2f4459a5..8d8d18668 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java @@ -29,6 +29,7 @@ public class GardenConfig { @ConfigOption(name = "SkyMart", desc = "") @Accordion public SkyMartConfig skyMart = new SkyMartConfig(); + public static class SkyMartConfig { @Expose @ConfigOption(name = "Copper Price", desc = "Show copper to coin prices inside the SkyMart inventory.") @@ -49,11 +50,13 @@ public class GardenConfig { @ConfigOption(name = "Visitor", desc = "") @Accordion public VisitorConfig visitors = new VisitorConfig(); + public static class VisitorConfig { @Expose @ConfigOption(name = "Visitor Timer", desc = "") @Accordion public TimerConfig timer = new TimerConfig(); + public static class TimerConfig { @Expose @ConfigOption(name = "Visitor Timer", desc = "Timer when the next visitor will appear, " + @@ -82,6 +85,7 @@ public class GardenConfig { @ConfigOption(name = "Visitor Items Needed", desc = "") @Accordion public NeedsConfig needs = new NeedsConfig(); + public static class NeedsConfig { @Expose @ConfigOption(name = "Items Needed", desc = "Show all items needed for the visitors.") @@ -119,6 +123,7 @@ public class GardenConfig { @ConfigOption(name = "Visitor Inventory", desc = "") @Accordion public InventoryConfig inventory = new InventoryConfig(); + public static class InventoryConfig { @Expose @ConfigOption(name = "Visitor Price", desc = "Show the Bazaar price of the items required for the visitors, like in NEU.") @@ -154,6 +159,7 @@ public class GardenConfig { @ConfigOption(name = "Visitor Reward Warning", desc = "") @Accordion public RewardWarningConfig rewardWarning = new RewardWarningConfig(); + public static class RewardWarningConfig { @Expose @@ -314,7 +320,8 @@ public class GardenConfig { @ConfigOption(name = "Numbers", desc = "") @Accordion public NumbersConfig number = new NumbersConfig(); - public static class NumbersConfig{ + + public static class NumbersConfig { @Expose @ConfigOption(name = "Crop Milestone", desc = "Show the number of crop milestones in the inventory.") @ConfigEditorBoolean @@ -344,7 +351,8 @@ public class GardenConfig { @ConfigOption(name = "Crop Milestones", desc = "") @Accordion public CropMilestonesConfig cropMilestones = new CropMilestonesConfig(); - public static class CropMilestonesConfig{ + + public static class CropMilestonesConfig { @Expose @ConfigOption( name = "Progress Display", @@ -421,8 +429,9 @@ public class GardenConfig { @ConfigOption(name = "Best Crop", desc = "") @Accordion public NextConfig next = new NextConfig(); + // TODO moulconfig runnable support - public static class NextConfig{ + public static class NextConfig { @Expose @ConfigOption( name = "Best Display", @@ -483,8 +492,9 @@ public class GardenConfig { @ConfigOption(name = "Mushroom Pet Perk", desc = "") @Accordion public MushroomPetPerkConfig mushroomPetPerk = new MushroomPetPerkConfig(); + // TODO moulconfig runnable support - public static class MushroomPetPerkConfig{ + public static class MushroomPetPerkConfig { @Expose @ConfigOption( name = "Display Enabled", @@ -521,7 +531,7 @@ public class GardenConfig { @Accordion public KeyBindConfig keyBind = new KeyBindConfig(); - public static class KeyBindConfig{ + public static class KeyBindConfig { @Expose @ConfigOption(name = "Enabled", desc = "Use custom keybinds while holding a farming tool or Daedalus Axe in the hand.") @ConfigEditorBoolean @@ -602,7 +612,8 @@ public class GardenConfig { @ConfigOption(name = "Optimal Speed", desc = "") @Accordion public OptimalSpeedConfig optimalSpeeds = new OptimalSpeedConfig(); - public static class OptimalSpeedConfig{ + + public static class OptimalSpeedConfig { @Expose @ConfigOption(name = "Enabled", desc = "Show the optimal speed for your current tool in the hand.\n" + "(Thanks MelonKingDE for the default values).") @@ -709,8 +720,10 @@ public class GardenConfig { @Expose @ConfigOption(name = "Garden Level", desc = "") + @Accordion public GardenLevelConfig gardenLevels = new GardenLevelConfig(); - public static class GardenLevelConfig{ + + public static class GardenLevelConfig { @Expose @ConfigOption(name = "Display", desc = "Show the current Garden level and progress to the next level.") @ConfigEditorBoolean @@ -726,7 +739,7 @@ public class GardenConfig { @Accordion public EliteFarmingWeightConfig eliteFarmingWeights = new EliteFarmingWeightConfig(); - public static class EliteFarmingWeightConfig{ + public static class EliteFarmingWeightConfig { @Expose @ConfigOption(name = "Display", desc = "Display your farming weight on screen. " + "The calculation and API is provided by The Elite SkyBlock farmers. " + @@ -775,9 +788,10 @@ public class GardenConfig { @ConfigOption(name = "Dicer Counter", desc = "") @Accordion public DicerCounterConfig dicerCounters = new DicerCounterConfig(); - public static class DicerCounterConfig{ + + public static class DicerCounterConfig { @Expose - @ConfigOption(name = "RNG Drop Counter", desc = "Count RNG drops for Melon Dicer and Pumpkin Dicer.") + @ConfigOption(name = "RNG Drop Counter", desc = "Count RNG drops for Melon Dicer and Pumpkin Dicer.") @ConfigEditorBoolean @FeatureToggle public boolean display = true; @@ -796,7 +810,8 @@ public class GardenConfig { @ConfigOption(name = "Money per Hour", desc = "") @Accordion public MoneyPerHourConfig moneyPerHours = new MoneyPerHourConfig(); - public static class MoneyPerHourConfig{ + + public static class MoneyPerHourConfig { @Expose @ConfigOption(name = "Show Money per Hour", desc = "Displays the money per hour YOU get with YOUR crop/minute value when selling the item to bazaar. " + @@ -913,7 +928,8 @@ public class GardenConfig { @ConfigOption(name = "Next Jacob's Contest", desc = "") @Accordion public NextJacobContestConfig nextJacobContests = new NextJacobContestConfig(); - public static class NextJacobContestConfig{ + + public static class NextJacobContestConfig { @Expose @ConfigOption(name = "Show Jacob's Contest", desc = "Show the current or next Jacob's farming contest time and crops.") @ConfigEditorBoolean @@ -937,7 +953,7 @@ public class GardenConfig { @Expose @ConfigOption(name = "Share Contests", desc = "Share the list of upcoming Contests to elitebot.dev for everyone else to then fetch automatically.") - @ConfigEditorDropdown(values = { "Ask When Needed", "Share Automatically", "Disabled" }) + @ConfigEditorDropdown(values = {"Ask When Needed", "Share Automatically", "Disabled"}) public int shareAutomatically = 0; @Expose @@ -968,7 +984,8 @@ public class GardenConfig { @Accordion public FarmingArmorDropsConfig farmingArmorDrop = new FarmingArmorDropsConfig(); - public static class FarmingArmorDropsConfig{ + + public static class FarmingArmorDropsConfig { @Expose @ConfigOption(name = "Show Counter", desc = "Count all §9Cropie§7, §5Squash §7and §6Fermento §7dropped.") @ConfigEditorBoolean @@ -989,6 +1006,7 @@ public class GardenConfig { @ConfigOption(name = "Anita Shop", desc = "") @Accordion public AnitaShopConfig anitaShop = new AnitaShopConfig(); + public static class AnitaShopConfig { @Expose @ConfigOption( @@ -1016,7 +1034,8 @@ public class GardenConfig { @ConfigOption(name = "Composter", desc = "") @Accordion public ComposterConfig composters = new ComposterConfig(); - public static class ComposterConfig{ + + public static class ComposterConfig { @Expose @ConfigOption( name = "Composter Overlay", @@ -1107,6 +1126,7 @@ public class GardenConfig { @ConfigOption(name = "Notification When Low Composter", desc = "") @Accordion public NotifyLowConfig notifyLow = new NotifyLowConfig(); + public static class NotifyLowConfig { @Expose @ConfigOption(name = "Enable", desc = "Show a notification when Organic Matter or Fuel runs low in your Composter.") @@ -1149,7 +1169,8 @@ public class GardenConfig { @ConfigOption(name = "Farming Fortune Display", desc = "") @Accordion public FarmingFortuneConfig farmingFortunes = new FarmingFortuneConfig(); - public static class FarmingFortuneConfig{ + + public static class FarmingFortuneConfig { @Expose @ConfigOption( name = "FF Display", @@ -1180,7 +1201,8 @@ public class GardenConfig { @ConfigOption(name = "Tooltip Tweaks", desc = "") @Accordion public TooltipTweaksConfig tooltipTweak = new TooltipTweaksConfig(); - public static class TooltipTweaksConfig{ + + public static class TooltipTweaksConfig { @Expose @ConfigOption( name = "Compact Descriptions", diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/InventoryConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/InventoryConfig.java index 71e916c0b..7025dc2e0 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/InventoryConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/InventoryConfig.java @@ -62,6 +62,7 @@ public class InventoryConfig { @ConfigOption(name = "RNG Meter", desc = "") @Accordion public RngMeterConfig rngMeter = new RngMeterConfig(); + public static class RngMeterConfig { @Expose @ConfigOption(name = "Floor Names", desc = "Show the Floor names in the Catacombs RNG Meter inventory.") @@ -86,6 +87,7 @@ public class InventoryConfig { @ConfigOption(name = "Stats Tuning", desc = "") @Accordion public StatsTuningConfig statsTuning = new StatsTuningConfig(); + public static class StatsTuningConfig { @Expose @ConfigOption(name = "Selected Stats", desc = "Show the tuning stats in the Thaumaturgy inventory.") @@ -116,6 +118,7 @@ public class InventoryConfig { @ConfigOption(name = "Jacob Farming Contest", desc = "") @Accordion public JacobFarmingContestConfig jacobFarmingContests = new JacobFarmingContestConfig(); + public static class JacobFarmingContestConfig { @Expose @ConfigOption(name = "Unclaimed Rewards", desc = "Highlight contests with unclaimed rewards in the Jacob inventory.") @@ -143,7 +146,6 @@ public class InventoryConfig { } - @Expose @ConfigOption(name = "Sack Items Display", desc = "") @Accordion diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/ItemAbilityConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/ItemAbilityConfig.java index 5e326a209..30ba1227f 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/ItemAbilityConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/ItemAbilityConfig.java @@ -26,7 +26,8 @@ public class ItemAbilityConfig { @ConfigOption(name = "Fire Veil", desc = "") @Accordion public FireVeilWandConfig fireVeilWands = new FireVeilWandConfig(); - public static class FireVeilWandConfig{ + + public static class FireVeilWandConfig { @Expose @ConfigOption(name = "Fire Veil Design", desc = "Changes the flame particles of the Fire Veil Wand ability.") @ConfigEditorDropdown(values = {"Particles", "Line", "Off"}) diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/MinionsConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/MinionsConfig.java index 35fe9d8f7..a05b913dc 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/MinionsConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/MinionsConfig.java @@ -3,7 +3,11 @@ package at.hannibal2.skyhanni.config.features; 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.*; +import io.github.moulberry.moulconfig.annotations.Accordion; +import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean; +import io.github.moulberry.moulconfig.annotations.ConfigEditorColour; +import io.github.moulberry.moulconfig.annotations.ConfigEditorSlider; +import io.github.moulberry.moulconfig.annotations.ConfigOption; public class MinionsConfig { @@ -22,6 +26,7 @@ public class MinionsConfig { @ConfigOption(name = "Last Clicked", desc = "") @Accordion public LastClickedMinionConfig lastClickedMinion = new LastClickedMinionConfig(); + public static class LastClickedMinionConfig { @Expose @ConfigOption(name = "Last Minion Display", desc = "Marks the location of the last clicked minion, even through walls.") @@ -54,7 +59,8 @@ public class MinionsConfig { @ConfigOption(name = "Emptied Time", desc = "") @Accordion public EmptiedTimeConfig emptiedTime = new EmptiedTimeConfig(); - public static class EmptiedTimeConfig{ + + public static class EmptiedTimeConfig { @Expose @ConfigOption(name = "Emptied Time Display", desc = "Show the time when the hopper in the minion was last emptied.") @ConfigEditorBoolean diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/SlayerConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/SlayerConfig.java index e041c965e..6ca5ec984 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/SlayerConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/SlayerConfig.java @@ -17,6 +17,7 @@ public class SlayerConfig { @ConfigOption(name = "Enderman Slayer Features", desc = "") @Accordion public EndermanConfig endermen = new EndermanConfig(); + public static class EndermanConfig { @Expose @ConfigOption(name = "Yang Glyph (beacon)", desc = "") @@ -84,12 +85,14 @@ public class SlayerConfig { @ConfigOption(name = "Blaze", desc = "") @Accordion public BlazeConfig blazes = new BlazeConfig(); + public static class BlazeConfig { @Expose @ConfigOption(name = "Hellion Shields", desc = "") @Accordion public BlazeHellionConfig hellion = new BlazeHellionConfig(); - public static class BlazeHellionConfig{ + + public static class BlazeHellionConfig { @Expose @ConfigOption(name = "Colored Mobs", desc = "Color the Blaze Slayer boss and the demons in the right hellion shield color.") @ConfigEditorBoolean @@ -140,7 +143,6 @@ public class SlayerConfig { } - @Expose @ConfigOption(name = "Vampire Slayer Features", desc = "") @Accordion |