Centralise implementation of slider bars which display millisecond time values

This commit is contained in:
Dean Herbert
2022-03-04 12:25:19 +09:00
parent 7854a0a913
commit 33862fc0db
4 changed files with 16 additions and 16 deletions

View File

@ -0,0 +1,15 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Localisation;
namespace osu.Game.Graphics.UserInterface
{
/// <summary>
/// A slider bar which displays a millisecond time value.
/// </summary>
public class TimeSlider : OsuSliderBar<double>
{
protected override LocalisableString GetTooltipText(double value) => $"{value:N0} ms";
}
}