blinking ready checkbox when all slots are taken

This commit is contained in:
Matthias Mailänder
2013-12-27 23:36:58 +01:00
parent bb37d90781
commit f35400ad3e
6 changed files with 65 additions and 7 deletions

View File

@@ -284,6 +284,14 @@ namespace OpenRA.Mods.RA.Widgets.Logic
};
}
var statusCheckbox = lobby.GetOrNull<CheckboxWidget>("STATUS_CHECKBOX");
if (statusCheckbox != null)
{
statusCheckbox.IsHighlighted = () => !statusCheckbox.IsChecked() &&
orderManager.LobbyInfo.FirstEmptySlot() == null &&
world.FrameNumber / 25 % 2 == 0;
}
// Options panel
var allowCheats = optionsBin.GetOrNull<CheckboxWidget>("ALLOWCHEATS_CHECKBOX");
if (allowCheats != null)