osu/osu.Game/Graphics/Containers/ExpandingButtonContainer.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
781 B
C#
Raw Normal View History

// 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.
2018-04-13 09:19:50 +00:00
2022-06-17 07:37:17 +00:00
#nullable disable
2022-02-14 08:51:39 +00:00
namespace osu.Game.Graphics.Containers
2016-11-04 23:27:41 +00:00
{
/// <summary>
/// An <see cref="ExpandingContainer"/> with a long hover expansion delay.
/// </summary>
/// <remarks>
/// Mostly used for buttons with explanatory labels, in which the label would display after a "long hover".
/// </remarks>
public partial class ExpandingButtonContainer : ExpandingContainer
2016-11-04 23:27:41 +00:00
{
protected ExpandingButtonContainer(float contractedWidth, float expandedWidth)
: base(contractedWidth, expandedWidth)
2016-11-04 23:27:41 +00:00
{
}
2018-04-13 09:19:50 +00:00
protected override double HoverExpansionDelay => 400;
2022-01-06 13:56:56 +00:00
}
}