Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CircularProgress.FillTo method #1538

Merged
merged 7 commits into from May 11, 2018

Conversation

UselessToucan
Copy link
Contributor


namespace osu.Framework.Graphics.UserInterface
{
public class CircularProgress : Drawable, IHasCurrentValue<double>
{
public Bindable<double> Current { get; } = new Bindable<double>();
private double currentValue

This comment was marked as off-topic.

@@ -59,6 +64,8 @@ protected override void ApplyDrawNode(DrawNode node)
base.ApplyDrawNode(node);
}

public TransformSequence<CircularProgress> FillTo(double value, int duration) => this.TransformTo(nameof(currentValue), value, duration);

This comment was marked as off-topic.

@smoogipoo smoogipoo added this to the May 2018 milestone May 2, 2018
@smoogipoo
Copy link
Contributor

Awaiting #1539 to be merged.

@@ -59,6 +60,8 @@ protected override void ApplyDrawNode(DrawNode node)
base.ApplyDrawNode(node);
}

public TransformSequence<CircularProgress> FillTo(double value, int duration) => this.TransformBindableTo(Current, value, duration);

This comment was marked as off-topic.

This comment was marked as off-topic.

@smoogipoo smoogipoo removed the blocked label May 11, 2018
@smoogipoo smoogipoo merged commit 517e496 into ppy:master May 11, 2018
@UselessToucan UselessToucan deleted the circular_progress_fill_to branch May 11, 2018 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants