mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Move BarHitErrorMeter
's icon reorintation to Update()
This commit is contained in:
parent
7267602b95
commit
3c75094f43
@ -128,7 +128,6 @@ namespace osu.Game.Screens.Play.HUD.HitErrorMeters
|
|||||||
};
|
};
|
||||||
|
|
||||||
createColourBars(colours);
|
createColourBars(colours);
|
||||||
OrientIcons();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
@ -142,11 +141,11 @@ namespace osu.Game.Screens.Play.HUD.HitErrorMeters
|
|||||||
arrow.Delay(200).FadeInFromZero(600);
|
arrow.Delay(200).FadeInFromZero(600);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
protected override void Update()
|
||||||
/// Method to undo any layout rotation to display icons in the correct orientation.
|
|
||||||
/// </summary>
|
|
||||||
public void OrientIcons()
|
|
||||||
{
|
{
|
||||||
|
base.Update();
|
||||||
|
|
||||||
|
// undo any layout rotation to display icons in the correct orientation
|
||||||
iconEarly.Rotation = -Rotation;
|
iconEarly.Rotation = -Rotation;
|
||||||
iconLate.Rotation = -Rotation;
|
iconLate.Rotation = -Rotation;
|
||||||
}
|
}
|
||||||
|
@ -376,7 +376,6 @@ namespace osu.Game.Skinning
|
|||||||
hitError.Anchor = Anchor.BottomCentre;
|
hitError.Anchor = Anchor.BottomCentre;
|
||||||
hitError.Origin = Anchor.CentreLeft;
|
hitError.Origin = Anchor.CentreLeft;
|
||||||
hitError.Rotation = -90;
|
hitError.Rotation = -90;
|
||||||
if (hitError is BarHitErrorMeter barHitError) barHitError.OrientIcons();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (songProgress != null)
|
if (songProgress != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user