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

Fix various catch distance snap grid breakage #25240

Merged
merged 4 commits into from
Oct 26, 2023

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Oct 26, 2023

Closes #25238.

359ae31: Fix catch distance snap grid not moving

Regressed in #25154. Specifically, in 013b5fa and 74b8634.

A simple case of too-much-code-deleted-itis.

79910df: Fix catch distance snap provider not hiding slider properly

Regressed in #25171.

The old code was kinda dependent on correct order of setting Disabled. CatchHitObjectComposer would disable distance spacing in its BDL, and then via the base DistancedHitObjectComposer.LoadComplete(), the slider would be faded out. The switch to composition broke that ordering.

To fix, stop relying on ordering and just respond to changes as they come. That's what bindables are for.


I am not adding test coverage for these unless absolutely forced because these are dumb refactor errors and they will 99% not happen again.

bdach added 2 commits October 26, 2023 15:42
Regressed in ppy#25154.
Specifically, in 013b5fa
and 74b8634.

A simple case of too-much-code-deleted-itis.
Regressed in ppy#25171.

The old code was kinda dependent on correct order of setting `Disabled`.
`CatchHitObjectComposer` would disable distance spacing in its BDL, and
then via the base `DistancedHitObjectComposer.LoadComplete()`, the
slider would be faded out. The switch to composition broke that
ordering.

To fix, stop relying on ordering and just respond to changes as they
come. That's what bindables are for.
@bdach bdach changed the title Fix varioius catch distance snap grid breakage Fix various catch distance snap grid breakage Oct 26, 2023
@frenzibyte frenzibyte self-requested a review October 26, 2023 14:18
@frenzibyte frenzibyte enabled auto-merge October 26, 2023 14:44
@frenzibyte frenzibyte merged commit c3e87c5 into ppy:master Oct 26, 2023
@bdach bdach deleted the fix-catch-distance-snap-grid branch October 26, 2023 16:32
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.

Distance snap on catch editor not work properly
2 participants