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

◆ TryGetPointOnGrid()

bool Terraria.GameContent.UI.States.UIEmotesMenu.TryGetPointOnGrid ( int grid[,],
int x,
int y,
int offsetX,
int offsetY )
inlineprivate

Definition at line 467 of file UIEmotesMenu.cs.

468 {
469 if (x + offsetX < 0)
470 {
471 return false;
472 }
473 if (x + offsetX >= grid.GetLength(0))
474 {
475 return false;
476 }
477 if (y + offsetY < 0)
478 {
479 return false;
480 }
481 if (y + offsetY >= grid.GetLength(1))
482 {
483 return false;
484 }
485 if (grid[x + offsetX, y + offsetY] == 0)
486 {
487 return false;
488 }
489 return true;
490 }

Referenced by Terraria.GameContent.UI.States.UIEmotesMenu.SetupGamepadPoints2().