16 lines
357 B
C#
16 lines
357 B
C#
using Robust.Client.UserInterface.CustomControls;
|
|
|
|
namespace Content.Client.UserInterface
|
|
{
|
|
public static class ViewportExt
|
|
{
|
|
public static int GetRenderScale(this IViewportControl viewport)
|
|
{
|
|
if (viewport is ScalingViewport svp)
|
|
return svp.CurrentRenderScale;
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
}
|