mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 05:32:54 +08:00
Merge branch 'master' into results-screen
# Conflicts: # osu.Game/Rulesets/Replays/Replay.cs
This commit is contained in:
commit
662544e04f
5
.vscode/tasks.json
vendored
5
.vscode/tasks.json
vendored
@ -8,10 +8,7 @@
|
|||||||
"taskName": "build",
|
"taskName": "build",
|
||||||
"isShellCommand": true,
|
"isShellCommand": true,
|
||||||
"showOutput": "silent",
|
"showOutput": "silent",
|
||||||
"command": "xbuild",
|
"command": "msbuild",
|
||||||
"windows": {
|
|
||||||
"command": "msbuild"
|
|
||||||
},
|
|
||||||
"args": [
|
"args": [
|
||||||
// Ask msbuild to generate full paths for file names.
|
// Ask msbuild to generate full paths for file names.
|
||||||
"/property:GenerateFullPaths=true"
|
"/property:GenerateFullPaths=true"
|
||||||
|
@ -30,7 +30,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
Position = s.Position;
|
Position = s.Position;
|
||||||
|
|
||||||
//take up full playfield.
|
//take up full playfield.
|
||||||
Size = OsuPlayfield.BASE_SIZE;
|
Size = new Vector2(OsuPlayfield.BASE_SIZE.X);
|
||||||
|
|
||||||
spinner = s;
|
spinner = s;
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ namespace osu.Game.Rulesets.Osu
|
|||||||
|
|
||||||
ReplayButtonState button = buttonIndex % 2 == 0 ? ReplayButtonState.Left1 : ReplayButtonState.Right1;
|
ReplayButtonState button = buttonIndex % 2 == 0 ? ReplayButtonState.Left1 : ReplayButtonState.Right1;
|
||||||
|
|
||||||
double hEndTime = (h as IHasEndTime)?.EndTime ?? h.StartTime;
|
double hEndTime = ((h as IHasEndTime)?.EndTime ?? h.StartTime) + KEY_UP_DELAY;
|
||||||
|
|
||||||
ReplayFrame newFrame = new ReplayFrame(h.StartTime, targetPosition.X, targetPosition.Y, button);
|
ReplayFrame newFrame = new ReplayFrame(h.StartTime, targetPosition.X, targetPosition.Y, button);
|
||||||
ReplayFrame endFrame = new ReplayFrame(hEndTime + endDelay, h.EndPosition.X, h.EndPosition.Y, ReplayButtonState.None);
|
ReplayFrame endFrame = new ReplayFrame(hEndTime + endDelay, h.EndPosition.X, h.EndPosition.Y, ReplayButtonState.None);
|
||||||
|
@ -100,7 +100,7 @@ namespace osu.Game.Rulesets.Taiko.Replays
|
|||||||
else
|
else
|
||||||
throw new Exception("Unknown hit object type.");
|
throw new Exception("Unknown hit object type.");
|
||||||
|
|
||||||
Frames.Add(new ReplayFrame(endTime + 1, 0, 0, ReplayButtonState.None));
|
Frames.Add(new ReplayFrame(endTime + KEY_UP_DELAY, 0, 0, ReplayButtonState.None));
|
||||||
|
|
||||||
if (i < beatmap.HitObjects.Count - 1)
|
if (i < beatmap.HitObjects.Count - 1)
|
||||||
{
|
{
|
||||||
@ -113,4 +113,4 @@ namespace osu.Game.Rulesets.Taiko.Replays
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,10 @@ namespace osu.Game.Rulesets.Replays
|
|||||||
{
|
{
|
||||||
public class Replay
|
public class Replay
|
||||||
{
|
{
|
||||||
|
protected const double KEY_UP_DELAY = 50;
|
||||||
|
|
||||||
public User User;
|
public User User;
|
||||||
|
|
||||||
public List<ReplayFrame> Frames = new List<ReplayFrame>();
|
public List<ReplayFrame> Frames = new List<ReplayFrame>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user