blob: eb78d38f21f51ea807c0f0383e49e7966381e570 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using System;
using Godot;
namespace Texty.Scripts.Terminal
{
public abstract 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 abstract void OnTextEntered(string text);
}
}
|