work on #993 -- removed OnMouseUp from ReplayBrowserLogic.cs

This commit is contained in:
Chris Forbes
2011-07-08 21:03:45 +12:00
committed by Paul Chote
parent 3bdea009e3
commit accf94d664

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
{
this.widget = widget;
widget.GetWidget<ButtonWidget>("CANCEL_BUTTON").OnMouseUp = mi => Widget.CloseWindow();
widget.GetWidget<ButtonWidget>("CANCEL_BUTTON").OnClick = () => Widget.CloseWindow();
/* find some replays? */
var rl = widget.GetWidget<ScrollPanelWidget>("REPLAY_LIST");
@@ -41,7 +41,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
foreach (var replayFile in Directory.GetFiles(replayDir, "*.rep").Reverse())
AddReplay(rl, replayFile, template);
widget.GetWidget<ButtonWidget>("WATCH_BUTTON").OnMouseUp = mi =>
widget.GetWidget<ButtonWidget>("WATCH_BUTTON").OnClick = () =>
{
if (currentReplay != null)
{