<commit_before>﻿using System;
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;
    
        public LanguageOptions()
        {
            Children = new Drawable[]
            {
                new SpriteText { Text = "TODO: Dropdown" },
                showUnicode = new CheckBoxOption { LabelText = "Prefer metadata in original language" },
                new BasicCheckBox { 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);
            }
        }
    }
}<commit_msg>Wire up alternative chat font<commit_after>﻿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);
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.0817391304347826, 'fraction_numerical': 0.0, 'mean_word_length': 2.0396301188903565, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1365955', 'n_tokens_mistral': 600, 'n_tokens_neox': 591, 'n_words': 140}