From bf3428b53c1a2018fc5b4c20be7668f425f8d826 Mon Sep 17 00:00:00 2001 From: coolGi Date: Thu, 24 Aug 2023 21:07:05 +0930 Subject: [PATCH] Added version number to bottom left of config (#558) --- .../common/wrappers/gui/ClassicConfigGUI.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/ClassicConfigGUI.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/ClassicConfigGUI.java index cd0b35ab2..ca0f10490 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/ClassicConfigGUI.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/ClassicConfigGUI.java @@ -385,9 +385,15 @@ public class ClassicConfigGUI DhDrawCenteredString(matrices, font, title, width / 2, 15, 0xFFFFFF); // Render title - // If the update is pending, display this message to inform the user that it will apply when the game restarts - if (SelfUpdater.deleteOldOnClose) - DhDrawString(matrices, font, Translatable(configBase.modID + ".updater.waitingForClose"), 4, height - 38, 0xFFFFFF); + if (this.configBase.modID == "distanthorizons") + { + // Display version + DhDrawString(matrices, font, TextOrLiteral(ModInfo.VERSION), 2, height - 10, 0xAAAAAA); + + // If the update is pending, display this message to inform the user that it will apply when the game restarts + if (SelfUpdater.deleteOldOnClose) + DhDrawString(matrices, font, Translatable(configBase.modID + ".updater.waitingForClose"), 4, height - 38, 0xFFFFFF); + } // Render the tooltip only if it can find a tooltip in the language file