mirror of
https://github.com/ppy/osu.git
synced 2025-03-12 09:47:18 +08:00
Inline single usage of EdgeEffect.
This commit is contained in:
parent
8cb334a118
commit
256a3268ac
@ -26,13 +26,6 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
private const float background_alpha = 0.25f;
|
private const float background_alpha = 0.25f;
|
||||||
private const float rank_width = 30;
|
private const float rank_width = 30;
|
||||||
|
|
||||||
private readonly EdgeEffect imageShadow = new EdgeEffect
|
|
||||||
{
|
|
||||||
Type = EdgeEffectType.Shadow,
|
|
||||||
Radius = 1,
|
|
||||||
Colour = Color4.Black.Opacity(0.2f),
|
|
||||||
};
|
|
||||||
|
|
||||||
private Box background;
|
private Box background;
|
||||||
private Container content, avatar;
|
private Container content, avatar;
|
||||||
private DrawableRank scoreRank;
|
private DrawableRank scoreRank;
|
||||||
@ -154,7 +147,12 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
Size = new Vector2(HEIGHT - edge_margin * 2, HEIGHT - edge_margin * 2),
|
Size = new Vector2(HEIGHT - edge_margin * 2, HEIGHT - edge_margin * 2),
|
||||||
CornerRadius = corner_radius,
|
CornerRadius = corner_radius,
|
||||||
Masking = true,
|
Masking = true,
|
||||||
EdgeEffect = imageShadow,
|
EdgeEffect = new EdgeEffect
|
||||||
|
{
|
||||||
|
Type = EdgeEffectType.Shadow,
|
||||||
|
Radius = 1,
|
||||||
|
Colour = Color4.Black.Opacity(0.2f),
|
||||||
|
},
|
||||||
UserId = Score.User?.Id ?? Score.UserID,
|
UserId = Score.User?.Id ?? Score.UserID,
|
||||||
},
|
},
|
||||||
new Container
|
new Container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user