From af91518334e5845e289fa0add2ae7f13035672fc Mon Sep 17 00:00:00 2001 From: Grayray75 <69988482+Grayray75@users.noreply.github.com> Date: Fri, 28 Jun 2024 21:19:11 +0200 Subject: [PATCH] Update fallback option screen notice Fixes #15 --- .../io/grayray75/mods/fpsdisplay/gui/FallbackOptionScreen.java | 3 +-- src/main/resources/assets/fpsdisplay/lang/de_de.json | 2 +- src/main/resources/assets/fpsdisplay/lang/en_us.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/grayray75/mods/fpsdisplay/gui/FallbackOptionScreen.java b/src/main/java/io/grayray75/mods/fpsdisplay/gui/FallbackOptionScreen.java index abf40cd..b2ffe38 100644 --- a/src/main/java/io/grayray75/mods/fpsdisplay/gui/FallbackOptionScreen.java +++ b/src/main/java/io/grayray75/mods/fpsdisplay/gui/FallbackOptionScreen.java @@ -31,10 +31,9 @@ protected void init() { @Override public void render(DrawContext context, int mouseX, int mouseY, float delta) { - this.renderBackground(context, mouseX, mouseY, delta); + super.render(context, mouseX, mouseY, delta); context.drawCenteredTextWithShadow(this.textRenderer, this.title, this.width / 2, 20, 0xFFFFFF); context.drawCenteredTextWithShadow(this.textRenderer, Text.translatable("text.fpsdisplay.options.fallback_message"), this.width / 2, this.height / 2, 0xFFFFFF); - super.render(context, mouseX, mouseY, delta); } @Override diff --git a/src/main/resources/assets/fpsdisplay/lang/de_de.json b/src/main/resources/assets/fpsdisplay/lang/de_de.json index 1fdf374..7f2a3f6 100644 --- a/src/main/resources/assets/fpsdisplay/lang/de_de.json +++ b/src/main/resources/assets/fpsdisplay/lang/de_de.json @@ -1,6 +1,6 @@ { "text.fpsdisplay.options.fallback_title": "FPS-Display Einstellungen Hinweis", - "text.fpsdisplay.options.fallback_message": "Bitte installiere 'Cloth Config API', um auf das Optionsmenü zugreifen zu können", + "text.fpsdisplay.options.fallback_message": "Bitte installiere 'Cloth Config API' oder 'YetAnotherConfigLib', um auf das Optionsmenü zugreifen zu können", "text.fpsdisplay.options.title": "FPS-Display Einstellungen", "text.fpsdisplay.options.enabled": "Aktiv", "text.fpsdisplay.options.advancedStats": "Zeige minimale, durchschittliche und maximale FPS", diff --git a/src/main/resources/assets/fpsdisplay/lang/en_us.json b/src/main/resources/assets/fpsdisplay/lang/en_us.json index e63bb0f..0f787ce 100644 --- a/src/main/resources/assets/fpsdisplay/lang/en_us.json +++ b/src/main/resources/assets/fpsdisplay/lang/en_us.json @@ -1,6 +1,6 @@ { "text.fpsdisplay.options.fallback_title": "FPS-Display Settings Notice", - "text.fpsdisplay.options.fallback_message": "Please install 'Cloth Config API' in order to access the option menu", + "text.fpsdisplay.options.fallback_message": "Please install 'Cloth Config' or 'YetAnotherConfigLib' in order to access the option menu", "text.fpsdisplay.options.title": "FPS-Display Settings", "text.fpsdisplay.options.enabled": "Enabled", "text.fpsdisplay.options.advancedStats": "Show minimal, average and maximal FPS",