mirror of
https://github.com/osukey/osukey.git
synced 2025-05-02 04:07:22 +09:00
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using osu.Framework;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
namespace osu.Game.Overlays.Options.General
|
|
{
|
|
public class LanguageOptions : OptionsSubsection
|
|
{
|
|
protected override string Header => "Language";
|
|
|
|
private CheckBoxOption showUnicode, altChatFont;
|
|
|
|
public LanguageOptions()
|
|
{
|
|
Children = new Drawable[]
|
|
{
|
|
new SpriteText { Text = "TODO: Dropdown" },
|
|
showUnicode = new CheckBoxOption { LabelText = "Prefer metadata in original language" },
|
|
altChatFont = new CheckBoxOption { LabelText = "Use alternative font for chat display" },
|
|
};
|
|
}
|
|
|
|
protected override void Load(BaseGame game)
|
|
{
|
|
base.Load(game);
|
|
var osuGame = game as OsuGameBase;
|
|
if (osuGame != null)
|
|
{
|
|
showUnicode.Bindable = osuGame.Config.GetBindable<bool>(Configuration.OsuConfig.ShowUnicode);
|
|
altChatFont.Bindable = osuGame.Config.GetBindable<bool>(Configuration.OsuConfig.AlternativeChatFont);
|
|
}
|
|
}
|
|
}
|
|
}
|