Added version type

This commit is contained in:
Anuken
2018-09-04 12:10:48 -04:00
parent 063893adee
commit 26ae4edd63
8 changed files with 30 additions and 20 deletions

View File

@@ -161,7 +161,7 @@ public class JoinDialog extends FloatingDialog{
versionString = Bundles.get("text.server.outdated.client") + "\n" +
Bundles.format("text.server.version", host.version);
}else{
versionString = Bundles.format("text.server.version", host.version);
versionString = Bundles.format("text.server.version", host.version, host.versionType);
}
server.content.clear();

View File

@@ -42,7 +42,7 @@ public class MenuFragment extends Fragment{
}
//version info
parent.fill(c -> c.bottom().left().add("Mindustry " + Version.code + " " + Version.type + " / " + Version.buildName)
parent.fill(c -> c.bottom().left().add("Mindustry " + Version.number + "-" + Version.modifier + " " + Version.type + " / " + (Version.build == -1 ? "custom build" : "build " + Version.build))
.visible(() -> state.is(State.menu)));
}