mirror of https://github.com/ppy/osu
Integrate "Argon" performance points counter with HUD layout
This commit is contained in:
parent
d7f1e50d66
commit
0cbcfcecdc
|
@ -118,6 +118,7 @@ public ArgonSkin(SkinInfo skin, IStorageResourceProvider resources)
|
|||
var wedgePieces = container.OfType<ArgonWedgePiece>().ToArray();
|
||||
var score = container.OfType<ArgonScoreCounter>().FirstOrDefault();
|
||||
var accuracy = container.OfType<ArgonAccuracyCounter>().FirstOrDefault();
|
||||
var performancePoints = container.OfType<ArgonPerformancePointsCounter>().FirstOrDefault();
|
||||
var combo = container.OfType<ArgonComboCounter>().FirstOrDefault();
|
||||
var songProgress = container.OfType<ArgonSongProgress>().FirstOrDefault();
|
||||
var keyCounter = container.OfType<ArgonKeyCounterDisplay>().FirstOrDefault();
|
||||
|
@ -159,6 +160,13 @@ public ArgonSkin(SkinInfo skin, IStorageResourceProvider resources)
|
|||
accuracy.Origin = Anchor.TopRight;
|
||||
}
|
||||
|
||||
if (performancePoints != null && accuracy != null)
|
||||
{
|
||||
performancePoints.Position = new Vector2(accuracy.X, accuracy.Y + accuracy.DrawHeight + 10);
|
||||
performancePoints.Anchor = Anchor.TopRight;
|
||||
performancePoints.Origin = Anchor.TopRight;
|
||||
}
|
||||
|
||||
var hitError = container.OfType<HitErrorMeter>().FirstOrDefault();
|
||||
|
||||
if (hitError != null)
|
||||
|
@ -224,6 +232,7 @@ public ArgonSkin(SkinInfo skin, IStorageResourceProvider resources)
|
|||
CornerRadius = { Value = 0.5f }
|
||||
},
|
||||
new ArgonAccuracyCounter(),
|
||||
new ArgonPerformancePointsCounter(),
|
||||
new ArgonComboCounter
|
||||
{
|
||||
Scale = new Vector2(1.3f)
|
||||
|
|
Loading…
Reference in New Issue