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

Implement transparent slider ticks (repeats) #272

Merged
merged 10 commits into from
Apr 23, 2022

Conversation

Flutterish
Copy link
Collaborator

Also fixed the repeats sometimes not appearing. For some reason the slider repeats weren't reset to their initial position after applying a hit object.

Copy link
Member

@naoei naoei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM so far. I'll format the code and test it myself.

@@ -75,6 +75,8 @@ public DrawableSlider(Slider obj)
slidingSample = new PausableSkinnableSound { Looping = true }
});

path.Ticks = repeatContainer;
Copy link
Member

@naoei naoei Apr 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably a nitpick but, I'm not sure if we'd want to go with this name, as it may be confused with actual slider "ticks" (non-repeats).

protected override void LoadComplete()
{
base.LoadComplete();
DrawableBox.Size = Vector2.Multiply(DrawableBox.Size, 0.75f);
AddInternal(InnerDrawableBox = new Container
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why aren't we overriding DrawableBox here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need both the box and another inner box for rendering. The slider path uses their draw quads to render the mask and the outline.

@naoei naoei merged commit 0d4fa79 into taulazer:overhaul Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants