mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Wire up alternative chat font
This commit is contained in:
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;
|
||||
private CheckBoxOption showUnicode, altChatFont;
|
||||
|
||||
public LanguageOptions()
|
||||
{
|
||||
@ -17,7 +15,7 @@ namespace osu.Game.Overlays.Options.General
|
||||
{
|
||||
new SpriteText { Text = "TODO: Dropdown" },
|
||||
showUnicode = new CheckBoxOption { LabelText = "Prefer metadata in original language" },
|
||||
new BasicCheckBox { 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
|
||||
if (osuGame != null)
|
||||
{
|
||||
showUnicode.Bindable = osuGame.Config.GetBindable<bool>(Configuration.OsuConfig.ShowUnicode);
|
||||
altChatFont.Bindable = osuGame.Config.GetBindable<bool>(Configuration.OsuConfig.AlternativeChatFont);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user