private void _on_Button_pressed() { if (Text == "" || Text.Empty()) { return; } RichTextLabel node = GetParent().GetParent().GetParent().GetNode <RichTextLabel>("CommandPanel/RichTextLabel"); node.Text += $">{GetText()}\n"; CommandInputEvent.Call(GetText()); LastCmds.Add(GetText()); currentCmd = 0; SetText(""); }
private void OnSignalRCommand(string command) { CommandInputEvent.Call(command); }