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

◆ Scrolling()

void Terraria.Graphics.Capture.CaptureInterface.Scrolling ( )
inline

Definition at line 1466 of file CaptureInterface.cs.

1467 {
1468 int num = PlayerInput.ScrollWheelDelta / 120;
1469 num %= 30;
1470 if (num < 0)
1471 {
1472 num += 30;
1473 }
1475 SelectedMode -= num;
1476 while (SelectedMode < 0)
1477 {
1478 SelectedMode += 2;
1479 }
1480 while (SelectedMode > 2)
1481 {
1482 SelectedMode -= 2;
1483 }
1485 {
1487 }
1488 }
static void PlaySound(int type, Vector2 position, int style=1)

References Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Graphics.Capture.CaptureInterface.SelectedMode.

Referenced by Terraria.Graphics.Capture.CaptureManager.Scrolling().