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:
parent
ffb3450dc2
commit
6e7a09fedb
@ -54,7 +54,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
this.value = value;
|
this.value = value;
|
||||||
text.Text = string.Format(@"{0:n0}", Value);
|
text.Text = Value.ToString(@"N0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
@ -9,14 +9,14 @@ using osu.Game.Graphics.UserInterface;
|
|||||||
|
|
||||||
namespace osu.Game.Overlays.Direct
|
namespace osu.Game.Overlays.Direct
|
||||||
{
|
{
|
||||||
public class SlimEnumDropdown<T> : OsuEnumDropdown<T>
|
public class SlimEnumDropdown<T> : OsuEnumDropdown<T>
|
||||||
{
|
{
|
||||||
public const float HEIGHT = 25;
|
public const float HEIGHT = 25;
|
||||||
|
|
||||||
protected override DropdownHeader CreateHeader() => new SlimDropdownHeader { AccentColour = AccentColour };
|
protected override DropdownHeader CreateHeader() => new SlimDropdownHeader { AccentColour = AccentColour };
|
||||||
protected override Menu CreateMenu() => new SlimMenu();
|
protected override Menu CreateMenu() => new SlimMenu();
|
||||||
|
|
||||||
private class SlimDropdownHeader : OsuDropdownHeader
|
private class SlimDropdownHeader : OsuDropdownHeader
|
||||||
{
|
{
|
||||||
public SlimDropdownHeader()
|
public SlimDropdownHeader()
|
||||||
{
|
{
|
||||||
@ -29,15 +29,15 @@ namespace osu.Game.Overlays.Direct
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
BackgroundColour = Color4.Black.Opacity(0.25f);
|
BackgroundColour = Color4.Black.Opacity(0.25f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class SlimMenu : OsuMenu
|
private class SlimMenu : OsuMenu
|
||||||
{
|
{
|
||||||
public SlimMenu()
|
public SlimMenu()
|
||||||
{
|
{
|
||||||
Background.Colour = Color4.Black.Opacity(0.25f);
|
Background.Colour = Color4.Black.Opacity(0.25f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user