Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@

using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Game.Graphics.Backgrounds;
using osu.Game.Overlays;
using osuTK;

namespace osu.Game.Screens.OnlinePlay.Matchmaking.RankedPlay.Card
{
Expand All @@ -17,15 +22,35 @@ public RankedPlayCardBackSide()
}

[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)
private void load(OverlayColourProvider colourProvider, TextureStore textures)
{
Masking = true;
CornerRadius = RankedPlayCard.CORNER_RADIUS;

InternalChild = new Box
InternalChildren = new Drawable[]
{
RelativeSizeAxes = Axes.Both,
Colour = colourProvider.Background1,
new Box
{
RelativeSizeAxes = Axes.Both,
Colour =
ColourInfo.GradientVertical(
colourProvider.Background3,
colourProvider.Background4),
},
new TrianglesV2
{
RelativeSizeAxes = Axes.Both,
Colour = colourProvider.Background4,
SpawnRatio = 1.2f,
Velocity = 0.1f,
},
new Sprite
{
Texture = textures.Get(@"Menu/logo"),
Size = new Vector2(32),
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
},
};
}
}
Expand Down
Loading