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

◆ CopyIntoDuringChat()

void Terraria.GameInput.TriggersSet.CopyIntoDuringChat ( Player p)
inline

Definition at line 817 of file TriggersSet.cs.

818 {
819 if (MouseLeft)
820 {
821 if (!Main.blockMouse && !p.mouseInterface)
822 {
823 p.controlUseItem = true;
824 }
825 }
826 else
827 {
828 Main.blockMouse = false;
829 }
830 if (!MouseRight && !Main.playerInventory)
831 {
832 PlayerInput.LockGamepadTileUseButton = false;
833 }
834 if (MouseRight && !p.mouseInterface && !Main.blockMouse && !ShouldLockTileUsage() && !PlayerInput.InBuildingMode)
835 {
836 p.controlUseTile = true;
837 }
838 bool flag = PlayerInput.Triggers.Current.HotbarPlus || PlayerInput.Triggers.Current.HotbarMinus;
839 if (flag)
840 {
842 }
843 else
844 {
845 HotbarHoldTime = 0;
846 }
847 if (HotbarScrollCD > 0 && (!(HotbarScrollCD == 1 && flag) || PlayerInput.CurrentProfile.HotbarRadialHoldTimeRequired <= 0))
848 {
850 }
851 }

References Terraria.Main.blockMouse, Terraria.GameInput.PlayerInput.CurrentProfile, Terraria.GameInput.TriggersSet.HotbarHoldTime, Terraria.GameInput.TriggersSet.HotbarScrollCD, Terraria.GameInput.PlayerInput.InBuildingMode, Terraria.Player.mouseInterface, Terraria.GameInput.TriggersSet.MouseLeft, Terraria.GameInput.TriggersSet.MouseRight, Terraria.Main.playerInventory, Terraria.GameInput.TriggersSet.ShouldLockTileUsage(), and Terraria.GameInput.PlayerInput.Triggers.