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,7 +42,14 @@ namespace osu.Game.Overlays
Offset = new Vector2(0f, 1f), Offset = new Vector2(0f, 1f),
}; };
Child = new ScrollContainer Children = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = OsuColour.Gray(0.2f)
},
new ScrollContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
ScrollbarVisible = false, ScrollbarVisible = false,
@ -51,6 +59,7 @@ namespace osu.Game.Overlays
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
}, },
},
}; };
} }