mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-01 18:50:27 +03:00
Better player name wrapping in player list
This commit is contained in:
@@ -132,8 +132,7 @@ public class PlayerListFragment{
|
||||
});
|
||||
|
||||
button.add(iconTable).size(h);
|
||||
button.labelWrap("[#" + user.color().toString().toUpperCase() + "]" + user.name()).style(Styles.outlineLabel).width(170f).pad(10);
|
||||
button.add().grow();
|
||||
button.add("[#" + user.color().toString().toUpperCase() + "]" + user.name()).style(Styles.outlineLabel).growX().wrap(true).pad(10);
|
||||
|
||||
button.background(Tex.underline);
|
||||
|
||||
@@ -249,7 +248,7 @@ public class PlayerListFragment{
|
||||
.size(h);
|
||||
}
|
||||
|
||||
content.add(button).width(350f).height(h + 14);
|
||||
content.add(button).width(mobile ? 350f : 470f).height(h + 14);
|
||||
content.row();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user