Add DoPopup data field to OnUseTimerTrigger (#28691)
This commit is contained in:
parent
0762f9da17
commit
7f1933169e
2 changed files with 7 additions and 1 deletions
|
|
@ -171,7 +171,8 @@ public sealed partial class TriggerSystem
|
|||
if (args.Handled || HasComp<AutomatedTimerComponent>(uid) || component.UseVerbInstead)
|
||||
return;
|
||||
|
||||
_popupSystem.PopupEntity(Loc.GetString("trigger-activated", ("device", uid)), args.User, args.User);
|
||||
if (component.DoPopup)
|
||||
_popupSystem.PopupEntity(Loc.GetString("trigger-activated", ("device", uid)), args.User, args.User);
|
||||
|
||||
HandleTimerTrigger(
|
||||
uid,
|
||||
|
|
|
|||
|
|
@ -45,5 +45,10 @@ namespace Content.Shared.Explosion.Components
|
|||
/// Whether you can examine the item to see its timer or not.
|
||||
/// </summary>
|
||||
[DataField] public bool Examinable = true;
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not to show the user a popup when starting the timer.
|
||||
/// </summary>
|
||||
[DataField] public bool DoPopup = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue