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

◆ DrawBound()

void Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.DrawBound ( SpriteBatch sb,
Rectangle r,
int mode )
inlineprivate

Definition at line 624 of file CaptureInterface.cs.

625 {
626 switch (mode)
627 {
628 case 0:
630 break;
631 case 1:
632 sb.Draw(destinationRectangle: new Rectangle(r.X - 2, r.Y, r.Width + 4, r.Height), texture: TextureAssets.MagicPixel.Value, color: Color.White);
633 sb.Draw(destinationRectangle: new Rectangle(r.X, r.Y - 2, r.Width, r.Height + 4), texture: TextureAssets.MagicPixel.Value, color: Color.White);
635 break;
636 case 2:
637 sb.Draw(destinationRectangle: new Rectangle(r.X - 2, r.Y, r.Width + 4, r.Height), texture: TextureAssets.MagicPixel.Value, color: Color.Gold);
638 sb.Draw(destinationRectangle: new Rectangle(r.X, r.Y - 2, r.Width, r.Height + 4), texture: TextureAssets.MagicPixel.Value, color: Color.Gold);
640 break;
641 }
642 }
void Draw(Texture2D texture, Vector2 position, Color color)
static Asset< Texture2D > MagicPixel

References Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw(), Microsoft.Xna.Framework.Color.Gold, Terraria.GameContent.TextureAssets.MagicPixel, Microsoft.Xna.Framework.Color.Silver, and Microsoft.Xna.Framework.Color.White.

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