From c32e0186b9e51d8548291bb893dbfbbee17fca84 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 8 Jul 2011 20:52:31 +1200 Subject: [PATCH] work on #993 -- removed OnMouseUp from ConnectionDialogsLogic.cs --- OpenRA.Mods.RA/Widgets/Logic/ConnectionDialogsLogic.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.RA/Widgets/Logic/ConnectionDialogsLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/ConnectionDialogsLogic.cs index 7d318d3840..30baa434aa 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/ConnectionDialogsLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/ConnectionDialogsLogic.cs @@ -21,7 +21,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic [ObjectCreator.Param] string host, [ObjectCreator.Param] int port ) { - widget.GetWidget("CONNECTION_BUTTON_ABORT").OnMouseUp = mi => { + widget.GetWidget("CONNECTION_BUTTON_ABORT").OnClick = () => { widget.GetWidget("CONNECTION_BUTTON_ABORT").Parent.Visible = false; Game.Disconnect(); Game.LoadShellMap(); @@ -41,14 +41,14 @@ namespace OpenRA.Mods.RA.Widgets.Logic [ObjectCreator.Param] Widget widget, [ObjectCreator.Param] OrderManager orderManager) { - widget.GetWidget("CONNECTION_BUTTON_CANCEL").OnMouseUp = mi => { + widget.GetWidget("CONNECTION_BUTTON_CANCEL").OnClick = () => { widget.GetWidget("CONNECTION_BUTTON_CANCEL").Parent.Visible = false; Game.Disconnect(); Game.LoadShellMap(); Widget.CloseWindow(); Widget.OpenWindow("MAINMENU_BG"); }; - widget.GetWidget("CONNECTION_BUTTON_RETRY").OnMouseUp = mi => + widget.GetWidget("CONNECTION_BUTTON_RETRY").OnClick = () => Game.JoinServer(orderManager.Host, orderManager.Port); widget.GetWidget("CONNECTION_FAILED_DESC").GetText = () => string.IsNullOrEmpty(orderManager.ServerError) ?