diff options
Diffstat (limited to 'Scripts/Terminal/StatusArea.cs')
| -rw-r--r-- | Scripts/Terminal/StatusArea.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Scripts/Terminal/StatusArea.cs b/Scripts/Terminal/StatusArea.cs new file mode 100644 index 0000000..1b1b6e3 --- /dev/null +++ b/Scripts/Terminal/StatusArea.cs @@ -0,0 +1,27 @@ +using Godot; + +namespace Texty.Scripts.Terminal +{ + public class StatusArea : HBoxContainer + { + private string _titleText = ""; + private RichTextLabel TitleLabel => GetNodeOrNull<RichTextLabel>($"%{nameof(TitleLabel)}"); + + [Export] + public string Title + { + get => _titleText; + set + { + _titleText = value; + if (TitleLabel != null) + TitleLabel.BbcodeText = GodotSharp.Singleton.Tr(value); + } + } + + public override void _Ready() + { + Title = _titleText; + } + } +}
\ No newline at end of file |
