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

Display mod tooltips in rich form #32540

Merged
merged 5 commits into from
Mar 25, 2025
Merged

Conversation

frenzibyte
Copy link
Member

Referenced from the new song select design, specific page containing the design was since lost with the continuous movement of the iterations, but I think it's quite nice to have.

Mod preset tooltip design has also been updated in line with the new rich form design.

Preview:

CleanShot.2025-03-23.at.13.38.43.mp4
CleanShot.2025-03-23.at.13.39.02.mp4

Comment on lines +68 to +83
new TextFlowContainer(t =>
{
t.Font = OsuFont.Torus.With(size: 12f, weight: FontWeight.SemiBold);
})
{
AutoSizeAxes = Axes.Both,
Colour = colourProvider.Content2,
Text = string.Join('\n', mod.SettingDescription.Select(svp => svp.setting)),
},
new TextFlowContainer(t =>
{
t.Font = OsuFont.Torus.With(size: 12f, weight: FontWeight.SemiBold);
})
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Copy link
Member

Choose a reason for hiding this comment

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

I have grave concerns about this breaking in the future and requiring proper grid layout. But I'm going to go with this and we'll see if you have to rewrite this in a day or two.

@peppy peppy force-pushed the mod-rich-tooltip branch from 11319f0 to 1bb85ba Compare March 25, 2025 07:43
@peppy peppy merged commit 6dbd6a7 into ppy:master Mar 25, 2025
9 checks passed
@frenzibyte frenzibyte deleted the mod-rich-tooltip branch March 25, 2025 09:27
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.

2 participants