From 617130c7f52d35335cd6f4f7f14e7fd3dc3af3af Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 24 May 2023 23:20:53 +0200 Subject: Reworked Hide Armor --- .../hannibal2/skyhanni/config/features/Misc.java | 34 ++++++++++------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config/features') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java index 6dd895023..9db9ea8de 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Misc.java @@ -36,28 +36,26 @@ public class Misc { @Expose public Position realTimePos = new Position(10, 10, false, true); - @Expose @ConfigOption(name = "Hide Armor", desc = "") - @ConfigEditorAccordion(id = 3) - public boolean hideArmor = false; - + @Accordion @Expose - @ConfigOption(name = "Hide Armor", desc = "Hide other players' armor.") - @ConfigEditorBoolean() - @ConfigAccordionId(id = 3) - public Property hideArmorEnabled = Property.of(false); + public HideArmor hideArmor2 = new HideArmor(); - @Expose - @ConfigOption(name = "Own Armor", desc = "Hide your own armor.") - @ConfigEditorBoolean() - @ConfigAccordionId(id = 3) - public Property hideArmorOwn = Property.of(true); + public static class HideArmor { - @Expose - @ConfigOption(name = "Only Helmet", desc = "Only hide the helmet.") - @ConfigEditorBoolean() - @ConfigAccordionId(id = 3) - public Property hideArmorOnlyHelmet = Property.of(false); + @Expose + @ConfigOption(name = "Mode", desc = "Hide the armor of players.") + @ConfigEditorDropdown(values = {"All", "Own Armor", "Other's Armor", "Off"}) + @ConfigAccordionId(id = 1) + public int mode = 3; + + @Expose + @ConfigOption(name = "Only Helmet", desc = "Only hide the helmet.") + @ConfigEditorBoolean() + @ConfigAccordionId(id = 3) + public Boolean onlyHelmet = false; + + } @Expose @ConfigOption(name = "Damage Splash", desc = "") -- cgit