From d809afc2ed88ac3afb37d2aad6760b64c5d9eb15 Mon Sep 17 00:00:00 2001 From: MODKILLER1001 Date: Thu, 20 Oct 2022 09:00:32 -0400 Subject: add more options --- .../aizistral/nochatreports/config/ModMenuIntegration.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/main/java/com/aizistral/nochatreports') diff --git a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java index 88b85c2..a0b88b2 100644 --- a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java +++ b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java @@ -198,6 +198,17 @@ public final class ModMenuIntegration implements ModMenuApi { .setSaveConsumer(newValue -> NCRConfig.getClient().signingCheckDelaySeconds = newValue) .build()); + // Warning for showEncryptionButton + technical.addEntry(entryBuilder.startTextDescription(Component.translatable("gui.NoChatReports.showEncryptionButtonWarning")) + .build()); + + // Set an option for showEncryptionButton + technical.addEntry(entryBuilder.startBooleanToggle(Component.translatable("option.NoChatReports.showEncryptionButton"), NCRConfig.getEncryption().showEncryptionButton) + .setDefaultValue(true) + .setTooltip(this.makeTooltip("option.NoChatReports.showEncryptionButton.tooltip")) + .setSaveConsumer(newValue -> NCRConfig.getEncryption().showEncryptionButton = newValue) + .build()); + // Instructions for adding servers whitelistedServers.addEntry(entryBuilder.startTextDescription(Component.translatable("option.NoChatReports.whitelistedServers.instructions")) .build()); -- cgit v1.2.3