2024-10-22 22:47:57 +03:00
|
|
|
|
namespace Content.Server.Wires;
|
2023-08-12 17:39:58 -04:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is used for activatable UIs that require the entity to have a panel in a certain state.
|
|
|
|
|
|
/// </summary>
|
2024-10-22 22:47:57 +03:00
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class ActivatableUIRequiresPanelComponent : Component
|
2023-08-12 17:39:58 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// TRUE: the panel must be open to access the UI.
|
|
|
|
|
|
/// FALSE: the panel must be closed to access the UI.
|
|
|
|
|
|
/// </summary>
|
2024-10-22 22:47:57 +03:00
|
|
|
|
[DataField("requireOpen"), ViewVariables(VVAccess.ReadWrite)]
|
2023-08-12 17:39:58 -04:00
|
|
|
|
public bool RequireOpen = true;
|
|
|
|
|
|
}
|