2019-12-16 08:14:51 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
2019-12-16 07:45:33 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Settings.Sections.Online
|
|
|
|
|
{
|
|
|
|
|
public class InGameChatSettings : SettingsSubsection
|
|
|
|
|
{
|
|
|
|
|
protected override string Header => "In-Game Chat";
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
new SettingsTextBox
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Chat ignore list (space-separated list)",
|
|
|
|
|
Bindable = config.GetBindable<string>(OsuSetting.IgnoreList)
|
|
|
|
|
},
|
|
|
|
|
new SettingsTextBox
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Chat highlight words (space-separated list)",
|
|
|
|
|
Bindable = config.GetBindable<string>(OsuSetting.HighlightWords)
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|