mirror of https://github.com/ppy/osu
Clean up remaining assignments of logo relativePositionAxes
This commit is contained in:
parent
6b5458a625
commit
15b2b6af7d
|
@ -170,7 +170,6 @@ public void FlowContainerTest()
|
|||
AddStep("Perform logo movements", () =>
|
||||
{
|
||||
facadeContainer.Tracking = false;
|
||||
logo.RelativePositionAxes = Axes.Both;
|
||||
logo.MoveTo(new Vector2(0.5f), 500, Easing.InOutExpo);
|
||||
facadeContainer.SetLogo(logo, 1.0f, 1000, Easing.InOutExpo);
|
||||
visualBox.Colour = Color4.White;
|
||||
|
|
|
@ -276,8 +276,6 @@ private void updateLogoState(ButtonSystemState lastState = ButtonSystemState.Ini
|
|||
game?.Toolbar.Hide();
|
||||
|
||||
logo.ClearTransforms(targetMember: nameof(Position));
|
||||
logo.RelativePositionAxes = Axes.Both;
|
||||
|
||||
logo.MoveTo(new Vector2(0.5f), 800, Easing.OutExpo);
|
||||
logo.ScaleTo(1, 800, Easing.OutExpo);
|
||||
}, buttonArea.Alpha * 150);
|
||||
|
|
|
@ -131,12 +131,9 @@ private void contentIn()
|
|||
|
||||
private void contentOut()
|
||||
{
|
||||
// Ensure the logo is no longer tracking before we scale the content, and that its RelativePositionAxes have been returned.
|
||||
// Ensure the logo is no longer tracking before we scale the content
|
||||
content.Tracking = false;
|
||||
|
||||
if (logo != null)
|
||||
logo.RelativePositionAxes = Axes.Both;
|
||||
|
||||
content.ScaleTo(0.7f, 300, Easing.InQuint);
|
||||
content.FadeOut(250);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue