mirror of
https://github.com/ppy/osu.git
synced 2026-05-23 23:32:15 +08:00
Centralise implementation of slider bars which display millisecond time values
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user