Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetZoom_Context()

static void Terraria.GameInput.PlayerInput.SetZoom_Context ( )
inlinestatic

Definition at line 2319 of file PlayerInput.cs.

2320 {
2321 switch (_currentWantedZoom)
2322 {
2323 case ZoomContext.Unscaled:
2325 Main.SetRecommendedZoomContext(Matrix.Identity);
2326 break;
2327 case ZoomContext.Unscaled_MouseInWorld:
2330 Main.SetRecommendedZoomContext(Main.GameViewMatrix.ZoomMatrix);
2331 break;
2332 case ZoomContext.UI:
2333 SetZoom_UI();
2334 Main.SetRecommendedZoomContext(Main.UIScaleMatrix);
2335 break;
2336 case ZoomContext.World:
2337 SetZoom_World();
2338 Main.SetRecommendedZoomContext(Main.GameViewMatrix.ZoomMatrix);
2339 break;
2340 }
2341 }
static ZoomContext _currentWantedZoom

References Terraria.GameInput.PlayerInput._currentWantedZoom, Terraria.Main.GameViewMatrix, Microsoft.Xna.Framework.Matrix.Identity, Terraria.Main.SetRecommendedZoomContext(), Terraria.GameInput.PlayerInput.SetZoom_MouseInWorld(), Terraria.GameInput.PlayerInput.SetZoom_UI(), Terraria.GameInput.PlayerInput.SetZoom_Unscaled(), Terraria.GameInput.PlayerInput.SetZoom_World(), and Terraria.Main.UIScaleMatrix.

Referenced by Terraria.Graphics.Capture.CaptureInterface.ModeEdgeSelection.Draw(), Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.Draw(), Terraria.Graphics.Capture.CaptureInterface.ModeChangeSettings.Draw(), Terraria.Graphics.Capture.CaptureInterface.ModeEdgeSelection.Update(), and Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.Update().