mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Wire up alternative chat font
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user