mirror of
https://github.com/ppy/osu.git
synced 2025-01-21 08:52:54 +08:00
fix: issue template typo in CheckDelayedHitsounds
This commit is contained in:
parent
c1a7ad09b4
commit
b3d432b0d5
@ -63,7 +63,7 @@ namespace osu.Game.Tests.Editing.Checks
|
|||||||
var issues = check.Run(getContext(resourceStream)).ToList();
|
var issues = check.Run(getContext(resourceStream)).ToList();
|
||||||
|
|
||||||
Assert.That(issues, Has.Count.EqualTo(1));
|
Assert.That(issues, Has.Count.EqualTo(1));
|
||||||
Assert.That(issues.Single().Template is CheckDelayedHitsounds.IssuTemplateMinorDelay);
|
Assert.That(issues.Single().Template is CheckDelayedHitsounds.IssueTemplateMinorDelay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ namespace osu.Game.Rulesets.Edit.Checks
|
|||||||
new IssueTemplateConsequentDelay(this),
|
new IssueTemplateConsequentDelay(this),
|
||||||
new IssueTemplateDelay(this),
|
new IssueTemplateDelay(this),
|
||||||
new IssueTemplateDelayNoSilence(this),
|
new IssueTemplateDelayNoSilence(this),
|
||||||
new IssuTemplateMinorDelay(this),
|
new IssueTemplateMinorDelay(this),
|
||||||
new IssuTemplateMinorDelayNoSilence(this),
|
new IssueTemplateMinorDelayNoSilence(this),
|
||||||
};
|
};
|
||||||
|
|
||||||
private float getAverageAmplitude(Waveform.Point point) => (point.AmplitudeLeft + point.AmplitudeRight) / 2;
|
private float getAverageAmplitude(Waveform.Point point) => (point.AmplitudeLeft + point.AmplitudeRight) / 2;
|
||||||
@ -97,9 +97,9 @@ namespace osu.Game.Rulesets.Edit.Checks
|
|||||||
else if (consequentDelay + delay >= delay_threshold_negligible)
|
else if (consequentDelay + delay >= delay_threshold_negligible)
|
||||||
{
|
{
|
||||||
if (consequentDelay > 0)
|
if (consequentDelay > 0)
|
||||||
yield return new IssuTemplateMinorDelay(this).Create(file.Filename, consequentDelay, delay);
|
yield return new IssueTemplateMinorDelay(this).Create(file.Filename, consequentDelay, delay);
|
||||||
else
|
else
|
||||||
yield return new IssuTemplateMinorDelayNoSilence(this).Create(file.Filename, delay);
|
yield return new IssueTemplateMinorDelayNoSilence(this).Create(file.Filename, delay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -157,9 +157,9 @@ namespace osu.Game.Rulesets.Edit.Checks
|
|||||||
public Issue Create(string filename, int delay) => new Issue(this, filename, delay);
|
public Issue Create(string filename, int delay) => new Issue(this, filename, delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class IssuTemplateMinorDelay : IssueTemplate
|
public class IssueTemplateMinorDelay : IssueTemplate
|
||||||
{
|
{
|
||||||
public IssuTemplateMinorDelay(ICheck check)
|
public IssueTemplateMinorDelay(ICheck check)
|
||||||
: base(check, IssueType.Negligible,
|
: base(check, IssueType.Negligible,
|
||||||
"\"{0}\" has a transient delay of ~{1:0.##} ms, of which {2:0.##} ms is complete silence.")
|
"\"{0}\" has a transient delay of ~{1:0.##} ms, of which {2:0.##} ms is complete silence.")
|
||||||
{
|
{
|
||||||
@ -168,9 +168,9 @@ namespace osu.Game.Rulesets.Edit.Checks
|
|||||||
public Issue Create(string filename, int consequentDelay, int delay) => new Issue(this, filename, delay, consequentDelay);
|
public Issue Create(string filename, int consequentDelay, int delay) => new Issue(this, filename, delay, consequentDelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class IssuTemplateMinorDelayNoSilence : IssueTemplate
|
public class IssueTemplateMinorDelayNoSilence : IssueTemplate
|
||||||
{
|
{
|
||||||
public IssuTemplateMinorDelayNoSilence(ICheck check)
|
public IssueTemplateMinorDelayNoSilence(ICheck check)
|
||||||
: base(check, IssueType.Negligible,
|
: base(check, IssueType.Negligible,
|
||||||
"\"{0}\" has a transient delay of ~{1:0.##} ms.")
|
"\"{0}\" has a transient delay of ~{1:0.##} ms.")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user