mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Cleanup
This commit is contained in:
@ -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");
|
||||||
|
Reference in New Issue
Block a user