mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 05:49:56 +08:00
Move negative corner radius margin to constructor
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user