Files
sbox-public/engine/Sandbox.Engine/Systems/UI/Panel/Panel.Transitions.cs
Garry Newman ad7ce148cb Welcome Screen (#4854)
* 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
2026-05-18 19:13:03 +01:00

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;
}
}