2021-04-19 09:52:40 +02:00
|
|
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Client.Viewport
|
2021-04-19 09:52:40 +02:00
|
|
|
|
{
|
|
|
|
|
|
public static class ViewportExt
|
|
|
|
|
|
{
|
|
|
|
|
|
public static int GetRenderScale(this IViewportControl viewport)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (viewport is ScalingViewport svp)
|
|
|
|
|
|
return svp.CurrentRenderScale;
|
|
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|