Small code cleanup to health bar (#28554)
This commit is contained in:
@@ -35,7 +35,7 @@ public sealed class ShowHealthBarsCommand : LocalizedCommands
|
||||
var showHealthBarsComponent = new ShowHealthBarsComponent
|
||||
{
|
||||
DamageContainers = args.ToList(),
|
||||
HealthStatusIcon = "",
|
||||
HealthStatusIcon = null,
|
||||
NetSyncEnabled = false
|
||||
};
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ public sealed class EntityHealthBarOverlay : Overlay
|
||||
|
||||
public override OverlaySpace Space => OverlaySpace.WorldSpaceBelowFOV;
|
||||
public HashSet<string> DamageContainers = new();
|
||||
public ProtoId<StatusIconPrototype> StatusIcon;
|
||||
public ProtoId<StatusIconPrototype>? StatusIcon;
|
||||
|
||||
public EntityHealthBarOverlay(IEntityManager entManager, IPrototypeManager prototype)
|
||||
{
|
||||
|
||||
@@ -19,5 +19,5 @@ public sealed partial class ShowHealthBarsComponent : Component
|
||||
public List<string> DamageContainers = new();
|
||||
|
||||
[DataField]
|
||||
public ProtoId<StatusIconPrototype> HealthStatusIcon = "HealthIconFine";
|
||||
public ProtoId<StatusIconPrototype>? HealthStatusIcon = "HealthIconFine";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user