disallow unanchoring or opening panels on locked emitters/APEs (#26600)
* disallow unanchoring or opening panels on locked emitters/APEs * no locking open panels * oops * needback feedback * Update Content.Shared/Lock/LockSystem.cs * Update Content.Shared/Lock/LockSystem.cs * Update Content.Shared/Lock/LockSystem.cs * sanity --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -57,6 +57,12 @@ public sealed partial class WiresPanelComponent : Component
|
||||
public LocId? ExamineTextOpen = "wires-panel-component-on-examine-open";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event raised on a <see cref="WiresPanelComponent"/> before its open state is about to be changed.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct AttemptChangePanelEvent(bool Open, EntityUid? User, bool Cancelled = false);
|
||||
|
||||
/// <summary>
|
||||
/// Event raised when a panel is opened or closed.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user