diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-10-03 22:22:50 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-10-04 22:18:18 +0200 |
| commit | e127ad39e742396030352240d829bc903b1d4464 (patch) | |
| tree | 10cc21d70bf13181aef7c8ad0344077ff63579a3 /Scripts/Terminal/InputArea.cs | |
| parent | ddbb045f6387a8ba23b1210b27a745516a387a52 (diff) | |
| download | texty-e127ad39e742396030352240d829bc903b1d4464.tar.xz texty-e127ad39e742396030352240d829bc903b1d4464.zip | |
godot: inital Godot 4 migration
Diffstat (limited to 'Scripts/Terminal/InputArea.cs')
| -rw-r--r-- | Scripts/Terminal/InputArea.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Scripts/Terminal/InputArea.cs b/Scripts/Terminal/InputArea.cs index eb78d38..a32ad2c 100644 --- a/Scripts/Terminal/InputArea.cs +++ b/Scripts/Terminal/InputArea.cs @@ -1,15 +1,17 @@ -using System; using Godot; namespace Texty.Scripts.Terminal { - public abstract class InputArea : HBoxContainer + 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 abstract void OnTextEntered(string text); + + public virtual void OnTextEntered(string text) + { + + } } }
\ No newline at end of file |
