Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move custom AppearDelay into its own interface #1555

Merged
merged 4 commits into from May 18, 2018

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented May 18, 2018

Avoids the requirement of adding a null AppearDelay to every usage of IHasTooltip

namespace osu.Framework.Graphics.Cursor
{
/// <summary>
/// A tooltip which provides a custom delay until it appears, override the <see cref="TooltipContainer"/>-wide default.

This comment was marked as off-topic.

public interface IHasAppearDelay : IDrawable
{
/// <summary>
/// The delay until the tooltip should be displayed. Null means the <see cref="TooltipContainer.AppearDelay"/> from the <see cref="TooltipContainer"/> containing the <see cref="Drawable"/> implementing this interface will be used.

This comment was marked as off-topic.

/// <summary>
/// A tooltip which provides a custom delay until it appears, override the <see cref="TooltipContainer"/>-wide default.
/// </summary>
public interface IHasAppearDelay : IDrawable

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Tom94
Tom94 previously approved these changes May 18, 2018
@smoogipoo smoogipoo merged commit 73e8099 into ppy:master May 18, 2018
@peppy peppy deleted the appear-delay-to-custom-interface branch July 5, 2018 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants