1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Simplify size specifications

This commit is contained in:
Dean Herbert 2021-08-16 23:38:13 +09:00
parent c978e68742
commit c3a8676932

View File

@ -144,8 +144,7 @@ namespace osu.Game.Overlays.Changelog
{ {
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Width = heart_size, Size = new Vector2(heart_size),
Height = heart_size,
Margin = new MarginPadding { Top = 70 }, Margin = new MarginPadding { Top = 70 },
Masking = true, Masking = true,
EdgeEffect = new EdgeEffectParameters EdgeEffect = new EdgeEffectParameters
@ -157,8 +156,7 @@ namespace osu.Game.Overlays.Changelog
}, },
Child = new Sprite Child = new Sprite
{ {
Width = heart_size, Size = new Vector2(heart_size),
Height = heart_size,
Texture = textures.Get(@"Online/supporter-heart"), Texture = textures.Get(@"Online/supporter-heart"),
}, },
}, },