2022-01-06 16:15:42 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2019-01-24 16:43:03 +08:00
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
2022-02-14 16:51:39 +08:00
|
|
|
namespace osu.Game.Graphics.Containers
|
2016-11-05 07:27:41 +08:00
|
|
|
{
|
2022-01-21 22:41:45 +08:00
|
|
|
/// <summary>
|
2022-02-04 10:45:12 +08:00
|
|
|
/// An <see cref="ExpandingContainer"/> with a long hover expansion delay.
|
2022-01-21 22:41:45 +08:00
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// Mostly used for buttons with explanatory labels, in which the label would display after a "long hover".
|
|
|
|
/// </remarks>
|
2022-02-04 10:45:12 +08:00
|
|
|
public class ExpandingButtonContainer : ExpandingContainer
|
2016-11-05 07:27:41 +08:00
|
|
|
{
|
2022-01-06 16:15:42 +08:00
|
|
|
protected ExpandingButtonContainer(float contractedWidth, float expandedWidth)
|
2022-01-21 22:41:45 +08:00
|
|
|
: base(contractedWidth, expandedWidth)
|
2016-11-05 07:27:41 +08:00
|
|
|
{
|
2017-07-13 15:55:48 +08:00
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
2022-02-14 17:08:16 +08:00
|
|
|
protected override double HoverExpansionDelay => 400;
|
2022-01-06 21:56:56 +08:00
|
|
|
}
|
2017-11-21 10:49:42 +08:00
|
|
|
}
|