wire cancel button for replay viewer

This commit is contained in:
Chris Forbes
2010-11-10 10:25:10 +13:00
parent 4f3b16cab2
commit 2c13ebc6e7

View File

@@ -16,6 +16,12 @@ namespace OpenRA.Widgets.Delegates
public ReplayBrowserDelegate( [ObjectCreator.Param] Widget widget )
{
/* todo */
widget.GetWidget("CANCEL_BUTTON").OnMouseUp = mi =>
{
Widget.CloseWindow();
return true;
};
}
}
}