Re-organize all projects (#4166)
This commit is contained in:
15
Content.Client/Viewport/ViewportExt.cs
Normal file
15
Content.Client/Viewport/ViewportExt.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
|
||||
namespace Content.Client.Viewport
|
||||
{
|
||||
public static class ViewportExt
|
||||
{
|
||||
public static int GetRenderScale(this IViewportControl viewport)
|
||||
{
|
||||
if (viewport is ScalingViewport svp)
|
||||
return svp.CurrentRenderScale;
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user