Add a background to the overlay.

This commit is contained in:
DrabWeb 2017-09-12 21:00:20 -03:00
parent a291bd3020
commit d09bcabc8f
2 changed files with 19 additions and 7 deletions

View File

@ -378,6 +378,9 @@ namespace osu.Desktop.VisualTests.Tests
}, },
}); });
}); });
AddStep(@"hide", overlay.Hide);
AddStep(@"show without reload", overlay.Show);
} }
} }
} }

View File

@ -6,6 +6,7 @@ using OpenTK.Graphics;
using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
@ -41,15 +42,23 @@ namespace osu.Game.Overlays
Offset = new Vector2(0f, 1f), Offset = new Vector2(0f, 1f),
}; };
Child = new ScrollContainer Children = new Drawable[]
{ {
RelativeSizeAxes = Axes.Both, new Box
ScrollbarVisible = false,
Child = scrollContent = new ReverseChildIDFillFlowContainer<Drawable>
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.Both,
AutoSizeAxes = Axes.Y, Colour = OsuColour.Gray(0.2f)
Direction = FillDirection.Vertical, },
new ScrollContainer
{
RelativeSizeAxes = Axes.Both,
ScrollbarVisible = false,
Child = scrollContent = new ReverseChildIDFillFlowContainer<Drawable>
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical,
},
}, },
}; };
} }