1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-18 18:12:59 +08:00
osu-lazer/osu.Game/Screens/Play/Options/OptionsDisplay.cs
2017-05-17 15:54:12 +03:00

37 lines
930 B
C#

// 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;
namespace osu.Game.Screens.Play.Options
{
public class OptionsDisplay : FillFlowContainer
{
private bool isVisible;
public bool IsVisible
{
set
{
isVisible = value;
if (isVisible)
Show();
else
Hide();
}
get { return isVisible; }
}
public OptionsDisplay()
{
Direction = FillDirection.Vertical;
Spacing = new Vector2(0, 20);
Add(new CollectionOptions());
Add(new DiscussionOptions());
Add(new PlaybackOptions());
}
}
}