Merge pull request #2860 from bidifx/ready-cb

hotfix for #2789, ready CheckBox
This commit is contained in:
Matthias Mailänder
2013-03-27 05:29:51 -07:00

View File

@@ -438,7 +438,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var status = template.Get<CheckboxWidget>("STATUS_CHECKBOX");
status.IsChecked = () => ready;
status.IsVisible = () => true;
status.OnClick += CycleReady;
status.OnClick = CycleReady;
}
else // Bot
template.Get<ImageWidget>("STATUS_IMAGE").IsVisible = () => true;
@@ -513,7 +513,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var status = template.Get<CheckboxWidget>("STATUS_CHECKBOX");
status.IsChecked = () => ready;
status.OnClick += CycleReady;
status.OnClick = CycleReady;
}
// Non-editable spectator
else