Skip to content

Update editor slider controls to new design#36346

Merged
peppy merged 11 commits intoppy:masterfrom
tadatomix:editor/updated-form-controls-in-editor-screen
Jan 16, 2026
Merged

Update editor slider controls to new design#36346
peppy merged 11 commits intoppy:masterfrom
tadatomix:editor/updated-form-controls-in-editor-screen

Conversation

@tadatomix
Copy link
Copy Markdown
Contributor

@tadatomix tadatomix commented Jan 14, 2026

(partially) Closes: #36233
Surpasses: #36244

This PR meant to be one of the last steps that finally make editor use the new forms. Initially it meant to only change one SliderWithTextBoxInput in "Effects section" in timing screen, however soon after it was obvious that there's many other places that still using it. This currently won't affect IndeterminateSliderWithTextBoxInput that is being used in hitsounds, for example, since I think it needs more consideration.
Anyways, with this PR, SliderWithTextBoxInput, will no longer be used at all, as it's going to be replaced with modern FormSliderBar

Comparison:

master this PR
532203751-eb965923-d3a8-441d-a7c8-5c364a6328ad 535466527-3a700a8b-bc3c-4610-998f-a4e55ee03eed
534509844-f00e4da4-53c4-45e8-80ea-1be62da6c83b изображение
534509421-a6ac950f-16e8-4a16-bca6-1a781f82135f изображение
534509478-80222623-7766-481d-8682-088276d415ee изображение
534509935-58954060-7ac1-4392-8754-a58f909e86aa изображение

@Joehuu Joehuu self-requested a review January 14, 2026 22:21
@Joehuu Joehuu added area:editor type/cosmetic Only affects the game visually. Doesn't affect things working or not working. labels Jan 14, 2026
Joehuu
Joehuu previously approved these changes Jan 14, 2026
Copy link
Copy Markdown
Member

@Joehuu Joehuu left a comment

Choose a reason for hiding this comment

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

LGTM otherwise.

Revert buttons are gone, but you can double click for now. I would suggest encasing these with SettingsItemV2, but let's wait until #36193 is merged. And unsure we should be even using SettingsItemV2 in the editor.

@peppy
Copy link
Copy Markdown
Member

peppy commented Jan 15, 2026

I would suggest encasing these with SettingsItemV2

The whole point of that class was "things that only exist in settings". I still don't quite see that vision, but we DEFINITELY CAN'T USE IT HERE. If we're using in the editor, it should be destroyed / merged into the form controls in some way, since this is basically saying "we want that functionality everywhere".

@tadatomix
Copy link
Copy Markdown
Contributor Author

I understand that this is currently a discussion between you and Joseph, but what should I do in this situation? Should I be bothered or not?

@peppy
Copy link
Copy Markdown
Member

peppy commented Jan 15, 2026

Safe to ignore 👍

peppy added a commit that referenced this pull request Jan 16, 2026
…bindables when `TransferValueOnCommit` is true (#36354)

- Addresses #36346 (comment)

The inner slider bar binds its `Current` to
`currentNumberInstantaneous`:


https://github.com/ppy/osu/blob/1add946db486c866cc214c5eb3d728f308aad637/osu.Game/Graphics/UserInterfaceV2/FormSliderBar.cs#L225-L236

But the current bindable of the form component doesn't update because of
this.


https://github.com/ppy/osu/blob/1add946db486c866cc214c5eb3d728f308aad637/osu.Game/Graphics/UserInterfaceV2/FormSliderBar.cs#L285-L293

Fixed it by just moving the `ResetToDefault` action up another level.

---------

Co-authored-by: Dean Herbert <pe@ppy.sh>
@peppy peppy self-requested a review January 16, 2026 11:03
@peppy peppy changed the title Update the rest of editor's input forms to the new style Update editor slider controls to new design Jan 16, 2026
@peppy peppy merged commit e05b6f4 into ppy:master Jan 16, 2026
6 of 9 checks passed
@tadatomix tadatomix deleted the editor/updated-form-controls-in-editor-screen branch January 17, 2026 17:06
@tadatomix tadatomix restored the editor/updated-form-controls-in-editor-screen branch January 27, 2026 02:55
@tadatomix tadatomix deleted the editor/updated-form-controls-in-editor-screen branch January 27, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:editor size/L type/cosmetic Only affects the game visually. Doesn't affect things working or not working.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Effect "Scroll Speed" slider in Editor timing screen seem to use outdated style

3 participants