summaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
authorAizistral2022-09-14 21:09:06 +0200
committerAizistral2022-09-14 21:09:06 +0200
commit0674c43d012f5aeb019a1df6f9eac6af1f5b2666 (patch)
tree8c3c1b1f70897dd74f7bc8d47d6d88fc0ca3136e /src/main/resources
parentd8c1fc6f3fb0e1c535592d23c069ea41e9d74773 (diff)
Add "disable whole mod" button
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/assets/nochatreports/lang/en_us.json3
-rw-r--r--src/main/resources/assets/nochatreports/textures/gui/ncr_toggle_button.pngbin0 -> 1268 bytes
-rw-r--r--src/main/resources/nochatreports.accesswidener6
3 files changed, 8 insertions, 1 deletions
diff --git a/src/main/resources/assets/nochatreports/lang/en_us.json b/src/main/resources/assets/nochatreports/lang/en_us.json
index 9a6c84d..2acdeb4 100644
--- a/src/main/resources/assets/nochatreports/lang/en_us.json
+++ b/src/main/resources/assets/nochatreports/lang/en_us.json
@@ -13,6 +13,9 @@
"gui.nochatreports.unsafe_server.check": "Do not show again for this server",
"gui.nochatrepords.reload_config_tooltip": "Reload No Chat Reports config. Use carefully.",
"gui.nochatreports.verified_server": "§a§lSafe Server§r\nWe could verify that this server has No Chat Reports installed, or prevents chat reports in some other known way. You can chat there safely.",
+ "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nDisable or enable most of the mod's client-sided functionality. You may have to do this to join some Paper/Velocity servers, as they are known for causing issues with NCR.\nCertain networking-unrelated things, such as chat trust status tweaks and removal of vanilla's \"Chat messages can't be verified\" toast will still work; they can be disabled in config individually.",
+ "gui.nochatreports.ncr_state_on": "§a§lEnabled§r",
+ "gui.nochatreports.ncr_state_off": "§c§lDisabled§r",
"configuration.NoChatReports.config": "No Chat Reports",
diff --git a/src/main/resources/assets/nochatreports/textures/gui/ncr_toggle_button.png b/src/main/resources/assets/nochatreports/textures/gui/ncr_toggle_button.png
new file mode 100644
index 0000000..5d213f8
--- /dev/null
+++ b/src/main/resources/assets/nochatreports/textures/gui/ncr_toggle_button.png
Binary files differ
diff --git a/src/main/resources/nochatreports.accesswidener b/src/main/resources/nochatreports.accesswidener
index b1e1b2d..de7f190 100644
--- a/src/main/resources/nochatreports.accesswidener
+++ b/src/main/resources/nochatreports.accesswidener
@@ -1,4 +1,8 @@
accessWidener v1 named
mutable field net/minecraft/client/multiplayer/ClientPacketListener callbackScreen Lnet/minecraft/client/gui/screens/Screen;
accessible field net/minecraft/client/multiplayer/ClientPacketListener callbackScreen Lnet/minecraft/client/gui/screens/Screen;
-accessible field net/minecraft/client/gui/screens/SimpleOptionsSubScreen list Lnet/minecraft/client/gui/components/OptionsList; \ No newline at end of file
+accessible field net/minecraft/client/gui/screens/SimpleOptionsSubScreen list Lnet/minecraft/client/gui/components/OptionsList;
+accessible field net/minecraft/client/gui/components/ImageButton xTexStart I
+accessible field net/minecraft/client/gui/components/ImageButton yTexStart I
+mutable field net/minecraft/client/gui/components/ImageButton xTexStart I
+mutable field net/minecraft/client/gui/components/ImageButton yTexStart I \ No newline at end of file