diff --git a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs index ad2749ea0d..cbc18d7b2d 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyLogic.cs @@ -646,6 +646,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic if (client.IsAdmin) LobbyUtils.SetupEditableReadyWidget(template, null, client, orderManager, map); + else + LobbyUtils.HideReadyWidgets(template); } else { @@ -661,6 +663,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic if (client.IsAdmin) LobbyUtils.SetupReadyWidget(template, null, client); + else + LobbyUtils.HideReadyWidgets(template); } LobbyUtils.SetupLatencyWidget(template, c, orderManager, true); diff --git a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyUtils.cs b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyUtils.cs index 9ff2e0c59e..c68ed27165 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyUtils.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Lobby/LobbyUtils.cs @@ -564,6 +564,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic parent.Get("STATUS_IMAGE").IsVisible = () => c.IsReady || c.Bot != null; } + public static void HideReadyWidgets(Widget parent) + { + HideChildWidget(parent, "STATUS_CHECKBOX"); + HideChildWidget(parent, "STATUS_IMAGE"); + } + public static void AddPlayerFlagAndName(ScrollItemWidget template, Player player) { var flag = template.Get("FLAG");