From 6847a0a5f30fa1d88082f96702ee1760638e1a4e Mon Sep 17 00:00:00 2001 From: Empa <42304516+ItsEmpa@users.noreply.github.com> Date: Tue, 23 Apr 2024 23:20:43 +0200 Subject: Improvement: Infested Plots Display Customization (#1369) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../features/garden/pests/PestFinderConfig.java | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/config') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestFinderConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestFinderConfig.java index c6ccfc3e9..ae2819317 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestFinderConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/pests/PestFinderConfig.java @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.config.FeatureToggle; import at.hannibal2.skyhanni.config.core.config.Position; import com.google.gson.annotations.Expose; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; +import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorKeybind; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; import io.github.notenoughupdates.moulconfig.annotations.ConfigLink; @@ -30,6 +31,32 @@ public class PestFinderConfig { @FeatureToggle public boolean showPlotInWorld = true; + @Expose + @ConfigOption( + name = "Plot Visibility Type", + desc = "Choose how to show infested plots in the world." + ) + @ConfigEditorDropdown + public VisibilityType visibilityType = VisibilityType.BOTH; + + public enum VisibilityType { + BORDER("Border"), + NAME("Name"), + BOTH("Both"), + ; + + private final String str; + + VisibilityType(String str) { + this.str = str; + } + + @Override + public String toString() { + return str; + } + } + @Expose @ConfigOption( name = "Only With Vacuum", -- cgit