Skip to content

Commit 824672c

Browse files
authored
Add basic card back design (ppy#37128)
It's just something more than nothing. <img width="1079" height="554" alt="osu Game Tests 2026-03-27 at 08 26 34" src="https://github.com/user-attachments/assets/de1485f7-b29c-4bc5-aec4-dbc736a87961" />
1 parent 522d2bd commit 824672c

1 file changed

Lines changed: 29 additions & 4 deletions

File tree

osu.Game/Screens/OnlinePlay/Matchmaking/RankedPlay/Card/RankedPlayCardBackSide.cs

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33

44
using osu.Framework.Allocation;
55
using osu.Framework.Graphics;
6+
using osu.Framework.Graphics.Colour;
67
using osu.Framework.Graphics.Containers;
78
using osu.Framework.Graphics.Shapes;
9+
using osu.Framework.Graphics.Sprites;
10+
using osu.Framework.Graphics.Textures;
11+
using osu.Game.Graphics.Backgrounds;
812
using osu.Game.Overlays;
13+
using osuTK;
914

1015
namespace osu.Game.Screens.OnlinePlay.Matchmaking.RankedPlay.Card
1116
{
@@ -17,15 +22,35 @@ public RankedPlayCardBackSide()
1722
}
1823

1924
[BackgroundDependencyLoader]
20-
private void load(OverlayColourProvider colourProvider)
25+
private void load(OverlayColourProvider colourProvider, TextureStore textures)
2126
{
2227
Masking = true;
2328
CornerRadius = RankedPlayCard.CORNER_RADIUS;
2429

25-
InternalChild = new Box
30+
InternalChildren = new Drawable[]
2631
{
27-
RelativeSizeAxes = Axes.Both,
28-
Colour = colourProvider.Background1,
32+
new Box
33+
{
34+
RelativeSizeAxes = Axes.Both,
35+
Colour =
36+
ColourInfo.GradientVertical(
37+
colourProvider.Background3,
38+
colourProvider.Background4),
39+
},
40+
new TrianglesV2
41+
{
42+
RelativeSizeAxes = Axes.Both,
43+
Colour = colourProvider.Background4,
44+
SpawnRatio = 1.2f,
45+
Velocity = 0.1f,
46+
},
47+
new Sprite
48+
{
49+
Texture = textures.Get(@"Menu/logo"),
50+
Size = new Vector2(32),
51+
Anchor = Anchor.Centre,
52+
Origin = Anchor.Centre,
53+
},
2954
};
3055
}
3156
}

0 commit comments

Comments
 (0)