2016-12-06 17:56:20 +08:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2016-11-11 06:40:42 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2016-11-09 11:38:40 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Configuration;
|
2017-01-31 17:37:11 +08:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2016-11-08 11:15:48 +08:00
|
|
|
|
|
2017-01-31 17:37:11 +08:00
|
|
|
|
namespace osu.Game.Overlays.Options.Sections.Online
|
2016-11-08 11:15:48 +08:00
|
|
|
|
{
|
|
|
|
|
public class NotificationsOptions : OptionsSubsection
|
|
|
|
|
{
|
|
|
|
|
protected override string Header => "Notifications";
|
2016-11-09 11:38:40 +08:00
|
|
|
|
|
2016-11-12 18:44:16 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuConfigManager config)
|
2016-11-08 11:15:48 +08:00
|
|
|
|
{
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Enable chat ticker",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.Ticker)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Show a notification popup when someone says your name",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.ChatHighlightName)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Show chat message notifications",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.ChatMessageNotification)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Play a sound when someone says your name",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.ChatAudibleHighlight)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Show notification popups instantly during gameplay",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.PopupDuringGameplay)
|
|
|
|
|
},
|
2017-01-31 17:37:11 +08:00
|
|
|
|
new OsuCheckbox
|
2016-11-11 06:40:42 +08:00
|
|
|
|
{
|
|
|
|
|
LabelText = "Show notification popups when friends change status",
|
|
|
|
|
Bindable = config.GetBindable<bool>(OsuConfig.NotifyFriends)
|
|
|
|
|
},
|
2016-11-08 11:15:48 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|