1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-29 05:52:56 +08:00

fix: change key counter position in Triangles and Legacy skins

This commit is contained in:
tsrk 2023-06-15 12:01:38 +02:00
parent 42b740a175
commit 2f40f5bd19
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6
2 changed files with 11 additions and 1 deletions

View File

@ -22,6 +22,7 @@ using osu.Game.Rulesets.Objects.Types;
using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.Scoring;
using osu.Game.Screens.Play.HUD; using osu.Game.Screens.Play.HUD;
using osu.Game.Screens.Play.HUD.HitErrorMeters; using osu.Game.Screens.Play.HUD.HitErrorMeters;
using osuTK;
using osuTK.Graphics; using osuTK.Graphics;
namespace osu.Game.Skinning namespace osu.Game.Skinning
@ -372,12 +373,20 @@ namespace osu.Game.Skinning
} }
var hitError = container.OfType<HitErrorMeter>().FirstOrDefault(); var hitError = container.OfType<HitErrorMeter>().FirstOrDefault();
var keyCounter = container.OfType<DefaultKeyCounterDisplay>().FirstOrDefault();
if (hitError != null) if (hitError != null)
{ {
hitError.Anchor = Anchor.BottomCentre; hitError.Anchor = Anchor.BottomCentre;
hitError.Origin = Anchor.CentreLeft; hitError.Origin = Anchor.CentreLeft;
hitError.Rotation = -90; hitError.Rotation = -90;
if (keyCounter != null)
{
keyCounter.Anchor = Anchor.BottomRight;
keyCounter.Origin = Anchor.BottomRight;
keyCounter.Position = new Vector2(10, -10 - hitError.Width);
}
} }
}) })
{ {
@ -389,6 +398,7 @@ namespace osu.Game.Skinning
new LegacyHealthDisplay(), new LegacyHealthDisplay(),
new LegacySongProgress(), new LegacySongProgress(),
new BarHitErrorMeter(), new BarHitErrorMeter(),
new DefaultKeyCounterDisplay()
} }
}; };
} }

View File

@ -148,7 +148,7 @@ namespace osu.Game.Skinning
{ {
keyCounter.Anchor = Anchor.BottomRight; keyCounter.Anchor = Anchor.BottomRight;
keyCounter.Origin = Anchor.BottomRight; keyCounter.Origin = Anchor.BottomRight;
keyCounter.Position = new Vector2(10, songProgress.Height + 10); keyCounter.Position = new Vector2(10, -57 - 10);
} }
}) })
{ {