diff options
author | Kevin <92656833+kevinthegreat1@users.noreply.github.com> | 2024-02-14 14:56:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 14:56:55 -0500 |
commit | 41d02daf5f53a761043ae76f5be484f94ceb0128 (patch) | |
tree | e5c5028c11c135c187477ece01ef3b3c3d809e47 /src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java | |
parent | fd77289b711923ff23c31cc6a26f85fb96e68d4f (diff) | |
parent | cffa68314fc74fbedd97708df5ccb7c098eb638f (diff) | |
download | Skyblocker-41d02daf5f53a761043ae76f5be484f94ceb0128.tar.gz Skyblocker-41d02daf5f53a761043ae76f5be484f94ceb0128.tar.bz2 Skyblocker-41d02daf5f53a761043ae76f5be484f94ceb0128.zip |
Merge pull request #537 from olim88/Search-overlays
Search overlays for bz and ah
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java | 69 |
1 files changed, 49 insertions, 20 deletions
diff --git a/src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java b/src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java index 6411d6e4..175c3bdf 100644 --- a/src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java +++ b/src/main/java/de/hysky/skyblocker/config/SkyblockerConfig.java @@ -241,6 +241,9 @@ public class SkyblockerConfig { public FlameOverlay flameOverlay = new FlameOverlay(); @SerialEntry + public SearchOverlay searchOverlay = new SearchOverlay(); + + @SerialEntry public List<Integer> lockedSlots = new ArrayList<>(); @SerialEntry @@ -415,6 +418,31 @@ public class SkyblockerConfig { public Alignment alignment = Alignment.MIDDLE; } + public enum Direction { + HORIZONTAL, VERTICAL; + + @Override + public String toString() { + return switch (this) { + case HORIZONTAL -> "Horizontal"; + case VERTICAL -> "Vertical"; + }; + } + } + + public enum Alignment { + LEFT, RIGHT, MIDDLE; + + @Override + public String toString() { + return switch (this) { + case LEFT -> "Left"; + case RIGHT -> "Right"; + case MIDDLE -> "Middle"; + }; + } + } + public static class TeleportOverlay { @SerialEntry public boolean enableTeleportOverlays = true; @@ -443,29 +471,30 @@ public class SkyblockerConfig { public float flameOpacity = 0f; } - public enum Direction { - HORIZONTAL, VERTICAL; + public static class SearchOverlay { + @SerialEntry + public boolean enableBazaar = true; - @Override - public String toString() { - return switch (this) { - case HORIZONTAL -> "Horizontal"; - case VERTICAL -> "Vertical"; - }; - } - } + @SerialEntry + public boolean enableAuctionHouse = true; - public enum Alignment { - LEFT, RIGHT, MIDDLE; + @SerialEntry + public boolean keepPreviousSearches = false; - @Override - public String toString() { - return switch (this) { - case LEFT -> "Left"; - case RIGHT -> "Right"; - case MIDDLE -> "Middle"; - }; - } + @SerialEntry + public int maxSuggestions = 3; + + @SerialEntry + public int historyLength = 3; + + @SerialEntry + public boolean enableCommands = false; + + @SerialEntry + public List<String> bazaarHistory = new ArrayList<>(); + + @SerialEntry + public List<String> auctionHistory = new ArrayList<>(); } public static class RichPresence { |