Teach the crew monitoring console what death is

This commit is contained in:
Janet Blackquill
2025-09-29 12:40:29 -04:00
parent f885cddf6b
commit 5818dbdc7a

View File

@@ -232,6 +232,13 @@ public sealed partial class CrewMonitoringWindow : FancyWindow
// Specify texture for the user status icon // Specify texture for the user status icon
var specifier = new SpriteSpecifier.Rsi(new ResPath("Interface/Alerts/human_crew_monitoring.rsi"), "alive"); var specifier = new SpriteSpecifier.Rsi(new ResPath("Interface/Alerts/human_crew_monitoring.rsi"), "alive");
// Begin Offbrand Additions
if (sensor.WoundableData?.AnyVitalCritical == true)
{
specifier = new SpriteSpecifier.Rsi(new ResPath("Interface/Alerts/human_crew_monitoring.rsi"), "critical");
}
// End Offbrand Additions
if (!sensor.IsAlive) if (!sensor.IsAlive)
{ {
specifier = new SpriteSpecifier.Rsi(new ResPath("Interface/Alerts/human_crew_monitoring.rsi"), "dead"); specifier = new SpriteSpecifier.Rsi(new ResPath("Interface/Alerts/human_crew_monitoring.rsi"), "dead");
@@ -249,12 +256,6 @@ public sealed partial class CrewMonitoringWindow : FancyWindow
// specifier = new SpriteSpecifier.Rsi(new ResPath("Interface/Alerts/human_crew_monitoring.rsi"), "health" + index); // specifier = new SpriteSpecifier.Rsi(new ResPath("Interface/Alerts/human_crew_monitoring.rsi"), "health" + index);
// } // }
// End Offbrand Removals // End Offbrand Removals
// Begin Offbrand Additions
if (sensor.WoundableData?.AnyVitalCritical == true)
{
specifier = new SpriteSpecifier.Rsi(new ResPath("Interface/Alerts/human_crew_monitoring.rsi"), "critical");
}
// End Offbrand Additions
// Status icon // Status icon
var statusIcon = new AnimatedTextureRect var statusIcon = new AnimatedTextureRect