-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Replay loading via drag-drop huzzah! #436
Merged
Merged
Changes from 34 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
58ae9e8
Basic partial replay support.
peppy b6e7e05
wankoz
peppy 8040d6a
Fix CursorTrail corruption by resetting on load.
peppy 4bd85fe
Fix audio disposal issues and share more code between visualtests.
peppy 9e1383f
Merge remote-tracking branch 'upstream/master' into replay
peppy adb6f01
Create class hierarchy for Score/Replay storage.
peppy b294386
Remove misleading beatmap import method.
peppy aa9d856
Change IPC to make sense.
peppy a8deb4f
Fix WaveOverlayContainer always being visible.
peppy 95e2e2b
Replay loading via drag-drop huzzah!
peppy a5d0440
Cancel previous load attempts before starting a new score load.
peppy 7a6a614
Don't show pause menu when watching replays.
peppy 4e4408c
Merge branch 'master' into replay
peppy 7afcac3
Move PreferredPlayMode to WorkingBeatmap.
peppy 1c5b918
Add osu! autoplay generation.
peppy 5494541
Remove unnecessary usings.
peppy 5b4424d
CreateAutoplayReplay -> CreateAutoplayScore.
peppy 81cc27e
Fix typo.
peppy cb002ce
General refactoring of OsuAutoReplay.
peppy 56922b6
Refactor sliders to have more central position/progress calculations.
peppy 910d9cc
Add proper slider following support to OsuAutoReplay.
peppy 20fcb88
Move constants to base OsuHitObject representation.
peppy faf07ab
Use generics everywhere.
peppy 3b0445a
Improve comment for PreferredPlayMode and allow null.
peppy 1b03998
Improve comment of SetFrameFromTime.
peppy 809828f
Improve NextFrame.
peppy 4118be6
Remove unnecessary bounds check.
peppy 652d18a
Update second usage of comment.
peppy 1ea21da
Fix PlayMode regression.
peppy 76ef8c1
Add bindable mods and autoplay support.
peppy ff51af9
Fail on drag drop operations with mixed files.
peppy 2de25c2
Make Mods IEnumerable.
peppy 610de4a
Only show replay cursor when replay input is present.
peppy fc6bd38
Fix remaining usage of hit window constants.
peppy 12c316a
Fix int truncation.
peppy bc74f45
Merge branch 'master' into replay
smoogipoo 4430255
Merge remote-tracking branch 'upstream/master' into replay
peppy 5cbcf7a
Fix error-level inspections.
peppy bff1179
Merge branch 'master' into replay
peppy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. | ||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE | ||
|
||
using System; | ||
using System.IO; | ||
using osu.Framework.Allocation; | ||
using osu.Framework.Input.Handlers; | ||
using osu.Framework.Platform; | ||
using osu.Game.Beatmaps; | ||
using osu.Game.Database; | ||
using osu.Game.Modes; | ||
using osu.Game.Screens.Play; | ||
|
||
namespace osu.Desktop.VisualTests.Tests | ||
{ | ||
class TestCaseReplay : TestCasePlayer | ||
{ | ||
private WorkingBeatmap beatmap; | ||
|
||
private InputHandler replay; | ||
|
||
private Func<Stream> getReplayStream; | ||
private ScoreDatabase scoreDatabase; | ||
|
||
public override string Description => @"Testing replay playback."; | ||
|
||
[BackgroundDependencyLoader] | ||
private void load(Storage storage) | ||
{ | ||
scoreDatabase = new ScoreDatabase(storage); | ||
} | ||
|
||
protected override Player CreatePlayer(WorkingBeatmap beatmap) | ||
{ | ||
var player = base.CreatePlayer(beatmap); | ||
player.ReplayInputHandler = Ruleset.GetRuleset(beatmap.PlayMode).CreateAutoplayScore(beatmap.Beatmap)?.Replay?.GetInputHandler(); | ||
return player; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
Sorry, something went wrong.