Skip to content

Use input blocking container for mod display bar#34090

Closed
GSculerlor wants to merge 5 commits intoppy:masterfrom
GSculerlor:fix-mod-display-bar-input
Closed

Use input blocking container for mod display bar#34090
GSculerlor wants to merge 5 commits intoppy:masterfrom
GSculerlor:fix-mod-display-bar-input

Conversation

@GSculerlor
Copy link
Copy Markdown
Contributor

see #34079

Screen.Recording.2025-07-10.at.01.02.56.mov

309c46f is for consistency since the mod bar display now also consumes event on mouse down (probably need to add a comment there)

@GSculerlor
Copy link
Copy Markdown
Contributor Author

split into its own composite in ca0f4b0. there should be no visual changes, hopefully.

comparing visuals in tests:

(master)

Screen.Recording.2025-07-11.at.20.05.07.mov

(this MR)

Screen.Recording.2025-07-11.at.20.04.18.mov

@Joehuu Joehuu self-requested a review July 15, 2025 05:46
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.

ModCountText still needs protected override bool OnHover(HoverEvent e) => true (leaderboard panel still gets hover highlight).

Screen.Recording.2025-07-14.at.10.48.44.PM.mov

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.

Unfortunate that there are no previous tests for the regressions seen in the last commit and this...

{
base.LoadComplete();

Mods.BindValueChanged(_ => updateDisplay(), true);
Copy link
Copy Markdown
Member

@Joehuu Joehuu Jul 16, 2025

Choose a reason for hiding this comment

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

This needs the ModSettingChangeTracker, else the multiplier won't update:

Screen.Recording.2025-07-16.at.10.20.16.AM.mov

Hopefully you can just move the one from the parent to this component class and not duplicating or passing, haven't tried. The unranked badge will probably not update.

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.

4 participants