1 net tick is 120 ms and good order latency should be 2-3

color code names in lobby accordingly
This commit is contained in:
Matthias Mailänder
2013-04-18 23:42:32 +02:00
parent d2a6781e7e
commit ef20009310
4 changed files with 19 additions and 2 deletions

View File

@@ -477,6 +477,9 @@ namespace OpenRA.Mods.RA.Widgets.Logic
template.Get<LabelWidget>("NAME").GetText = () => client.Name;
if (client.IsAdmin)
template.Get<LabelWidget>("NAME").Font = "Bold";
if (client.Ping > -1)
template.Get<LabelWidget>("NAME").GetColor = () => LobbyUtils.GetPingColor(client.Ping);
var color = template.Get<ColorBlockWidget>("COLOR");
color.GetColor = () => client.ColorRamp.GetColor(0);