From 8e192ba4147ee74a35fc41f54aee8c5cf6c0b665 Mon Sep 17 00:00:00 2001 From: Bella Date: Tue, 24 Mar 2020 14:51:35 -0400 Subject: [PATCH] add forgehax option to active modules --- .../kami/gui/kami/theme/kami/KamiActiveModulesUI.java | 4 ++-- .../zeroeightsix/kami/module/modules/gui/ActiveModules.java | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/KamiActiveModulesUI.java b/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/KamiActiveModulesUI.java index 710a31c6..1d8be48b 100644 --- a/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/KamiActiveModulesUI.java +++ b/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/KamiActiveModulesUI.java @@ -75,8 +75,8 @@ public class KamiActiveModulesUI extends AbstractComponentUI> 16) & 0xFF; diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/gui/ActiveModules.java b/src/main/java/me/zeroeightsix/kami/module/modules/gui/ActiveModules.java index adcf6326..99a410de 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/gui/ActiveModules.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/gui/ActiveModules.java @@ -21,6 +21,7 @@ import static me.zeroeightsix.kami.util.InfoCalculator.reverseNumber; */ @Module.Info(name = "ActiveModules", category = Module.Category.GUI, description = "Configures ActiveModules Colour", showOnArray = Module.ShowOnArray.OFF) public class ActiveModules extends Module { + private Setting forgeHax = register(Settings.b("ForgeHax", false)); public Setting mode = register(Settings.e("Mode", Mode.RAINBOW)); private Setting rainbowSpeed = register(Settings.integerBuilder().withName("Speed R").withValue(30).withMinimum(0).withMaximum(100).withVisibility(v -> mode.getValue().equals(Mode.RAINBOW)).build()); public Setting saturationR = register(Settings.integerBuilder().withName("Saturation R").withValue(117).withMinimum(0).withMaximum(255).withVisibility(v -> mode.getValue().equals(Mode.RAINBOW)).build()); @@ -85,6 +86,11 @@ public class ActiveModules extends Module { else return rSpeed; } + public String fHax() { + if (forgeHax.getValue()) return ">"; + else return ""; + } + public enum Mode { RAINBOW, CUSTOM, CATEGORY, INFO_OVERLAY } public void onDisable() { sendDisableMessage(getName()); } }