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

◆ ForceSmartSelectCursor()

void Terraria.Player.ForceSmartSelectCursor ( bool state)
inlineprivate

Definition at line 29567 of file Player.cs.

29568 {
29569 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
29570 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
29571 //IL_0039: Unknown result type (might be due to invalid IL or missing references)
29572 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
29573 //IL_004e: Unknown result type (might be due to invalid IL or missing references)
29574 //IL_0053: Unknown result type (might be due to invalid IL or missing references)
29575 //IL_005d: Unknown result type (might be due to invalid IL or missing references)
29576 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
29577 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
29578 //IL_0078: Unknown result type (might be due to invalid IL or missing references)
29579 //IL_0089: Unknown result type (might be due to invalid IL or missing references)
29580 //IL_008e: Unknown result type (might be due to invalid IL or missing references)
29581 //IL_0093: Unknown result type (might be due to invalid IL or missing references)
29582 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
29583 //IL_009d: Unknown result type (might be due to invalid IL or missing references)
29585 {
29587 if (state)
29588 {
29590 _mainMouseCoordsSmartSelect = new Point(Main.mouseX, Main.mouseY);
29592 Point val = PlayerInput.smartSelectPointer.GetPointerPosition().ToPoint();
29593 Main.mouseX = (PlayerInput.MouseX = val.X);
29594 Main.mouseY = (PlayerInput.MouseY = val.Y);
29595 Point val2 = (val.ToVector2() + Main.screenPosition).ToTileCoordinates();
29596 tileTargetX = val2.X;
29597 tileTargetY = val2.Y;
29598 }
29599 else
29600 {
29601 PlayerInput.MouseX = _inputMouseCoordsSmartSelect.X;
29602 PlayerInput.MouseY = _inputMouseCoordsSmartSelect.Y;
29603 Main.mouseX = _mainMouseCoordsSmartSelect.X;
29604 Main.mouseY = _mainMouseCoordsSmartSelect.Y;
29607 }
29608 }
29609 }
static SmartSelectGamepadPointer smartSelectPointer
Point _mainMouseCoordsSmartSelect
Definition Player.cs:3249
Point _tileTargetSmartSelect
Definition Player.cs:3251
bool _forceSmartSelectCursor
Definition Player.cs:3245
static int tileTargetY
Definition Player.cs:2652
Point _inputMouseCoordsSmartSelect
Definition Player.cs:3247
static int tileTargetX
Definition Player.cs:2650

References Terraria.Player._forceSmartSelectCursor, Terraria.Player._inputMouseCoordsSmartSelect, Terraria.Player._mainMouseCoordsSmartSelect, Terraria.Player._tileTargetSmartSelect, Terraria.GameInput.PlayerInput.MouseX, Terraria.Main.mouseX, Terraria.GameInput.PlayerInput.MouseY, Terraria.Main.mouseY, Terraria.Main.screenPosition, Terraria.GameInput.PlayerInput.smartSelectPointer, Terraria.Player.tileTargetX, and Terraria.Player.tileTargetY.

Referenced by Terraria.Player.ItemCheckWrapped().

+ Here is the caller graph for this function: