osu/osu.Game/Screens/Play/PlayerSettings/DiscussionSettings.cs

36 lines
1.1 KiB
C#
Raw Normal View History

2018-01-05 11:21:19 +00:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
2017-05-17 13:54:49 +00:00
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-05-17 14:14:09 +00:00
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Screens.Play.PlayerSettings
2017-05-17 14:14:09 +00:00
{
public class DiscussionSettings : PlayerGroup
2017-05-17 14:14:09 +00:00
{
2017-05-27 21:56:11 +00:00
protected override string Title => @"discussions";
2017-05-17 14:14:09 +00:00
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
2017-05-29 16:00:29 +00:00
Children = new Drawable[]
2017-05-17 14:14:09 +00:00
{
new PlayerCheckbox
2017-05-29 16:00:29 +00:00
{
2017-05-30 09:23:53 +00:00
LabelText = "Show floating comments",
2017-05-29 16:00:29 +00:00
Bindable = config.GetBindable<bool>(OsuSetting.FloatingComments)
},
new FocusedTextBox
{
RelativeSizeAxes = Axes.X,
Height = 30,
PlaceholderText = "Add Comment",
HoldFocus = false,
},
};
2017-05-17 14:14:09 +00:00
}
}
}