mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
add a function to OsuSliderBar to manually set the tooltip text
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user