1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 17:30:00 +08:00

Wire up alternative chat font

This commit is contained in:
Drew DeVault
2016-11-07 22:37:21 -05:00
Unverified
parent 1bca78f4b6
commit 743c1bde58
@@ -1,15 +1,13 @@
using System;
using osu.Framework;
using osu.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
namespace osu.Game.Overlays.Options.General
{
public class LanguageOptions : OptionsSubsection
{
protected override string Header => "Language";
private CheckBoxOption showUnicode, altChatFont;
public LanguageOptions()
@@ -17,7 +15,7 @@ namespace osu.Game.Overlays.Options.General
Children = new Drawable[]
{
new SpriteText { Text = "TODO: Dropdown" },
showUnicode = new CheckBoxOption { LabelText = "Prefer metadata in original language" },
showUnicode = new CheckBoxOption { LabelText = "Prefer metadata in original language" },
altChatFont = new CheckBoxOption { LabelText = "Use alternative font for chat display" },
};
}
@@ -28,6 +26,7 @@ namespace osu.Game.Overlays.Options.General
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);
}
}