1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 03:31:23 +08:00

Move negative corner radius margin to constructor

This commit is contained in:
Joseph Madamba
2023-09-04 12:42:01 -07:00
Unverified
parent e8a793425b
commit 2df2002735
2 changed files with 11 additions and 6 deletions
@@ -50,13 +50,17 @@ namespace osu.Game.Tests.Visual.SongSelect
RelativeSizeAxes = Axes.X,
Margin = new MarginPadding { Top = 20, Left = -10 }
},
infoWedge = new TestBeatmapInfoWedgeV2
new Container
{
State = { Value = Visibility.Visible },
Width = 0.6f,
RelativeSizeAxes = Axes.X,
Margin = new MarginPadding { Top = 20, Left = -10 }
},
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Top = 20 },
Child = infoWedge = new TestBeatmapInfoWedgeV2
{
State = { Value = Visibility.Visible },
Width = 0.6f,
RelativeSizeAxes = Axes.X,
},
}
});
AddSliderStep("change star difficulty", 0, 11.9, 5.55, v =>
@@ -55,6 +55,7 @@ namespace osu.Game.Screens.Select
Height = WEDGE_HEIGHT;
Shear = wedged_container_shear;
Masking = true;
Margin = new MarginPadding { Left = -corner_radius };
EdgeEffect = new EdgeEffectParameters
{
Colour = Colour4.Black.Opacity(0.2f),