mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-24 00:58:01 +03:00
24 lines
858 B
C#
24 lines
858 B
C#
using Robust.Client.GameObjects;
|
|
using Content.Client.Chemistry.Visualizers;
|
|
using Content.Client.Kitchen.Components;
|
|
using Content.Shared.Chemistry.Components;
|
|
using Content.Shared.Kitchen.Components;
|
|
using Content.Shared.Nyanotrasen.Kitchen.Components;
|
|
|
|
namespace Content.Client.Kitchen.Visualizers
|
|
{
|
|
public sealed class DeepFryerVisualizerSystem : VisualizerSystem<DeepFryerComponent>
|
|
{
|
|
protected override void OnAppearanceChange(EntityUid uid, DeepFryerComponent component, ref AppearanceChangeEvent args)
|
|
{
|
|
if (!args.Component.TryGetData(DeepFryerVisuals.Bubbling, out bool isBubbling) ||
|
|
!TryComp<SolutionContainerVisualsComponent>(uid, out var scvComponent))
|
|
{
|
|
return;
|
|
}
|
|
|
|
scvComponent.FillBaseName = isBubbling ? "on-" : "off-";
|
|
}
|
|
}
|
|
}
|