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

◆ ScrollHotbar()

void Terraria.Player.ScrollHotbar ( int Offset)
inline

Definition at line 29621 of file Player.cs.

29622 {
29623 Offset = ClampHotbarOffset(Offset);
29624 selectedItem += Offset;
29625 if (Offset != 0)
29626 {
29628 int num = selectedItem - Offset;
29631 selectedItem = num + Offset;
29632 nonTorch = -1;
29633 }
29634 if (changeItem >= 0)
29635 {
29636 if (selectedItem != changeItem)
29637 {
29639 }
29641 changeItem = -1;
29642 }
29643 if (itemAnimation == 0 && selectedItem != 58)
29644 {
29645 while (selectedItem > 9)
29646 {
29647 selectedItem -= 10;
29648 }
29649 while (selectedItem < 0)
29650 {
29651 selectedItem += 10;
29652 }
29653 }
29654 }
static void PlaySound(int type, Vector2 position, int style=1)
SelectionRadial DpadRadial
Definition Player.cs:583
static int ClampHotbarOffset(int Offset)
Definition Player.cs:29656
SelectionRadial CircularRadial
Definition Player.cs:585

References Terraria.Player.SelectionRadial.ChangeSelection(), and Terraria.Audio.SoundEngine.PlaySound().