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

◆ ManageVersion_1_3()

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

Definition at line 622 of file PlayerInput.cs.

623 {
624 PlayerInputProfile playerInputProfile = Profiles["Custom"];
625 string[,] array = new string[20, 2]
626 {
627 { "KeyUp", "Up" },
628 { "KeyDown", "Down" },
629 { "KeyLeft", "Left" },
630 { "KeyRight", "Right" },
631 { "KeyJump", "Jump" },
632 { "KeyThrowItem", "Throw" },
633 { "KeyInventory", "Inventory" },
634 { "KeyQuickHeal", "QuickHeal" },
635 { "KeyQuickMana", "QuickMana" },
636 { "KeyQuickBuff", "QuickBuff" },
637 { "KeyUseHook", "Grapple" },
638 { "KeyAutoSelect", "SmartSelect" },
639 { "KeySmartCursor", "SmartCursor" },
640 { "KeyMount", "QuickMount" },
641 { "KeyMapStyle", "MapStyle" },
642 { "KeyFullscreenMap", "MapFull" },
643 { "KeyMapZoomIn", "MapZoomIn" },
644 { "KeyMapZoomOut", "MapZoomOut" },
645 { "KeyMapAlphaUp", "MapAlphaUp" },
646 { "KeyMapAlphaDown", "MapAlphaDown" }
647 };
648 for (int i = 0; i < array.GetLength(0); i++)
649 {
650 string currentValue = null;
651 Main.Configuration.Get(array[i, 0], ref currentValue);
652 if (currentValue != null)
653 {
654 playerInputProfile.InputModes[InputMode.Keyboard].KeyStatus[array[i, 1]] = new List<string> { currentValue };
655 playerInputProfile.InputModes[InputMode.KeyboardUI].KeyStatus[array[i, 1]] = new List<string> { currentValue };
656 }
657 }
658 }
static Dictionary< string, PlayerInputProfile > Profiles

References System.array, and Terraria.Main.Configuration.

Referenced by Terraria.Main.LoadSettings().