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

◆ SmartInteractLookup()

void Terraria.Player.SmartInteractLookup ( )
inline

Definition at line 17002 of file Player.cs.

17003 {
17004 Main.ClearSmartInteract();
17005 if (UILinkPointNavigator.InUse || (PlayerInput.UsingGamepad && Main.HoveringOverAnNPC))
17006 {
17007 Main.SmartInteractTileCoordsSelected.Clear();
17008 }
17010 bool flag = showGamepadHints || Main.SmartCursorIsUsed;
17011 if (!flag && !showGamepadHints)
17012 {
17013 _smartInteractSys.Clear();
17014 return;
17015 }
17018 {
17019 DemandOnlyZeroDistanceTargets = (PlayerInput.SettingsForUI.ShowGamepadHints && !Main.SmartCursorIsUsed),
17020 FullInteraction = flag,
17021 HX = HX,
17022 HY = HY,
17023 LX = LX,
17024 LY = LY,
17025 mousevec = mousevec,
17026 player = this
17027 });
17028 }
void SmartInteractLookup_PrepareCommonlyUsedInfo(out Vector2 mousevec, out int LX, out int HX, out int LY, out int HY)
Definition Player.cs:17030
static SmartInteractSystem _smartInteractSys
Definition Player.cs:2609

References Terraria.Main.ClearSmartInteract(), Terraria.Main.HoveringOverAnNPC, Terraria.UI.Gamepad.UILinkPointNavigator.InUse, Terraria.GameInput.PlayerInput.SettingsForUI.ShowGamepadHints, Terraria.Main.SmartCursorIsUsed, Terraria.Main.SmartInteractTileCoordsSelected, and Terraria.GameInput.PlayerInput.UsingGamepad.