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:
parent
b98b9a98e3
commit
1f5e639fb2
@ -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);
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -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, () -> {
|
||||
|
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user