mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
* Goonsquad (#1) * Я умру В одиночестве * Я был создан свободным * Update Resources/Prototypes/Entities/Structures/Storage/Closets/base_structureclosets.yml * Update Resources/Prototypes/Entities/Structures/Storage/Closets/base_structureclosets.yml * Update Resources/Textures/_White/Structures/Storage/wall_locker.rsi/meta.json * привет ми з украины (#2) * 3na4 * 3na4 * 3na4 * 1 * 2 * 3 * Pere3na4 * Update reinforced.yml * fix * fix1 * fix2 * toolboxes * toolbox_fix * toolbox_fix2 * toolbox_fix3 * con_testfix * Update Content.Shared/Atmos/Components/PipeAppearanceComponent.cs Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Storage/Canisters/gas_canisters.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Catalog/VendingMachines/Inventories/tankdispenser.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Catalog/VendingMachines/Inventories/tankdispenser.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Storage/Canisters/gas_canisters.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/binary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Storage/Canisters/gas_canisters.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/special.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/trinary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * +fixtures * fixidk * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/trinary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * fixidk2 * fixidk3 * Update Resources/Prototypes/Recipes/Construction/utilities.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * fixidk4 * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml * Update Resources/Prototypes/Entities/Structures/Piping/Atmospherics/trinary.yml * pda * +sprites * wtfIsUpstream * wtfIsUpstream2 * wtfIdUpstream3 * Update Resources/Prototypes/Entities/Structures/Storage/Canisters/gas_canisters.yml Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update Content.Client/PDA/PdaVisualizerSystem.cs Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * Update pda.yml * wtfIsUpstream4 --------- Co-authored-by: SentryPrimis <126711441+SentryPrimies@users.noreply.github.com> Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>
37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using Content.Shared.Light;
|
|
using Content.Shared.PDA;
|
|
using Robust.Client.GameObjects;
|
|
|
|
namespace Content.Client.PDA;
|
|
|
|
public sealed class PdaVisualizerSystem : VisualizerSystem<PdaVisualsComponent>
|
|
{
|
|
protected override void OnAppearanceChange(EntityUid uid, PdaVisualsComponent comp, ref AppearanceChangeEvent args)
|
|
{
|
|
if (args.Sprite == null)
|
|
return;
|
|
|
|
if (AppearanceSystem.TryGetData<string>(uid, PdaVisuals.PdaType, out var pdaType, args.Component))
|
|
args.Sprite.LayerSetState(PdaVisualLayers.Base, pdaType);
|
|
|
|
if (AppearanceSystem.TryGetData<bool>(uid, UnpoweredFlashlightVisuals.LightOn, out var isFlashlightOn, args.Component))
|
|
args.Sprite.LayerSetVisible(PdaVisualLayers.Flashlight, isFlashlightOn);
|
|
|
|
if (AppearanceSystem.TryGetData<bool>(uid, PdaVisuals.IdCardInserted, out var isCardInserted, args.Component))
|
|
args.Sprite.LayerSetVisible(PdaVisualLayers.IdLight, isCardInserted);
|
|
|
|
// WD EDIT START
|
|
if (AppearanceSystem.TryGetData<bool>(uid, PdaVisuals.Screen, out var screenOn, args.Component))
|
|
args.Sprite.LayerSetVisible(PdaVisualLayers.Screen, screenOn);
|
|
// WD EDIT END
|
|
}
|
|
|
|
public enum PdaVisualLayers : byte
|
|
{
|
|
Base,
|
|
Flashlight,
|
|
IdLight,
|
|
Screen // WWDP edit
|
|
}
|
|
}
|