Require LMB for common widget interactions.

This commit is contained in:
Paul Chote
2011-01-03 11:15:54 +13:00
parent abeffbbbf7
commit 1ced0d7ab9
9 changed files with 18 additions and 4 deletions

View File

@@ -171,7 +171,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
game.Name,
game.Address);
template.GetBackground = () => (currentServer == game) ? "dialog2" : null;
template.OnMouseDown = mi => { currentServer = game; return true; };
template.OnMouseDown = mi => { if (mi.Button != MouseButton.Left) return false; currentServer = game; return true; };
template.IsVisible = () => true;
sl.AddChild(template);