1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 09:32:55 +08:00

Correct masking layers on song select.

This commit is contained in:
Dean Herbert 2017-02-08 20:30:05 +09:00
parent 050fa7fbe8
commit d230c3f9ac
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -27,6 +27,7 @@ using osu.Game.Graphics;
using osu.Framework.Input; using osu.Framework.Input;
using OpenTK.Input; using OpenTK.Input;
using System.Collections.Generic; using System.Collections.Generic;
using osu.Framework.Graphics.Containers;
using osu.Framework.Threading; using osu.Framework.Threading;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
@ -84,20 +85,25 @@ namespace osu.Game.Screens.Select
OsuGame osuGame, OsuColour colours) OsuGame osuGame, OsuColour colours)
{ {
const float carousel_width = 640; const float carousel_width = 640;
const float filter_height = 100;
beatmapGroups = new List<BeatmapGroup>(); beatmapGroups = new List<BeatmapGroup>();
Children = new Drawable[] Children = new Drawable[]
{ {
new ParallaxContainer new ParallaxContainer
{ {
Masking = true, Padding = new MarginPadding { Top = filter_height },
ParallaxAmount = 0.005f, ParallaxAmount = 0.005f,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Children = new [] Children = new[]
{ {
new WedgeBackground new WedgeBackground
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Right = carousel_width * 0.76f }, Padding = new MarginPadding
{
Right = carousel_width * 0.76f
},
}, },
} }
}, },
@ -111,7 +117,7 @@ namespace osu.Game.Screens.Select
filter = new FilterControl filter = new FilterControl
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Height = 100, Height = filter_height,
FilterChanged = filterChanged, FilterChanged = filterChanged,
Exit = Exit, Exit = Exit,
}, },
@ -120,7 +126,11 @@ namespace osu.Game.Screens.Select
Alpha = 0, Alpha = 0,
Size = wedged_container_size, Size = wedged_container_size,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Margin = new MarginPadding { Top = 20, Right = 20, }, Margin = new MarginPadding
{
Top = 20,
Right = 20,
},
}, },
footer = new Footer() footer = new Footer()
{ {