1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 09:53:22 +08:00
osu-lazer/osu.Game/Overlays/ExpandingButtonContainer.cs

24 lines
830 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 17:19:50 +08:00
using osu.Game.Graphics.UserInterface;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Overlays
2018-04-13 17:19:50 +08:00
{
/// <summary>
/// An <see cref="ExpandingControlContainer{TControl}"/> with a long hover expansion delay for buttons.
/// </summary>
/// <remarks>
/// Mostly used for buttons with explanatory labels, in which the label would display after a "long hover".
/// </remarks>
public class ExpandingButtonContainer : ExpandingControlContainer<OsuButton>
2018-04-13 17:19:50 +08:00
{
protected ExpandingButtonContainer(float contractedWidth, float expandedWidth)
: base(contractedWidth, expandedWidth)
2018-04-13 17:19:50 +08:00
{
}
protected override double HoverExpansionDelay => 750;
2022-01-06 21:56:56 +08:00
}
2018-04-13 17:19:50 +08:00
}