]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix admin pda health analyzer popup (#31097)
authorMilon <plmilonpl@gmail.com>
Mon, 19 Aug 2024 03:02:18 +0000 (05:02 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2024 03:02:18 +0000 (21:02 -0600)
* damn it

* whoopsie

* no more fucky wucky fucky wuckies are GONE

Content.Server/Medical/Components/HealthAnalyzerComponent.cs
Content.Server/Medical/HealthAnalyzerSystem.cs
Resources/Prototypes/Entities/Objects/Devices/pda.yml

index de40e98e182216ddce2cf497c7f2f627fc85d249..85956b60299bac13175db359421f15a1091dc467 100644 (file)
@@ -55,4 +55,10 @@ public sealed partial class HealthAnalyzerComponent : Component
     /// </summary>
     [DataField]
     public SoundSpecifier? ScanningEndSound;
+
+    /// <summary>
+    /// Whether to show up the popup
+    /// </summary>
+    [DataField]
+    public bool Silent;
 }
index dadfa433e104a365274191c77b35dfba2ffd99c0..48710d71c20f154239237136c4b165c043f5aeb8 100644 (file)
@@ -91,8 +91,8 @@ public sealed class HealthAnalyzerSystem : EntitySystem
             NeedHand = true,
             BreakOnMove = true,
         });
-        
-        if (args.Target == args.User || doAfterCancelled)
+
+        if (args.Target == args.User || doAfterCancelled || uid.Comp.Silent)
             return;
 
         var msg = Loc.GetString("health-analyzer-popup-scan-target", ("user", Identity.Entity(args.User, EntityManager)));
index 65639ecf11690473b3cf9f20b363ab0718a2e12c..5bf68b6fd6820bf89eb8fb4ce2d43b5bde102b73 100644 (file)
     id: UniversalIDCard
   - type: HealthAnalyzer
     scanDelay: 0
+    silent: true
   - type: CartridgeLoader
     uiKey: enum.PdaUiKey.Key
     notificationsEnabled: false