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

This commit is contained in:
Chris Forbes
2011-07-08 21:04:57 +12:00
committed by Paul Chote
parent accf94d664
commit b9834c5b88

View File

@@ -43,13 +43,13 @@ namespace OpenRA.Mods.RA.Widgets.Logic
bg.GetWidget<LabelWidget>("CURMAP_THEATER").GetText = () => Rules.TileSets[Map.Tileset].Name;
bg.GetWidget<LabelWidget>("CURMAP_PLAYERS").GetText = () => Map.PlayerCount.ToString();
bg.GetWidget<ButtonWidget>("BUTTON_OK").OnMouseUp = mi =>
bg.GetWidget<ButtonWidget>("BUTTON_OK").OnClick = () =>
{
orderManager.IssueOrder(Order.Command("map " + Map.Uid));
Widget.CloseWindow();
};
bg.GetWidget<ButtonWidget>("BUTTON_CANCEL").OnMouseUp = mi => Widget.CloseWindow();
bg.GetWidget<ButtonWidget>("BUTTON_CANCEL").OnClick = () => Widget.CloseWindow();
scrollpanel = bg.GetWidget<ScrollPanelWidget>("MAP_LIST");
itemTemplate = scrollpanel.GetWidget<ScrollItemWidget>("MAP_TEMPLATE");