Add popup message for activating trigger with hand (#24858)
This commit is contained in:
@@ -171,6 +171,8 @@ public sealed partial class TriggerSystem
|
|||||||
if (args.Handled || HasComp<AutomatedTimerComponent>(uid) || component.UseVerbInstead)
|
if (args.Handled || HasComp<AutomatedTimerComponent>(uid) || component.UseVerbInstead)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
_popupSystem.PopupEntity(Loc.GetString("trigger-activated", ("device", uid)), args.User, args.User);
|
||||||
|
|
||||||
HandleTimerTrigger(
|
HandleTimerTrigger(
|
||||||
uid,
|
uid,
|
||||||
args.User,
|
args.User,
|
||||||
|
|||||||
@@ -12,3 +12,5 @@ verb-start-detonation = Start detonation
|
|||||||
verb-toggle-start-on-stick = Toggle auto-activation
|
verb-toggle-start-on-stick = Toggle auto-activation
|
||||||
popup-start-on-stick-off = The device will no longer activate automatically when planted
|
popup-start-on-stick-off = The device will no longer activate automatically when planted
|
||||||
popup-start-on-stick-on = The device will now activate automatically when planted
|
popup-start-on-stick-on = The device will now activate automatically when planted
|
||||||
|
|
||||||
|
trigger-activated = You activate {THE($device)}.
|
||||||
|
|||||||
Reference in New Issue
Block a user