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