From 4f6402335faaf0305444f9207f1f532a9fd44fc3 Mon Sep 17 00:00:00 2001 From: MODKILLER1001 Date: Thu, 15 Sep 2022 00:35:06 -0400 Subject: add modmenu buttons --- .../aizistral/nochatreports/config/ModMenuIntegration.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java index 9f42b67..d0ee316 100644 --- a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java +++ b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java @@ -163,6 +163,20 @@ public final class ModMenuIntegration implements ModMenuApi { .setSaveConsumer(newValue -> NCRConfig.getClient().whitelistAllServers = newValue) .build()); + // Set an option for showNCRButton + technical.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.showNCRButton"), NCRConfig.getClient().showNCRButton) + .setDefaultValue(true) + .setTooltip(this.makeTooltip("option.NoChatReports.showNCRButton.tooltip")) + .setSaveConsumer(newValue -> NCRConfig.getClient().showNCRButton = newValue) + .build()); + + // Set an option for enableMod + technical.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.enableMod"), NCRConfig.getClient().enableMod) + .setDefaultValue(true) + .setTooltip(this.makeTooltip("option.NoChatReports.enableMod.tooltip")) + .setSaveConsumer(newValue -> NCRConfig.getClient().enableMod = newValue) + .build()); + // Instructions for adding servers whitelistedServers.addEntry(entryBuilder.startTextDescription(Component.translatable("option.NoChatReports.whitelistedServers.instructions")) .build()); -- cgit v1.2.3