mirror of
https://github.com/ppy/osu
synced 2025-01-18 12:00:58 +00:00
Cleanup
This commit is contained in:
parent
08af3e6303
commit
eaa2a007e7
@ -39,12 +39,12 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
var bindableDouble = CurrentNumber as BindableNumber<double>;
|
var bindableDouble = CurrentNumber as BindableNumber<double>;
|
||||||
var bindableFloat = CurrentNumber as BindableNumber<float>;
|
var bindableFloat = CurrentNumber as BindableNumber<float>;
|
||||||
var floatValue = bindableDouble?.Value ?? bindableFloat?.Value ?? null;
|
var floatValue = bindableDouble?.Value ?? bindableFloat?.Value;
|
||||||
|
|
||||||
if (floatValue != null)
|
if (floatValue != null)
|
||||||
{
|
{
|
||||||
var floatMinValue = bindableDouble?.MinValue ?? bindableFloat?.MinValue ?? null;
|
var floatMinValue = bindableDouble?.MinValue ?? bindableFloat.MinValue;
|
||||||
var floatMaxValue = bindableDouble?.MaxValue ?? bindableFloat?.MaxValue ?? null;
|
var floatMaxValue = bindableDouble?.MaxValue ?? bindableFloat.MaxValue;
|
||||||
|
|
||||||
if (floatMaxValue == 1 && (floatMinValue == 0 || floatMinValue == -1))
|
if (floatMaxValue == 1 && (floatMinValue == 0 || floatMinValue == -1))
|
||||||
return floatValue.Value.ToString(@"P0");
|
return floatValue.Value.ToString(@"P0");
|
||||||
|
Loading…
Reference in New Issue
Block a user