Support multiple key handlers.

This commit is contained in:
Paul Chote
2017-09-03 16:50:41 +01:00
committed by reaperrr
parent 7459050af9
commit c6fe1639db
5 changed files with 19 additions and 9 deletions

View File

@@ -138,7 +138,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
shroudLabelAlt.GetColor = () => selected.Color;
var keyhandler = shroudSelector.Get<LogicKeyListenerWidget>("SHROUD_KEYHANDLER");
keyhandler.OnKeyPress = HandleKeyPress;
keyhandler.AddHandler(HandleKeyPress);
selected = limitViews ? groups.First().Value.First() : world.WorldActor.Owner.Shroud.ExploreMapEnabled ? combined : disableShroud;
selected.OnClick();