Skip to content

Commit

Permalink
Display mod version (#10358)
Browse files Browse the repository at this point in the history
  • Loading branch information
MEEPofFaith authored Dec 5, 2024
1 parent b80c876 commit bed8361
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/assets/bundles/bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 6 additions & 0 deletions core/src/mindustry/ui/dialogs/ModsDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,12 @@ private void showMod(LoadedMod mod){
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();
Expand Down

0 comments on commit bed8361

Please sign in to comment.