Fix dropdown miscompile bug under mono 2.6.7.
This commit is contained in:
@@ -117,12 +117,11 @@ namespace OpenRA.Widgets
|
|||||||
|
|
||||||
public static void ShowDropPanel(Widget w, Widget panel, IEnumerable<Widget> dismissAfter, Func<bool> onDismiss)
|
public static void ShowDropPanel(Widget w, Widget panel, IEnumerable<Widget> dismissAfter, Func<bool> onDismiss)
|
||||||
{
|
{
|
||||||
var fullscreenMask = new ContainerWidget
|
var fullscreenMask = new ContainerWidget();
|
||||||
{
|
// Don't use initializers - breaks on mono 2.6.7
|
||||||
Bounds = new Rectangle(0, 0, Game.viewport.Width, Game.viewport.Height),
|
fullscreenMask.Bounds = new Rectangle(0, 0, Game.viewport.Width, Game.viewport.Height);
|
||||||
ClickThrough = false,
|
fullscreenMask.ClickThrough = false;
|
||||||
Visible = true
|
fullscreenMask.Visible = true;
|
||||||
};
|
|
||||||
Widget.RootWidget.AddChild(fullscreenMask);
|
Widget.RootWidget.AddChild(fullscreenMask);
|
||||||
|
|
||||||
Action HideDropDown = () =>
|
Action HideDropDown = () =>
|
||||||
|
|||||||
Reference in New Issue
Block a user