Update framework

This commit is contained in:
Thomas Müller
2017-07-16 13:59:26 +03:00
parent 5372b94674
commit 6063219b72
11 changed files with 15 additions and 120 deletions

View File

@ -297,7 +297,8 @@ namespace osu.Game.Screens.Tournament
}
}
private void speedTo(float value, double duration = 0, EasingTypes easing = EasingTypes.None) => this.TransformTo(value, duration, easing, new TransformScrollSpeed(this));
private void speedTo(float value, double duration = 0, EasingTypes easing = EasingTypes.None) =>
this.TransformTo(nameof(speed), value, duration, easing);
private enum ScrollState
{
@ -308,16 +309,6 @@ namespace osu.Game.Screens.Tournament
Scrolling
}
public class TransformScrollSpeed : TransformFloat<ScrollingTeamContainer>
{
public TransformScrollSpeed(ScrollingTeamContainer target) : base(target)
{
}
public override void Apply(ScrollingTeamContainer d) => d.speed = CurrentValue;
public override void ReadIntoStartValue(ScrollingTeamContainer d) => StartValue = d.speed;
}
public class ScrollingTeam : Container
{
public const float WIDTH = 58;