Add a WidgetArgs type to work around gmcs not understanding lambda -> Action -> object.
This commit is contained in:
@@ -38,10 +38,10 @@ namespace OpenRA.Mods.Cnc.Widgets
|
||||
|
||||
panel.GetWidget<CncMenuButtonWidget>("MAP_BUTTON").OnClick = () =>
|
||||
{
|
||||
Widget.OpenWindow( "MAPCHOOSER_PANEL", new Dictionary<string, object>
|
||||
Widget.OpenWindow( "MAPCHOOSER_PANEL", new WidgetArgs()
|
||||
{
|
||||
{ "initialMap", map.Uid },
|
||||
{ "onExit", new Action(() => {}) },
|
||||
{ "onExit", () => {} },
|
||||
{ "onSelect", new Action<Map>(m => map = m) }
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user