mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 18:12:55 +08:00
Merge pull request #14307 from jacobvm04/add-supporter-glow-changelog
Add glow to supporter promo on changelog
This commit is contained in:
commit
4fb6f5c5ed
@ -24,6 +24,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
public class ChangelogSupporterPromo : CompositeDrawable
|
public class ChangelogSupporterPromo : CompositeDrawable
|
||||||
{
|
{
|
||||||
private const float image_container_width = 164;
|
private const float image_container_width = 164;
|
||||||
|
private const float heart_size = 75;
|
||||||
|
|
||||||
private readonly FillFlowContainer textContainer;
|
private readonly FillFlowContainer textContainer;
|
||||||
private readonly Container imageContainer;
|
private readonly Container imageContainer;
|
||||||
@ -134,18 +135,30 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
Margin = new MarginPadding { Bottom = 28 },
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
FillMode = FillMode.Fill,
|
FillMode = FillMode.Fill,
|
||||||
Texture = textures.Get(@"Online/supporter-pippi"),
|
Texture = textures.Get(@"Online/supporter-pippi"),
|
||||||
},
|
},
|
||||||
new Sprite
|
new Container
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Width = 75,
|
Size = new Vector2(heart_size),
|
||||||
Height = 75,
|
|
||||||
Margin = new MarginPadding { Top = 70 },
|
Margin = new MarginPadding { Top = 70 },
|
||||||
Texture = textures.Get(@"Online/supporter-heart"),
|
Masking = true,
|
||||||
|
EdgeEffect = new EdgeEffectParameters
|
||||||
|
{
|
||||||
|
Type = EdgeEffectType.Shadow,
|
||||||
|
Colour = colour.Pink,
|
||||||
|
Radius = 10,
|
||||||
|
Roundness = heart_size / 2,
|
||||||
|
},
|
||||||
|
Child = new Sprite
|
||||||
|
{
|
||||||
|
Size = new Vector2(heart_size),
|
||||||
|
Texture = textures.Get(@"Online/supporter-heart"),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user