2017-02-07 13:59:30 +09:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-12-06 18:56:20 +09:00
|
|
|
|
|
2016-11-12 19:44:16 +09:00
|
|
|
|
using osu.Framework.Allocation;
|
2017-04-25 15:53:21 +08:00
|
|
|
|
using osu.Framework.Configuration;
|
2017-01-31 18:37:11 +09:00
|
|
|
|
using osu.Framework.Graphics;
|
2016-11-02 22:22:34 -04:00
|
|
|
|
|
2017-05-15 10:55:29 +09:00
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.General
|
2016-11-12 19:44:16 +09:00
|
|
|
|
{
|
2017-05-15 10:55:29 +09:00
|
|
|
|
public class LanguageSettings : SettingsSubsection
|
2016-11-12 19:44:16 +09:00
|
|
|
|
{
|
2016-11-07 19:04:31 -05:00
|
|
|
|
protected override string Header => "Language";
|
2017-04-06 16:21:18 +08:00
|
|
|
|
|
2016-11-12 19:44:16 +09:00
|
|
|
|
[BackgroundDependencyLoader]
|
2017-05-02 19:40:30 +09:00
|
|
|
|
private void load(FrameworkConfigManager frameworkConfig)
|
2016-11-07 19:04:31 -05:00
|
|
|
|
{
|
2016-11-08 18:13:20 -05:00
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2017-05-15 10:55:29 +09:00
|
|
|
|
new SettingsCheckbox
|
2016-11-08 18:13:20 -05:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Prefer metadata in original language",
|
2017-05-15 10:55:29 +09:00
|
|
|
|
Bindable = frameworkConfig.GetBindable<bool>(FrameworkSetting.ShowUnicode)
|
2016-11-08 18:13:20 -05:00
|
|
|
|
},
|
|
|
|
|
};
|
2016-11-12 19:44:16 +09:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|