Implement UserSortTabControl component

This commit is contained in:
Andrei Zavatski
2020-02-24 05:47:21 +03:00
parent 66317f9fcd
commit 0cfe1ac823
4 changed files with 66 additions and 1 deletions

View File

@ -15,6 +15,8 @@ using osu.Game.Graphics.Sprites;
using osuTK.Graphics;
using osu.Game.Overlays.Comments;
using JetBrains.Annotations;
using System;
using osu.Framework.Extensions;
namespace osu.Game.Overlays
{
@ -132,7 +134,7 @@ namespace osu.Game.Overlays
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Font = OsuFont.GetFont(size: 12),
Text = value.ToString()
Text = (value as Enum)?.GetDescription() ?? value.ToString()
}
}
});