Skip to content

Fix "ALL MODS" display not displaying in new playlist song select#36500

Merged
bdach merged 5 commits intoppy:masterfrom
peppy:playlist-ssv2-all-mods-display
Jan 28, 2026
Merged

Fix "ALL MODS" display not displaying in new playlist song select#36500
bdach merged 5 commits intoppy:masterfrom
peppy:playlist-ssv2-all-mods-display

Conversation

@peppy
Copy link
Copy Markdown
Member

@peppy peppy commented Jan 28, 2026

Also fixes some visual glitching which I noticed on the way:

Tooltip can get very long

Before After
osu! 2026-01-28 at 07 10 25 osu! 2026-01-28 at 07 11 35

Display flashed when switching freestyle on/off

Adjusted via 0c90cf3. Hard to show but basically it was updating the background dim overlay to be hidden while the overflow was empty for one frame.

@peppy
Copy link
Copy Markdown
Member Author

peppy commented Jan 28, 2026

Okay I just found out this class is copypasta from another identical usage which needs similar fixes applied.

Blocking until I clean this up.

@peppy peppy added the blocked/don't merge Don't merge this. label Jan 28, 2026
peppy added 2 commits January 28, 2026 16:02
I don't want to have to update things in multiple places with different
code in each place.

This also closes ppy#36412.
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jan 28, 2026
@peppy peppy added size/M and removed blocked/don't merge Don't merge this. size/L labels Jan 28, 2026
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jan 28, 2026
@peppy peppy moved this from Inbox to Pending Review in osu! team task tracker Jan 28, 2026
@bdach bdach self-requested a review January 28, 2026 07:14
public partial class ModCountText : VisibilityContainer, IHasCustomTooltip<IReadOnlyList<Mod>>
{
public readonly Bindable<IReadOnlyList<Mod>> Mods = new Bindable<IReadOnlyList<Mod>>();
public readonly Bindable<bool> Freestyle = new Bindable<bool>();
Copy link
Copy Markdown
Collaborator

@bdach bdach Jan 28, 2026

Choose a reason for hiding this comment

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

Somewhat perturbed by this leaking into the solo/non-free-mod song select implementation which should not maintain or be aware of the notion of "freestyle" at all.

I'd be much more comfortable with this if this component was dumb, i.e. it was just passed content to display by its consumers (text + mods in the overflow / tooltip) which would presumably eliminate the need to do this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Can do.

I'm 10x less perturbed by this kind of thing than I am with classes like this being verbatim copy pasted across multiple usages where I only realise this is the case (and bugs exist in multiple places as a result) by accident.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'll meet you halfway because the Mods flow is required for the tooltip to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Mod's tooltip visible through ModCountText on FreeMods button "ALL MODS" is not showing on FreeMods button

2 participants