From bed8361a03bc23d725ce856fe787e45535ddd284 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Thu, 5 Dec 2024 06:55:55 -0800 Subject: [PATCH] Display mod version (#10358) --- core/assets/bundles/bundle.properties | 1 + core/src/mindustry/ui/dialogs/ModsDialog.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 65cb29ad98..e3f3f02073 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -144,6 +144,7 @@ mod.enabled = [lightgray]Enabled mod.disabled = [red]Disabled mod.multiplayer.compatible = [gray]Multiplayer Compatible mod.disable = Disable +mod.version = Version: mod.content = Content: mod.delete.error = Unable to delete mod. File may be in use. diff --git a/core/src/mindustry/ui/dialogs/ModsDialog.java b/core/src/mindustry/ui/dialogs/ModsDialog.java index 92d912419e..aa9593beaa 100644 --- a/core/src/mindustry/ui/dialogs/ModsDialog.java +++ b/core/src/mindustry/ui/dialogs/ModsDialog.java @@ -415,6 +415,12 @@ public class ModsDialog extends BaseDialog{ desc.add(mod.meta.author).growX().wrap().padTop(2); desc.row(); } + if(mod.meta.version != null){ + desc.add("@mod.version").padRight(10).color(Color.gray).top(); + desc.row(); + desc.add(mod.meta.version).growX().wrap().padTop(2); + desc.row(); + } if(mod.meta.description != null){ desc.add("@editor.description").padRight(10).color(Color.gray).top(); desc.row();