Add scroll zooming for admins and ghosts (#14061)

* Add scroll zooming for admins

* Bunch of work

* Kinda better kinda worse scrolling

* shared code

* nyoom

* house md

* Fixes

* Log spam

* Fixes

---------

Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2023-04-22 20:26:41 +10:00
committed by GitHub
parent d68ea6e2cf
commit e98113c71e
13 changed files with 307 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Movement.Components;
/// <summary>
/// Holds SS14 eye data not relevant for engine, e.g. lerp targets.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed class ContentEyeComponent : Component
{
/// <summary>
/// Zoom we're lerping to.
/// </summary>
[DataField("targetZoom")]
public Vector2 TargetZoom = Vector2.One;
/// <summary>
/// How far we're allowed to zoom out.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("maxZoom")]
public Vector2 MaxZoom = Vector2.One;
}