1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-21 13:28:12 +03:00

Use short map names

This commit is contained in:
Anuken 2019-10-22 19:37:03 -04:00
parent b98b9a98e3
commit 1f5e639fb2
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ public class MapGenerator extends Generator{
return this;
}
public void removePrefix(String name){
this.mapName = name.substring(name.length() + 1);
this.mapName = this.mapName.substring(name.length() + 1);
}
{

View File

@ -93,7 +93,7 @@ public class ModsDialog extends FloatingDialog{
t.margin(14f).left();
t.table(title -> {
title.left();
title.add("[accent]" + mod.meta.name + "[lightgray] v" + mod.meta.version + (" | " + Core.bundle.get(mod.enabled() ? "mod.enabled" : "mod.disabled")));
title.add("[accent]" + mod.meta.name + "[lightgray] v" + mod.meta.version + (" | " + Core.bundle.get(mod.enabled() ? "mod.enabled" : "mod.disabled"))).width(270f).wrap();
title.add().growX();
title.addImageTextButton(mod.enabled() ? "$mod.disable" : "$mod.enable", mod.enabled() ? Icon.arrowDownSmall : Icon.arrowUpSmall, Styles.cleart, () -> {

View File

@ -130,7 +130,7 @@ public class SWorkshop implements SteamUGCCallback{
p.removeSteamID();
ui.showErrorMessage("$missing");
}else{
ui.showErrorMessage(Core.bundle.format("workshop.error", result.name()));
ui.showErrorMessage(Core.bundle.format("workshop.error", details.getResult().name()));
}
}else{
ui.showErrorMessage(Core.bundle.format("workshop.error", result.name()));