using Godot; namespace Texty.Scripts.Game { public class StatusLine : PanelContainer { private string _titleText = "Title Text"; [Export] public string Title { get => _titleText; set { if (TitleLabel != null) TitleLabel.Text = value; _titleText = value; } } public RichTextLabel TitleLabel; public override void _Ready() { TitleLabel = GetNode($"%{nameof(TitleLabel)}"); TitleLabel.Text = _titleText; } } }