Fix slider head being incorrectly dimmed twice #27369
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #25761.
Notice that the slider heads's approach circles are also dimmed in the footage in the issue. Slider heads are supposed to behave like hit circles, which dim their body, but not their approach circle.
The issue is that
DrawableSlider
dims its elements, including itsHeadCircle
, butDrawableSliderHead
, inheriting fromDrawableHitCircle
, already dims itself (while also not dimming the approach circle), so the slider head is incorrectly being dimmed twice.Thus, the solution is to remove the slider head from the list of slider elements to dim.
Not sure why it's an issue only most of the time (eg. from a few seconds into the map) and not always. The drawable hit object's state might not always be updating when it should? Either way, the addressed issue is gone now.
some data
In the footage, the cutoff point seems to be between the orange 5 and the orange 6. Times in the map:
On my test map (offset 676) it would usually happen at 11497, but usually not at 11568.
Sometimes, moving the slider to a new time, or even just seeking away and back, would resolve or reintroduce the issue on the slider, or removing all objects before the tested slider and existing and re-entering the editor would resolve the issue. Changing offset didn't make a difference.