Make SetupLatencyWidget consistent with SetupProfileWidget.
This commit is contained in:
@@ -576,7 +576,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
if (template == null || template.Id != editablePlayerTemplate.Id)
|
||||
template = editablePlayerTemplate.Clone();
|
||||
|
||||
LobbyUtils.SetupLatencyWidget(template, client, orderManager, client.Bot == null);
|
||||
LobbyUtils.SetupLatencyWidget(template, client, orderManager);
|
||||
|
||||
if (client.Bot != null)
|
||||
LobbyUtils.SetupEditableSlotWidget(template, slot, client, orderManager, worldRenderer, map);
|
||||
@@ -595,7 +595,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
if (template == null || template.Id != nonEditablePlayerTemplate.Id)
|
||||
template = nonEditablePlayerTemplate.Clone();
|
||||
|
||||
LobbyUtils.SetupLatencyWidget(template, client, orderManager, client.Bot == null);
|
||||
LobbyUtils.SetupLatencyWidget(template, client, orderManager);
|
||||
LobbyUtils.SetupColorWidget(template, slot, client);
|
||||
LobbyUtils.SetupFactionWidget(template, slot, client, factions);
|
||||
|
||||
@@ -667,7 +667,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
LobbyUtils.HideReadyWidgets(template);
|
||||
}
|
||||
|
||||
LobbyUtils.SetupLatencyWidget(template, c, orderManager, true);
|
||||
LobbyUtils.SetupLatencyWidget(template, c, orderManager);
|
||||
template.IsVisible = () => true;
|
||||
|
||||
if (idx >= players.Children.Count)
|
||||
|
||||
Reference in New Issue
Block a user