mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 13:33:03 +08:00
Merge pull request #12912 from peppy/fix-legacy-combo-counter-positioning
Fix legacy combo counter not accounting for song progress bar
This commit is contained in:
commit
91acf16e52
@ -338,6 +338,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
var score = container.OfType<LegacyScoreCounter>().FirstOrDefault();
|
||||
var accuracy = container.OfType<GameplayAccuracyCounter>().FirstOrDefault();
|
||||
var combo = container.OfType<LegacyComboCounter>().FirstOrDefault();
|
||||
|
||||
if (score != null && accuracy != null)
|
||||
{
|
||||
@ -353,9 +354,12 @@ namespace osu.Game.Skinning
|
||||
hitError.Anchor = Anchor.BottomCentre;
|
||||
hitError.Origin = Anchor.CentreLeft;
|
||||
hitError.Rotation = -90;
|
||||
}
|
||||
|
||||
if (songProgress != null)
|
||||
hitError.Y -= SongProgress.MAX_HEIGHT;
|
||||
if (songProgress != null)
|
||||
{
|
||||
if (hitError != null) hitError.Y -= SongProgress.MAX_HEIGHT;
|
||||
if (combo != null) combo.Y -= SongProgress.MAX_HEIGHT;
|
||||
}
|
||||
})
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user