1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 14:12:56 +08:00

Separate ThreeStates into its own file

This commit is contained in:
smoogipoo 2019-11-08 13:16:09 +09:00
parent 011bf09516
commit a2c265c147
2 changed files with 27 additions and 19 deletions

View File

@ -76,23 +76,4 @@ namespace osu.Game.Graphics.UserInterface
}
}
}
public enum ThreeStates
{
/// <summary>
/// The current state is disabled.
/// </summary>
Disabled,
/// <summary>
/// The current state is a combination of <see cref="Disabled"/> and <see cref="Enabled"/>.
/// The state becomes <see cref="Enabled"/> if the <see cref="ThreeStateMenuItem"/> is pressed.
/// </summary>
Indeterminate,
/// <summary>
/// The current state is enabled.
/// </summary>
Enabled
}
}

View File

@ -0,0 +1,27 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Graphics.UserInterface
{
/// <summary>
/// An on/off state with an extra indeterminate state.
/// </summary>
public enum ThreeStates
{
/// <summary>
/// The current state is disabled.
/// </summary>
Disabled,
/// <summary>
/// The current state is a combination of <see cref="Disabled"/> and <see cref="Enabled"/>.
/// The state becomes <see cref="Enabled"/> if the <see cref="ThreeStateMenuItem"/> is pressed.
/// </summary>
Indeterminate,
/// <summary>
/// The current state is enabled.
/// </summary>
Enabled
}
}