mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Update framework
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user