Firelock temperature and pressure warning lights (#28339)
* Add temperature and pressure lights to firelocks * Replace sprites with new pressure and temperature light versions * Remove obsolete deny and locked sprites * Add SpriteSync for warning light animation synchronization * Teal lights * Partial animation implementation * fixup! Teal lights * Temperature lights * Adjusted firelock light heights and added final warning light sprites * Fix colors * Testing colors * Update light sprites * updated sprites --------- Co-authored-by: EmoGarbage404 <retron404@gmail.com>
This commit is contained in:
@@ -3,6 +3,7 @@ using Content.Shared.Doors.Components;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Prying.Components;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Shared.Doors.Systems;
|
||||
@@ -27,7 +28,7 @@ public abstract class SharedFirelockSystem : EntitySystem
|
||||
|
||||
// Visuals
|
||||
SubscribeLocalEvent<FirelockComponent, MapInitEvent>(UpdateVisuals);
|
||||
SubscribeLocalEvent<FirelockComponent, ComponentStartup>(UpdateVisuals);
|
||||
SubscribeLocalEvent<FirelockComponent, ComponentStartup>(OnComponentStartup);
|
||||
|
||||
SubscribeLocalEvent<FirelockComponent, ExaminedEvent>(OnExamined);
|
||||
}
|
||||
@@ -104,6 +105,11 @@ public abstract class SharedFirelockSystem : EntitySystem
|
||||
|
||||
#region Visuals
|
||||
|
||||
protected virtual void OnComponentStartup(Entity<FirelockComponent> ent, ref ComponentStartup args)
|
||||
{
|
||||
UpdateVisuals(ent.Owner,ent.Comp, args);
|
||||
}
|
||||
|
||||
private void UpdateVisuals(EntityUid uid, FirelockComponent component, EntityEventArgs args) => UpdateVisuals(uid, component);
|
||||
|
||||
private void UpdateVisuals(EntityUid uid,
|
||||
@@ -142,3 +148,22 @@ public abstract class SharedFirelockSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum FirelockVisuals : byte
|
||||
{
|
||||
PressureWarning,
|
||||
TemperatureWarning,
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum FirelockVisualLayersPressure : byte
|
||||
{
|
||||
Base
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum FirelockVisualLayersTemperature : byte
|
||||
{
|
||||
Base
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user