mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-19 11:49:44 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
27 lines
566 B
C#
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;
|
|
}
|
|
|
|
}
|