Wire up alternative chat font

This commit is contained in:
Drew DeVault
2016-11-07 22:37:21 -05:00
parent 1bca78f4b6
commit 743c1bde58

View File

@ -1,15 +1,13 @@
using System; using osu.Framework;
using osu.Framework;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
namespace osu.Game.Overlays.Options.General namespace osu.Game.Overlays.Options.General
{ {
public class LanguageOptions : OptionsSubsection public class LanguageOptions : OptionsSubsection
{ {
protected override string Header => "Language"; protected override string Header => "Language";
private CheckBoxOption showUnicode, altChatFont; private CheckBoxOption showUnicode, altChatFont;
public LanguageOptions() public LanguageOptions()
@ -17,7 +15,7 @@ namespace osu.Game.Overlays.Options.General
Children = new Drawable[] Children = new Drawable[]
{ {
new SpriteText { Text = "TODO: Dropdown" }, 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" }, 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; var osuGame = game as OsuGameBase;
if (osuGame != null) if (osuGame != null)
{ {
showUnicode.Bindable = osuGame.Config.GetBindable<bool>(Configuration.OsuConfig.ShowUnicode);
altChatFont.Bindable = osuGame.Config.GetBindable<bool>(Configuration.OsuConfig.AlternativeChatFont); altChatFont.Bindable = osuGame.Config.GetBindable<bool>(Configuration.OsuConfig.AlternativeChatFont);
} }
} }