add a function to OsuSliderBar to manually set the tooltip text

This commit is contained in:
Jorolf
2017-04-20 14:52:06 +02:00
parent 1d2f19b5a2
commit 02249dcd67
6 changed files with 35 additions and 8 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Globalization;
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
@ -22,6 +23,7 @@ namespace osu.Game.Overlays.Options.Sections.Input
{
LabelText = "Sensitivity",
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.MouseSpeed),
TooltipText = value => value.ToString(@"0.##x", CultureInfo.InvariantCulture)
},
new OsuCheckbox
{