mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Merge pull request #29536 from frenzibyte/fix-legacy-key-counter-position
Fix legacy key counter position not matching stable
This commit is contained in:
commit
f4b8fc6165
@ -56,10 +56,8 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
|||||||
{
|
{
|
||||||
// set the anchor to top right so that it won't squash to the return button to the top
|
// set the anchor to top right so that it won't squash to the return button to the top
|
||||||
keyCounter.Anchor = Anchor.CentreRight;
|
keyCounter.Anchor = Anchor.CentreRight;
|
||||||
keyCounter.Origin = Anchor.CentreRight;
|
keyCounter.Origin = Anchor.TopRight;
|
||||||
keyCounter.X = 0;
|
keyCounter.Position = new Vector2(0, -40) * 1.6f;
|
||||||
// 340px is the default height inherit from stable
|
|
||||||
keyCounter.Y = container.ToLocalSpace(new Vector2(0, container.ScreenSpaceDrawQuad.Centre.Y - 340f)).Y;
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
|
@ -69,10 +69,8 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
|||||||
{
|
{
|
||||||
// set the anchor to top right so that it won't squash to the return button to the top
|
// set the anchor to top right so that it won't squash to the return button to the top
|
||||||
keyCounter.Anchor = Anchor.CentreRight;
|
keyCounter.Anchor = Anchor.CentreRight;
|
||||||
keyCounter.Origin = Anchor.CentreRight;
|
keyCounter.Origin = Anchor.TopRight;
|
||||||
keyCounter.X = 0;
|
keyCounter.Position = new Vector2(0, -40) * 1.6f;
|
||||||
// 340px is the default height inherit from stable
|
|
||||||
keyCounter.Y = container.ToLocalSpace(new Vector2(0, container.ScreenSpaceDrawQuad.Centre.Y - 340f)).Y;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var combo = container.OfType<LegacyDefaultComboCounter>().FirstOrDefault();
|
var combo = container.OfType<LegacyDefaultComboCounter>().FirstOrDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user