From dfd73ce209244d61a55c59ca67c1fa2264e87a14 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 8 Jul 2011 20:56:54 +1200 Subject: [PATCH] work on #993 -- removed OnMouseUp from MainMenuButtonsLogic.cs --- OpenRA.Mods.RA/Widgets/Logic/MainMenuButtonsLogic.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/OpenRA.Mods.RA/Widgets/Logic/MainMenuButtonsLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/MainMenuButtonsLogic.cs index 03765243d1..2658ca8f3b 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/MainMenuButtonsLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/MainMenuButtonsLogic.cs @@ -25,12 +25,12 @@ namespace OpenRA.Mods.RA.Widgets.Logic public MainMenuButtonsLogic([ObjectCreator.Param] Widget widget) { Game.modData.WidgetLoader.LoadWidget( new WidgetArgs(), Widget.RootWidget, "PERF_BG" ); - widget.GetWidget("MAINMENU_BUTTON_JOIN").OnMouseUp = mi => Widget.OpenWindow("JOINSERVER_BG"); - widget.GetWidget("MAINMENU_BUTTON_CREATE").OnMouseUp = mi => Widget.OpenWindow("CREATESERVER_BG"); - widget.GetWidget("MAINMENU_BUTTON_SETTINGS").OnMouseUp = mi => Widget.OpenWindow("SETTINGS_MENU"); - widget.GetWidget("MAINMENU_BUTTON_MUSIC").OnMouseUp = mi => Widget.OpenWindow("MUSIC_MENU"); - widget.GetWidget("MAINMENU_BUTTON_REPLAY_VIEWER").OnMouseUp = mi => Widget.OpenWindow("REPLAYBROWSER_BG"); - widget.GetWidget("MAINMENU_BUTTON_QUIT").OnMouseUp = mi => Game.Exit(); + widget.GetWidget("MAINMENU_BUTTON_JOIN").OnClick = () => Widget.OpenWindow("JOINSERVER_BG"); + widget.GetWidget("MAINMENU_BUTTON_CREATE").OnClick = () => Widget.OpenWindow("CREATESERVER_BG"); + widget.GetWidget("MAINMENU_BUTTON_SETTINGS").OnClick = () => Widget.OpenWindow("SETTINGS_MENU"); + widget.GetWidget("MAINMENU_BUTTON_MUSIC").OnClick = () => Widget.OpenWindow("MUSIC_MENU"); + widget.GetWidget("MAINMENU_BUTTON_REPLAY_VIEWER").OnClick = () => Widget.OpenWindow("REPLAYBROWSER_BG"); + widget.GetWidget("MAINMENU_BUTTON_QUIT").OnClick = () => Game.Exit(); DisplayModSelector(); }