using Godot; namespace Texty.Scripts.Terminal { [Tool] public partial class OutputBlock : MarginContainer { private string _content = ""; private RichTextLabel ContentLabel => GetNodeOrNull($"%{nameof(ContentLabel)}"); [Export(PropertyHint.MultilineText)] public string Content { get => ContentLabel?.Text ?? ""; set { _content = value; if (ContentLabel != null) ContentLabel.Text = GodotSharp.Singleton.Tr(_content); } } public override void _Ready() { Content = _content; } } }