mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Separate ThreeStates into its own file
This commit is contained in:
parent
011bf09516
commit
a2c265c147
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
27
osu.Game/Graphics/UserInterface/ThreeStates.cs
Normal file
27
osu.Game/Graphics/UserInterface/ThreeStates.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user