1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

ProvidesUserCursor -> ProvidingUserCursor, and update xmldoc

This commit is contained in:
smoogipoo 2018-01-15 14:07:09 +09:00
parent 43f8a8e8c5
commit 7c41925144
3 changed files with 7 additions and 6 deletions

View File

@ -23,7 +23,7 @@ namespace osu.Game.Graphics.Cursor
public bool CanShowCursor;
public CursorContainer Cursor { get; }
public bool ProvidesUserCursor => true;
public bool ProvidingUserCursor => true;
public CursorOverrideContainer()
{
@ -53,7 +53,7 @@ namespace osu.Game.Graphics.Cursor
return;
}
var newTarget = inputManager.HoveredDrawables.OfType<IProvideCursor>().FirstOrDefault(t => t.ProvidesUserCursor) ?? this;
var newTarget = inputManager.HoveredDrawables.OfType<IProvideCursor>().FirstOrDefault(t => t.ProvidingUserCursor) ?? this;
if (currentTarget == newTarget)
return;

View File

@ -12,14 +12,15 @@ namespace osu.Game.Graphics.Cursor
public interface IProvideCursor : IDrawable
{
/// <summary>
/// The cursor provided by this <see cref="Drawable"/>.
/// The cursor provided by this <see cref="IDrawable"/>.
/// May be null if no cursor should be visible.
/// </summary>
CursorContainer Cursor { get; }
/// <summary>
/// Whether the cursor provided by this <see cref="Drawable"/> should be displayed as the user's cursor.
/// Whether <see cref="Cursor"/> should be displayed as the singular user cursor. This will temporarily hide any other user cursor.
/// This value is checked every frame and may be used to control whether multiple cursors are displayed (e.g. watching replays).
/// </summary>
bool ProvidesUserCursor { get; }
bool ProvidingUserCursor { get; }
}
}

View File

@ -52,7 +52,7 @@ namespace osu.Game.Screens.Play
public int RestartCount;
public CursorContainer Cursor => RulesetContainer.Cursor;
public bool ProvidesUserCursor => RulesetContainer?.Cursor != null && !RulesetContainer.HasReplayLoaded;
public bool ProvidingUserCursor => RulesetContainer?.Cursor != null && !RulesetContainer.HasReplayLoaded;
private IAdjustableClock adjustableSourceClock;
private FramedOffsetClock offsetClock;