Alathra / AlathraExtrasVS

AlathraExtras for Vintage Story
GNU General Public License v3.0
0 stars 0 forks source link

Names in playerlist are getting cut off #14

Closed ShubiMaja closed 1 week ago

ShubiMaja commented 1 week ago

Image

Tablist (PlayerList mod) is broken somehow and playernames are getting cut off.

ShubiMaja commented 1 week ago

We observed the following reproducible behavior:

  1. player bob joins the server. Player list is as wide as bob
  2. player abracadabra joins the server. Player list is as wide bob
  3. player z joins the server. Player list is as wide as z

We believe this happens because the function sorts the player list alphabetically and then sets the width to the size of the name which is last alphabetically, which in this case is z (or before bob)

Solution: Change the function in https://github.com/Alathra/VS-PlayerList/blob/master/src/gui/GuiPlayerGrid.cs