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

Add playfield shift like in osu-stable

This commit is contained in:
Sebastian Krajewski 2020-08-03 12:59:15 +02:00
parent 8a9036938f
commit c48648ea2a

View File

@ -55,6 +55,7 @@ namespace osu.Game.Rulesets.Osu.UI
// Scale = 819.2 / 512
// Scale = 1.6
Scale = new Vector2(Parent.ChildSize.X / OsuPlayfield.BASE_SIZE.X);
Position = new Vector2(0, 8 * Parent.ChildSize.Y / OsuPlayfield.BASE_SIZE.Y);
// Size = 0.625
Size = Vector2.Divide(Vector2.One, Scale);
}