1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:33:20 +08:00

Fix message not reading well

This commit is contained in:
Dean Herbert 2023-02-02 14:33:41 +09:00
parent 3a861fd943
commit c2cde8361a

View File

@ -38,15 +38,15 @@ namespace osu.Game.Rulesets.Edit.Checks
public class IssueTemplatePreviewTimeConflict : IssueTemplate
{
public IssueTemplatePreviewTimeConflict(ICheck check)
: base(check, IssueType.Problem, "Audio preview time {1} doesn't match \"{0}\"'s preview time. {2}")
: base(check, IssueType.Problem, "Audio preview time ({1}) doesn't match the time specified in \"{0}\" ({2})")
{
}
public Issue Create(string diffName, int originalTime, int conflictTime) =>
// preview time should show (not set) when it is not set.
new Issue(this, diffName,
originalTime != -1 ? $"({originalTime:N0})" : "(not set)",
conflictTime != -1 ? $"({conflictTime:N0})" : "(not set)");
originalTime != -1 ? $"{originalTime:N0} ms" : "not set",
conflictTime != -1 ? $"{conflictTime:N0} ms" : "not set");
}
public class IssueTemplateHasNoPreviewTime : IssueTemplate