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

◆ GenerateInputTag_ForCurrentGamemode_WithHacks()

static string Terraria.GameInput.PlayerInput.GenerateInputTag_ForCurrentGamemode_WithHacks ( bool tagForGameplay,
string triggerName )
inlinestatic

Definition at line 1660 of file PlayerInput.cs.

1661 {
1662 InputMode inputMode = CurrentInputMode;
1663 if (inputMode == InputMode.Mouse || inputMode == InputMode.KeyboardUI)
1664 {
1665 inputMode = InputMode.Keyboard;
1666 }
1667 if (!(triggerName == "SmartSelect"))
1668 {
1669 if (triggerName == "SmartCursor" && inputMode == InputMode.Keyboard)
1670 {
1671 return GenerateRawInputList(new List<string> { Keys.LeftAlt.ToString() });
1672 }
1673 }
1674 else if (inputMode == InputMode.Keyboard)
1675 {
1676 return GenerateRawInputList(new List<string> { Keys.LeftControl.ToString() });
1677 }
1679 }
static string GenerateInputTag_ForCurrentGamemode(bool tagForGameplay, string triggerName)
static InputMode CurrentInputMode
static string GenerateRawInputList(List< string > list)

References Terraria.GameInput.PlayerInput.CurrentInputMode, Terraria.GameInput.PlayerInput.GenerateInputTag_ForCurrentGamemode(), and Terraria.GameInput.PlayerInput.GenerateRawInputList().

Referenced by Terraria.Lang.CreateDialogSubstitutionObject().