Serverlist cheats (#11541)

* Mass driver bullets explosions like the blocks

* Better code style

* Fixed new lines server-cheat

* Update contributors

"Serverlist ui" contribute
"Massdrivers" contribute

---------

Co-authored-by: TempUser <temp@mail>
This commit is contained in:
Agzam4
2026-01-06 05:51:08 +03:00
committed by GitHub
parent e890363345
commit 08c3de06e2
2 changed files with 3 additions and 2 deletions

View File

@@ -269,7 +269,7 @@ public class JoinDialog extends BaseDialog{
t.left();
t.setColor(color);
t.add(host.name + " " + versionString).style(Styles.outlineLabel).padLeft(10f).width(twidth).left().ellipsis(true);
t.add((host.name + " " + versionString).replace('\n', ' ')).style(Styles.outlineLabel).padLeft(10f).width(twidth).left().ellipsis(true);
}).growX().height(36f).row();
}
@@ -298,7 +298,7 @@ public class JoinDialog extends BaseDialog{
t.add("[lightgray]" + (Core.bundle.format("players" + (host.players == 1 && host.playerLimit <= 0 ? ".single" : ""),
(host.players == 0 ? "[lightgray]" : "[accent]") + host.players + (host.playerLimit > 0 ? "[lightgray]/[accent]" + host.playerLimit : "")+ "[lightgray]"))).left().row();
t.add("[lightgray]" + Core.bundle.format("save.map", host.mapname) + "[lightgray] / " + (host.modeName == null ? host.mode.toString() : host.modeName)).width(twidth).left().ellipsis(true).row();
t.add(("[lightgray]" + Core.bundle.format("save.map", host.mapname) + "[lightgray] / " + (host.modeName == null ? host.mode.toString() : host.modeName)).replace('\n', ' ')).width(twidth).left().ellipsis(true).row();
if(host.ping > 0){
t.add(Iconc.chartBar + " " + host.ping + "ms").style(Styles.outlineLabel).color(Pal.gray).left();