mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 18:12:55 +08:00
Merge branch 'master' into keybindings-settings-groups
This commit is contained in:
commit
84ab16c7c8
@ -43,6 +43,6 @@ namespace osu.Game.Rulesets.Catch.Scoring
|
|||||||
Health.Value += Math.Max(result.Judgement.HealthIncreaseFor(result) - hpDrainRate, 0) * harshness;
|
Health.Value += Math.Max(result.Judgement.HealthIncreaseFor(result) - hpDrainRate, 0) * harshness;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override HitWindows CreateHitWindows() => new CatchHitWindows();
|
public override HitWindows CreateHitWindows() => new CatchHitWindows();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,6 @@ namespace osu.Game.Rulesets.Mania.Scoring
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override HitWindows CreateHitWindows() => new ManiaHitWindows();
|
public override HitWindows CreateHitWindows() => new ManiaHitWindows();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -143,7 +143,6 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
|
|||||||
var scoringTimes = slider.NestedHitObjects.Skip(1).Select(t => t.StartTime);
|
var scoringTimes = slider.NestedHitObjects.Skip(1).Select(t => t.StartTime);
|
||||||
foreach (var time in scoringTimes)
|
foreach (var time in scoringTimes)
|
||||||
computeVertex(time);
|
computeVertex(time);
|
||||||
computeVertex(slider.EndTime);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Vector2 getEndCursorPosition(OsuHitObject hitObject)
|
private Vector2 getEndCursorPosition(OsuHitObject hitObject)
|
||||||
|
@ -74,6 +74,6 @@ namespace osu.Game.Rulesets.Osu.Scoring
|
|||||||
|
|
||||||
protected override JudgementResult CreateResult(Judgement judgement) => new OsuJudgementResult(judgement);
|
protected override JudgementResult CreateResult(Judgement judgement) => new OsuJudgementResult(judgement);
|
||||||
|
|
||||||
protected override HitWindows CreateHitWindows() => new OsuHitWindows();
|
public override HitWindows CreateHitWindows() => new OsuHitWindows();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,6 +67,6 @@ namespace osu.Game.Rulesets.Taiko.Scoring
|
|||||||
Health.Value = 0;
|
Health.Value = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override HitWindows CreateHitWindows() => new TaikoHitWindows();
|
public override HitWindows CreateHitWindows() => new TaikoHitWindows();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -169,6 +169,8 @@ namespace osu.Game.Overlays.Music
|
|||||||
Alpha = 0f;
|
Alpha = 0f;
|
||||||
Margin = new MarginPadding { Left = 5, Top = 2 };
|
Margin = new MarginPadding { Left = 5, Top = 2 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override bool HandlePositionalInput => IsPresent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a <see cref="HitWindows"/> for this processor.
|
/// Create a <see cref="HitWindows"/> for this processor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual HitWindows CreateHitWindows() => new HitWindows();
|
public virtual HitWindows CreateHitWindows() => new HitWindows();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The current rank.
|
/// The current rank.
|
||||||
|
@ -57,12 +57,32 @@ namespace osu.Game.Scoring.Legacy
|
|||||||
var countKatu = (int)sr.ReadUInt16();
|
var countKatu = (int)sr.ReadUInt16();
|
||||||
var countMiss = (int)sr.ReadUInt16();
|
var countMiss = (int)sr.ReadUInt16();
|
||||||
|
|
||||||
|
switch (currentRuleset.LegacyID)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
score.ScoreInfo.Statistics[HitResult.Great] = count300;
|
score.ScoreInfo.Statistics[HitResult.Great] = count300;
|
||||||
score.ScoreInfo.Statistics[HitResult.Good] = count100;
|
score.ScoreInfo.Statistics[HitResult.Good] = count100;
|
||||||
score.ScoreInfo.Statistics[HitResult.Meh] = count50;
|
score.ScoreInfo.Statistics[HitResult.Meh] = count50;
|
||||||
score.ScoreInfo.Statistics[HitResult.Perfect] = countGeki;
|
|
||||||
score.ScoreInfo.Statistics[HitResult.Ok] = countKatu;
|
|
||||||
score.ScoreInfo.Statistics[HitResult.Miss] = countMiss;
|
score.ScoreInfo.Statistics[HitResult.Miss] = countMiss;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Great] = count300;
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Good] = count100;
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Miss] = countMiss;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Perfect] = count300;
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Miss] = countMiss;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Perfect] = countGeki;
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Great] = count300;
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Good] = countKatu;
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Ok] = count100;
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Meh] = count50;
|
||||||
|
score.ScoreInfo.Statistics[HitResult.Miss] = countMiss;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
score.ScoreInfo.TotalScore = sr.ReadInt32();
|
score.ScoreInfo.TotalScore = sr.ReadInt32();
|
||||||
score.ScoreInfo.MaxCombo = sr.ReadUInt16();
|
score.ScoreInfo.MaxCombo = sr.ReadUInt16();
|
||||||
@ -116,12 +136,12 @@ namespace osu.Game.Scoring.Legacy
|
|||||||
|
|
||||||
protected void CalculateAccuracy(ScoreInfo score)
|
protected void CalculateAccuracy(ScoreInfo score)
|
||||||
{
|
{
|
||||||
int countMiss = score.Statistics[HitResult.Miss];
|
score.Statistics.TryGetValue(HitResult.Miss, out int countMiss);
|
||||||
int count50 = score.Statistics[HitResult.Meh];
|
score.Statistics.TryGetValue(HitResult.Meh, out int count50);
|
||||||
int count100 = score.Statistics[HitResult.Good];
|
score.Statistics.TryGetValue(HitResult.Good, out int count100);
|
||||||
int count300 = score.Statistics[HitResult.Great];
|
score.Statistics.TryGetValue(HitResult.Great, out int count300);
|
||||||
int countGeki = score.Statistics[HitResult.Perfect];
|
score.Statistics.TryGetValue(HitResult.Perfect, out int countGeki);
|
||||||
int countKatu = score.Statistics[HitResult.Ok];
|
score.Statistics.TryGetValue(HitResult.Ok, out int countKatu);
|
||||||
|
|
||||||
switch (score.Ruleset.ID)
|
switch (score.Ruleset.ID)
|
||||||
{
|
{
|
||||||
|
@ -31,6 +31,7 @@ using osu.Game.Screens.Menu;
|
|||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osu.Game.Screens.Select.Options;
|
using osu.Game.Screens.Select.Options;
|
||||||
using osu.Game.Skinning;
|
using osu.Game.Skinning;
|
||||||
|
using osuTK.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Select
|
namespace osu.Game.Screens.Select
|
||||||
{
|
{
|
||||||
@ -564,7 +565,7 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
backgroundModeBeatmap.Beatmap = beatmap;
|
backgroundModeBeatmap.Beatmap = beatmap;
|
||||||
backgroundModeBeatmap.BlurTo(background_blur, 750, Easing.OutQuint);
|
backgroundModeBeatmap.BlurTo(background_blur, 750, Easing.OutQuint);
|
||||||
backgroundModeBeatmap.FadeTo(1, 250);
|
backgroundModeBeatmap.FadeColour(Color4.White, 250);
|
||||||
}
|
}
|
||||||
|
|
||||||
beatmapInfoWedge.Beatmap = beatmap;
|
beatmapInfoWedge.Beatmap = beatmap;
|
||||||
|
Loading…
Reference in New Issue
Block a user