mirror of
https://github.com/ppy/osu
synced 2024-12-29 02:12:43 +00:00
24 lines
781 B
C#
24 lines
781 B
C#
// 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.
|
|
|
|
#nullable disable
|
|
|
|
namespace osu.Game.Graphics.Containers
|
|
{
|
|
/// <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
|
|
{
|
|
protected ExpandingButtonContainer(float contractedWidth, float expandedWidth)
|
|
: base(contractedWidth, expandedWidth)
|
|
{
|
|
}
|
|
|
|
protected override double HoverExpansionDelay => 400;
|
|
}
|
|
}
|