Пример #1
0
    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("");
    }
Пример #2
0
 private void OnSignalRCommand(string command)
 {
     CommandInputEvent.Call(command);
 }