mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Convert bindable names to human readable sentences
This commit is contained in:
parent
a33ffd56b8
commit
4374e7da81
@ -5,6 +5,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Humanizer;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Extensions.TypeExtensions;
|
||||
@ -162,7 +163,7 @@ namespace osu.Game.Configuration
|
||||
{
|
||||
var val = property.GetValue(obj);
|
||||
string description = (val as IHasDescription)?.Description ?? string.Empty;
|
||||
yield return (new SettingSourceAttribute(property.Name, description), property);
|
||||
yield return (new SettingSourceAttribute(property.Name.Humanize(), description), property);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user