mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 16:28:36 -04:00
* Hide FeaturedStoreItem * Mark Label.IsRich and Label.Text with [Parameter] so it shows in Razor intellisense * Add support for cubic-bezier() * Add support for step-start, step-end, step( x, x ) * Change how button:active styles to reduce ignored clicks * Fix ArgumentNullException calling SelectionSystem.Remove * Protect against NRE in UISystem.RunDeferredDeletion * Welcome screen * Support all the ways box-shadow can be parsed
27 lines
576 B
C#
27 lines
576 B
C#
|
|
namespace Sandbox.UI;
|
|
|
|
public partial class Panel
|
|
{
|
|
/// <summary>
|
|
/// Handles the storage, progression and application of CSS transitions.
|
|
/// </summary>
|
|
[Hide]
|
|
public Transitions Transitions { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Returns true if this panel has any active CSS transitions.
|
|
/// </summary>
|
|
[Hide]
|
|
public bool HasActiveTransitions => Transitions?.HasAny ?? false;
|
|
|
|
/// <summary>
|
|
/// Any transitions running, or about to run, will jump straight to the end.
|
|
/// </summary>
|
|
public void SkipTransitions()
|
|
{
|
|
Style.skipTransitions = true;
|
|
}
|
|
|
|
}
|