-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
noor made me do it
There was a problem hiding this 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; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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.