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

◆ GetBound()

Rectangle Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.GetBound ( Rectangle drawbox,
int boundIndex )
inlineprivate

Definition at line 550 of file CaptureInterface.cs.

551 {
552 return boundIndex switch
553 {
554 0 => new Rectangle(drawbox.X, drawbox.Y - 2, drawbox.Width, 2),
555 1 => new Rectangle(drawbox.X, drawbox.Y + drawbox.Height, drawbox.Width, 2),
556 2 => new Rectangle(drawbox.X - 2, drawbox.Y, 2, drawbox.Height),
557 3 => new Rectangle(drawbox.X + drawbox.Width, drawbox.Y, 2, drawbox.Height),
558 _ => Rectangle.Empty,
559 };
560 }

References Microsoft.Xna.Framework.Rectangle.Empty.

Referenced by Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.DragBounds().