1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:07:52 +08:00

Update a few more instances of 0.96f scale constants

This commit is contained in:
Dean Herbert 2023-05-03 18:20:12 +09:00
parent 453143813f
commit 5757eb7529
2 changed files with 5 additions and 5 deletions

View File

@ -131,7 +131,7 @@ namespace osu.Game.Screens.Menu
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Colour = Color4.DarkBlue,
Size = new Vector2(0.96f)
Size = OsuLogo.SCALE_ADJUST,
},
new Circle
{

View File

@ -39,7 +39,7 @@ namespace osu.Game.Screens.Menu
/// The osu! logo sprite has a shadow included in its texture.
/// This adjustment vector is used to match the precise edge of the border of the logo.
/// </summary>
private static readonly Vector2 scale_adjust = new Vector2(0.96f);
public static readonly Vector2 SCALE_ADJUST = new Vector2(0.96f);
private readonly Sprite logo;
private readonly CircularContainer logoContainer;
@ -156,7 +156,7 @@ namespace osu.Game.Screens.Menu
Origin = Anchor.Centre,
Anchor = Anchor.Centre,
Alpha = visualizer_default_alpha,
Size = scale_adjust
Size = SCALE_ADJUST
},
new Container
{
@ -168,7 +168,7 @@ namespace osu.Game.Screens.Menu
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Both,
Scale = scale_adjust,
Scale = SCALE_ADJUST,
Masking = true,
Children = new Drawable[]
{
@ -412,7 +412,7 @@ namespace osu.Game.Screens.Menu
public void Impact()
{
impactContainer.FadeOutFromOne(250, Easing.In);
impactContainer.ScaleTo(0.96f);
impactContainer.ScaleTo(SCALE_ADJUST);
impactContainer.ScaleTo(1.12f, 250);
}