Пример #1
0
 public override void PostUpdateInput()
 {
     if (Main.drawingPlayerChat && EmojiSupportUI.visible && emojiSupportUI.filterTextBox.focused)
     {
         // this is only capable of capturing non-special keys and copy pastes.
         NewUITextBox box = emojiSupportUI.filterTextBox;
         box.WriteAll(Main.GetInputText(box.Text));
         // it is redundant, but ok I guess, since the NewUITextBox also calls GetInputText
     }
 }