summaryrefslogtreecommitdiff
path: root/Scripts/Terminal/InputArea.cs
blob: a32ad2c65d3e380774d1320543b006839045bbe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using Godot;

namespace Texty.Scripts.Terminal
{
    public partial class InputArea : HBoxContainer
    {
        protected Label PromptLabel => GetNodeOrNull<Label>($"%{nameof(PromptLabel)}");
        protected LineEdit TextInput => GetNodeOrNull<LineEdit>($"%{nameof(TextInput)}");

        public new bool HasFocus => TextInput?.HasFocus() ?? false;

        public virtual void OnTextEntered(string text)
        {
            
        }
    }
}