mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 15:47:26 +00:00
* i'm going insane from screens * some wiring * screemes * holy shit adhd lock-in * incomplete * its FUCKING DONE * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * zeta * mrrrp * test fix * fix arrivals * fix misnetwork * Fix iteration outline. Fixed all headers showing if all options where hidden. Added access requirement to keycard auth mechnism. Added countdown. Fixed ninja and fugitive. Fixed AI and aghost. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Vanessa <vanessalouwagie@gmail.com>
44 lines
951 B
C#
44 lines
951 B
C#
using System.Numerics;
|
|
using System.Threading;
|
|
using Content.Shared._DV.Screens;
|
|
using Robust.Client.Animations;
|
|
using Robust.Client.Graphics;
|
|
|
|
namespace Content.Client._DV.Screens;
|
|
|
|
[RegisterComponent]
|
|
[Access(typeof(DVTextVisualsSystem), typeof(DVTextRenderingOverlay))]
|
|
public sealed partial class DVTextVisualsComponent : Component
|
|
{
|
|
[DataField(required: true)]
|
|
public List<DVTextVisualsRow> Rows;
|
|
|
|
[DataField]
|
|
public TimeSpan MarqueeRate = TimeSpan.FromSeconds(0.045f);
|
|
|
|
[DataField]
|
|
public int MarqueeWidth = 24;
|
|
|
|
[DataField]
|
|
public int MarqueePadding = 8;
|
|
|
|
public Animation? Animation;
|
|
|
|
public CancellationTokenSource? Token;
|
|
}
|
|
|
|
[DataDefinition]
|
|
public sealed partial class DVTextVisualsRow
|
|
{
|
|
public IRenderTexture? Texture;
|
|
|
|
[DataField]
|
|
public string Text;
|
|
|
|
[DataField]
|
|
public Vector2 Offset;
|
|
|
|
[DataField(required: true)]
|
|
public Enum Layer = DVTextScreenVisualLayers.Line1;
|
|
}
|