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

◆ TryToToggleSmartCursor()

void Terraria.Player.TryToToggleSmartCursor ( ref bool smartCursorWanted)
inlineprivate

Definition at line 26645 of file Player.cs.

26646 {
26647 if (Main.cSmartCursorModeIsToggleAndNotHold)
26648 {
26650 {
26653 }
26654 return;
26655 }
26657 {
26659 }
26660 if (SmartCursorSettings.SmartCursorHoldCanReleaseMidUse)
26661 {
26663 }
26664 else if (smartCursorWanted)
26665 {
26667 {
26668 smartCursorWanted = false;
26669 }
26670 }
26671 else
26672 {
26674 }
26675 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
bool releaseSmart
Definition Player.cs:1944
bool controlUseItem
Definition Player.cs:1904
bool controlSmart
Definition Player.cs:1918

References Terraria.Player.controlSmart, Terraria.Player.controlUseItem, Terraria.Main.cSmartCursorModeIsToggleAndNotHold, Terraria.Audio.SoundEngine.PlaySound(), Terraria.Player.releaseSmart, and Terraria.Player.SmartCursorSettings.SmartCursorHoldCanReleaseMidUse.

Referenced by Terraria.Player.Update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: