Merge pull request #4016 from Mailaender/highlight-start

Blinking ready box when all slots are taken
This commit is contained in:
Paul Chote
2013-12-30 19:25:22 -08:00
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)