Definition at line 367 of file CaptureInterface.cs.
368 {
370 {
371 bool flag = false;
372 if (Main.mouseLeft)
373 {
374 flag = true;
375 }
376 if (flag)
377 {
380 if (!Main.mapFullscreen)
381 {
382 result = (Main.screenPosition + mouse).ToTileCoordinates();
383 }
384 else
385 {
387 }
389 {
391 {
394 }
396 {
399 }
400 }
403 }
404 }
409 bool value = Main.player[Main.myPlayer].gravDir == -1f;
415 if (!Main.mapFullscreen)
416 {
418 value3 = Main.ReverseGravitySupport(
new Rectangle((
int)Main.screenPosition.X, (
int)Main.screenPosition.Y, Main.screenWidth + 1, Main.screenHeight + 1));
421 {
422 return;
423 }
425 }
426 else
427 {
431 value3 =
new Rectangle(0, 0, Main.screenWidth + 1, Main.screenHeight + 1);
434 {
435 return;
436 }
438 }
440 if (!Main.mouseLeft)
441 {
443 }
445 {
448 if (!Main.mapFullscreen)
449 {
450 point = Main.MouseWorld.ToTileCoordinates();
451 }
452 else
453 {
455 {
456 return;
457 }
459 }
461 {
462 case 0:
463 case 1:
465 {
467 }
469 {
471 }
472 break;
473 case 2:
474 case 3:
476 {
478 }
480 {
482 }
483 break;
484 }
485 }
486 else
487 {
492 for (
int i = 0;
i < 4;
i++)
493 {
497 {
498 continue;
499 }
501 switch (i)
502 {
503 case 0:
505 {
507 }
508 else
509 {
511 }
512 break;
513 case 1:
515 {
517 }
518 else
519 {
521 }
522 break;
523 case 2:
525 {
527 }
528 else
529 {
531 }
532 break;
533 case 3:
535 {
537 }
538 else
539 {
541 }
542 break;
543 }
544 break;
545 }
546 }
548 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
static byte Min(byte val1, byte val2)
static double Abs(double value)
Rectangle GetBound(Rectangle drawbox, int boundIndex)
static void ConstraintPoints()
static bool GetMapCoords(int PinX, int PinY, int Goal, out Point result)
static Rectangle Intersect(Rectangle value1, Rectangle value2)
References System.Math.Abs(), Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.caughtEdge, Terraria.Graphics.Capture.CaptureInterface.ConstraintPoints(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.currentAim, Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.dragging, Terraria.Graphics.Capture.CaptureInterface.EdgeA, Terraria.Graphics.Capture.CaptureInterface.EdgeAPinned, Terraria.Graphics.Capture.CaptureInterface.EdgeB, Terraria.Graphics.Capture.CaptureInterface.EdgeBPinned, Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.GetBound(), Terraria.Graphics.Capture.CaptureInterface.GetMapCoords(), Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.inMap, Microsoft.Xna.Framework.Rectangle.Intersect(), Terraria.Main.mapFullscreen, System.Math.Min(), Terraria.Main.mouseLeft, Terraria.Main.MouseWorld, Terraria.Main.myPlayer, Terraria.Main.player, Terraria.Main.ReverseGravitySupport(), Terraria.Main.screenHeight, Terraria.Main.screenPosition, Terraria.Main.screenWidth, System.value, Microsoft.Xna.Framework.Point.X, Microsoft.Xna.Framework.Vector2.X, Microsoft.Xna.Framework.Point.Y, and Microsoft.Xna.Framework.Vector2.Y.
Referenced by Terraria.Graphics.Capture.CaptureInterface.ModeDragBounds.Update().