Fix AUI interaction checks (#7130)

This commit is contained in:
Leon Friedrich
2022-03-15 16:59:20 +13:00
committed by GitHub
parent 38c8c0c7c9
commit d367cf7c43
3 changed files with 32 additions and 3 deletions

View File

@@ -33,6 +33,22 @@ namespace Content.Server.UserInterface
[DataField("verbText")]
public string VerbText = "ui-verb-toggle-open";
/// <summary>
/// Whether you need a hand to operate this UI. The hand does not need to be free, you just need to have one.
/// </summary>
/// <remarks>
/// This should probably be true for most machines & computers, but there will still be UIs that represent a
/// more generic interaction / configuration that might not require hands.
/// </remarks>
[DataField("requireHands")]
public bool RequireHands = true;
/// <summary>
/// Whether spectators (non-admin ghosts) should be allowed to view this UI.
/// </summary>
[DataField("allowSpectator")]
public bool AllowSpectator = true;
/// <summary>
/// The client channel currently using the object, or null if there's none/not single user.
/// NOTE: DO NOT DIRECTLY SET, USE ActivatableUISystem.SetCurrentSingleUser