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; return this;
} }
public void removePrefix(String name){ 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.margin(14f).left();
t.table(title -> { t.table(title -> {
title.left(); 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.add().growX();
title.addImageTextButton(mod.enabled() ? "$mod.disable" : "$mod.enable", mod.enabled() ? Icon.arrowDownSmall : Icon.arrowUpSmall, Styles.cleart, () -> { 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(); p.removeSteamID();
ui.showErrorMessage("$missing"); ui.showErrorMessage("$missing");
}else{ }else{
ui.showErrorMessage(Core.bundle.format("workshop.error", result.name())); ui.showErrorMessage(Core.bundle.format("workshop.error", details.getResult().name()));
} }
}else{ }else{
ui.showErrorMessage(Core.bundle.format("workshop.error", result.name())); ui.showErrorMessage(Core.bundle.format("workshop.error", result.name()));