2019-03-26 04:39:19 +00:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Cursor;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.UI
|
|
|
|
{
|
|
|
|
public class GameplayCursorContainer : CursorContainer
|
|
|
|
{
|
|
|
|
/// <summary>
|
2019-04-25 08:36:17 +00:00
|
|
|
/// Because Show/Hide are executed by a parent, <see cref="VisibilityContainer.State"/> is updated immediately even if the cursor
|
2019-03-26 04:39:19 +00:00
|
|
|
/// is in a non-updating state (via <see cref="FrameStabilityContainer"/> limitations).
|
|
|
|
///
|
|
|
|
/// This holds the true visibility value.
|
|
|
|
/// </summary>
|
|
|
|
public Visibility LastFrameState;
|
|
|
|
|
|
|
|
protected override void Update()
|
|
|
|
{
|
|
|
|
base.Update();
|
2019-06-11 05:28:52 +00:00
|
|
|
LastFrameState = State.Value;
|
2019-03-26 04:39:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|