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 replays showing incorrect star difficulty on load #18984

Merged
merged 2 commits into from
Jul 2, 2022

Conversation

frenzibyte
Copy link
Member

Replays update mods bindable with score mods on OnEntering, which can happen after BeatmapMetadataDisplay displays the current (no score mods) star rating.

Alternative fix would be to update the mods bindable much earlier (at BDL or load complete), but going with a more local fix for now.

@frenzibyte frenzibyte changed the title Fix player loader not accepting star difficulty updates after display Fix replays showing incorrect star difficulty on load Jul 2, 2022
starDifficulty.ValueChanged += d =>
{
Debug.Assert(d.NewValue != null);
starDifficulty.ValueChanged += d =>
Copy link
Member

Choose a reason for hiding this comment

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

Is there much reason to keep the above Show logic rather than use BindValueChanged(...,true)? Second is preferable I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

Haven't done that because the initial logic above shows star rating display immediately, but if the calculation takes longer, it fades in smoothly once it's ready instead. Could merge together and use d.NewValue == d.OldValue to decide the transition, but not sure that reads better.

Copy link
Member

Choose a reason for hiding this comment

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

okay, let's go with it then. didn't see the initial Alpha=0.

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.

Mods in song select affect star rating when watching replays
2 participants