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:
22
Content.Shared/Movement/Components/ContentEyeComponent.cs
Normal file
22
Content.Shared/Movement/Components/ContentEyeComponent.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user