Files
sbox-public/engine/Sandbox.Engine/Systems/UI/Panel/Panel.Transitions.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

27 lines
566 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;
/// <summary>
/// Any transitions running, or about to run, will jump straight to the end.
/// </summary>
public void SkipTransitions()
{
Style.skipTransitions = true;
}
}