Clean up remaining assignments of logo relativePositionAxes

This commit is contained in:
David Zhao 2019-04-04 11:28:36 +09:00
parent 6b5458a625
commit 15b2b6af7d
3 changed files with 1 additions and 7 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);
}