From 6e8746c9d143f938876ff6fd6fb8624d41a552f9 Mon Sep 17 00:00:00 2001 From: froslanz Date: Thu, 22 Oct 2026 13:52:50 -0400 Subject: [PATCH] show [+]/[-] badges on module toggle notifications toggling a module now announces "[+] Name" in green for enabled and "[-] Name" in red for disabled instead of the trailing on/off wording. visual range notifications keep the shared "{gray} name message" format --- .../fros/features/modules/client/NotificationsModule.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/cc/fros/features/modules/client/NotificationsModule.java b/src/main/java/cc/fros/features/modules/client/NotificationsModule.java index 410ed95..d7678cd 100644 --- a/src/main/java/cc/fros/features/modules/client/NotificationsModule.java +++ b/src/main/java/cc/fros/features/modules/client/NotificationsModule.java @@ -19,6 +19,7 @@ import static cc.fros.util.chat.SimpleSignature.from; public class NotificationsModule extends Module { private static final String MODULE_FORMAT = "{gray} %s %s%s"; + private static final String TOGGLE_FORMAT = "%s%s {gray}%s"; public final Setting moduleToggle = bool("ModuleToggle", true); public final Setting visualRange = bool("VisualRange", true); @@ -45,10 +46,10 @@ public class NotificationsModule extends Module { ? module.getDisplayName() : event.getFeature().getName(); - ChatUtil.sendMessage(TextUtil.text(MODULE_FORMAT, - name, + ChatUtil.sendMessage(TextUtil.text(TOGGLE_FORMAT, moduleState ? "{green}" : "{red}", - moduleState ? "on" : "off"), from(event.getFeature().getName())); + moduleState ? "[+]" : "[-]", + name), from(event.getFeature().getName())); } @Override