1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 01:07:25 +08:00
osu-lazer/osu.Game/Screens/Play/Settings/SettingsDisplay.cs

37 lines
936 B
C#
Raw Normal View History

2017-05-17 15:36:57 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK;
using osu.Framework.Graphics.Containers;
2017-05-18 16:39:22 +08:00
namespace osu.Game.Screens.Play.Settings
2017-05-17 15:36:57 +08:00
{
2017-05-18 16:39:22 +08:00
public class SettingsDisplay : FillFlowContainer
2017-05-17 15:36:57 +08:00
{
2017-05-17 20:54:12 +08:00
private bool isVisible;
public bool IsVisible
{
set
{
isVisible = value;
if (isVisible)
Show();
else
Hide();
}
get { return isVisible; }
}
2017-05-18 16:39:22 +08:00
public SettingsDisplay()
2017-05-17 15:36:57 +08:00
{
Direction = FillDirection.Vertical;
Spacing = new Vector2(0, 20);
2017-05-18 16:39:22 +08:00
Add(new CollectionSettings());
Add(new DiscussionSettings());
Add(new PlaybackSettings());
2017-05-17 15:36:57 +08:00
}
}
}