diff options
| author | Aizistral | 2022-10-24 15:52:04 +0200 |
|---|---|---|
| committer | GitHub | 2022-10-24 15:52:04 +0200 |
| commit | 3a946f7d81efece5a2976fa0ac0720b6ca01bcb8 (patch) | |
| tree | 966944fab2abe00d235e50c368a4697fbce4b604 /src/main/java/com/aizistral | |
| parent | 2029f98302049bbffffca2193bf1a9cdd9e266ec (diff) | |
| parent | d809afc2ed88ac3afb37d2aad6760b64c5d9eb15 (diff) | |
Merge pull request #230 from MODKILLER1001/1.19.2-Fabric
add more options
Diffstat (limited to 'src/main/java/com/aizistral')
| -rw-r--r-- | src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java index aac62a4..8139fca 100644 --- a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java +++ b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java @@ -182,6 +182,38 @@ public final class ModMenuIntegration implements ModMenuApi { }) .build()); + // Set an option for reconnectAwaitSeconds + technical.addEntry(entryBuilder.startIntField(Component.translatable("option.NoChatReports.reconnectAwaitSeconds"), NCRConfig.getClient().reconnectAwaitSeconds) + .setDefaultValue(4) + .setTooltip(this.makeTooltip("option.NoChatReports.reconnectAwaitSeconds.tooltip")) + .setSaveConsumer(newValue -> NCRConfig.getClient().reconnectAwaitSeconds = newValue) + .build()); + + // Set an option for postDisconnectAwaitSeconds + technical.addEntry(entryBuilder.startIntField(Component.translatable("option.NoChatReports.postDisconnectAwaitSeconds"), NCRConfig.getClient().postDisconnectAwaitSeconds) + .setDefaultValue(10) + .setTooltip(this.makeTooltip("option.NoChatReports.postDisconnectAwaitSeconds.tooltip")) + .setSaveConsumer(newValue -> NCRConfig.getClient().postDisconnectAwaitSeconds = newValue) + .build()); + + // Set an option for signingCheckDelaySeconds + technical.addEntry(entryBuilder.startIntField(Component.translatable("option.NoChatReports.signingCheckDelaySeconds"), NCRConfig.getClient().signingCheckDelaySeconds) + .setDefaultValue(43200) + .setTooltip(this.makeTooltip("option.NoChatReports.signingCheckDelaySeconds.tooltip")) + .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()); |
