mirror of
https://github.com/ppy/osu.git
synced 2024-11-09 00:47:26 +08:00
37 lines
930 B
C#
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());
|
|
}
|
|
}
|
|
}
|