1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Line endings, use ToString for statistic value

This commit is contained in:
DrabWeb 2017-05-19 20:37:13 -03:00
parent ffb3450dc2
commit 6e7a09fedb
2 changed files with 17 additions and 17 deletions

View File

@ -54,7 +54,7 @@ namespace osu.Game.Overlays.Direct
set
{
this.value = value;
text.Text = string.Format(@"{0:n0}", Value);
text.Text = Value.ToString(@"N0");
}
}

View File

@ -1,4 +1,4 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK.Graphics;
@ -9,14 +9,14 @@ using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Direct
{
public class SlimEnumDropdown<T> : OsuEnumDropdown<T>
{
public const float HEIGHT = 25;
protected override DropdownHeader CreateHeader() => new SlimDropdownHeader { AccentColour = AccentColour };
protected override Menu CreateMenu() => new SlimMenu();
private class SlimDropdownHeader : OsuDropdownHeader
public class SlimEnumDropdown<T> : OsuEnumDropdown<T>
{
public const float HEIGHT = 25;
protected override DropdownHeader CreateHeader() => new SlimDropdownHeader { AccentColour = AccentColour };
protected override Menu CreateMenu() => new SlimMenu();
private class SlimDropdownHeader : OsuDropdownHeader
{
public SlimDropdownHeader()
{
@ -29,15 +29,15 @@ namespace osu.Game.Overlays.Direct
{
base.LoadComplete();
BackgroundColour = Color4.Black.Opacity(0.25f);
}
}
private class SlimMenu : OsuMenu
}
}
private class SlimMenu : OsuMenu
{
public SlimMenu()
{
Background.Colour = Color4.Black.Opacity(0.25f);
}
}
Background.Colour = Color4.Black.Opacity(0.25f);
}
}
}
}