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

◆ ExitBuildingMode()

static void Terraria.GameInput.PlayerInput.ExitBuildingMode ( )
inlinestatic

Definition at line 492 of file PlayerInput.cs.

493 {
495 _InBuildingMode = false;
497 if (Main.mouseItem.stack > 0 && Main.player[Main.myPlayer].itemAnimation == 0)
498 {
500 if (uIPointForBuildingMode < 50 && uIPointForBuildingMode >= 0 && Main.player[Main.myPlayer].inventory[uIPointForBuildingMode].stack <= 0)
501 {
502 Utils.Swap(ref Main.mouseItem, ref Main.player[Main.myPlayer].inventory[uIPointForBuildingMode]);
503 }
504 }
506 }
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 ...

References Terraria.GameInput.PlayerInput._InBuildingMode, Terraria.GameInput.PlayerInput._UIPointForBuildingMode, Terraria.UI.Gamepad.UILinkPointNavigator.ChangePoint(), Terraria.Main.mouseItem, Terraria.Main.myPlayer, Terraria.Main.player, and Terraria.Audio.SoundEngine.PlaySound().

Referenced by Terraria.Player.ToggleCreativeMenu(), Terraria.Player.ToggleInv(), Terraria.GameInput.PlayerInput.UpdateInput(), and Terraria.GameInput.PlayerInput.VerifyBuildingMode().

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