Double clicking a map in the chooser now selects it.

This commit is contained in:
Paul Chote
2013-10-28 19:33:29 +13:00
parent 773c0a0356
commit 1870e31662
3 changed files with 7 additions and 6 deletions

View File

@@ -65,9 +65,10 @@ namespace OpenRA.Widgets
return w;
}
public static ScrollItemWidget Setup(string key, ScrollItemWidget template, Func<bool> isSelected, Action onClick)
public static ScrollItemWidget Setup(string key, ScrollItemWidget template, Func<bool> isSelected, Action onClick, Action onDoubleClick)
{
var w = Setup(template, isSelected, onClick);
w.OnDoubleClick = onDoubleClick;
w.ItemKey = key;
return w;
}