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
A lot of fixes to replay playback #1923
Conversation
Player checks for HasReplayLoaded in Player.load(), but the replay is attached in ReplayPlayer.LoadComplete(), which is too late.
@@ -141,7 +149,7 @@ private Replay createLegacyReplay(StreamReader reader) | |||
)); | |||
} | |||
|
|||
return new Replay { Frames = frames }; | |||
return new Replay { Frames = frames.OrderBy(f => f.Time).ToList() }; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
public void BindRulestContainer(RulesetContainer rulesetContainer) | ||
{ | ||
replayLoaded.BindTo(rulesetContainer.HasReplayLoaded); | ||
replayLoaded.TriggerChange(); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Looks good otherwise 👍 |
@@ -93,11 +98,21 @@ public SongProgress() | |||
OnSeek = position => OnSeek?.Invoke(position), | |||
}, | |||
}; | |||
|
|||
replayLoaded.ValueChanged += v => AllowSeeking = v; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
a175ae2
to
a050327
Compare
Fixes: