diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-09-05 20:35:53 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-09-05 20:35:53 +0200 |
| commit | f20bd89dc4a7bf14a88b1effcaa1887b29314525 (patch) | |
| tree | d114787f68efd2a7d61d95fa9c84e8e5d69a7c11 /Scripts/Game/OutputBlock.cs | |
| parent | 1b477b62f8be8c546a35dbd1d2688ebf623c496f (diff) | |
| download | texty-f20bd89dc4a7bf14a88b1effcaa1887b29314525.tar.xz texty-f20bd89dc4a7bf14a88b1effcaa1887b29314525.zip | |
gui: split GUI into Terminal components
Diffstat (limited to 'Scripts/Game/OutputBlock.cs')
| -rw-r--r-- | Scripts/Game/OutputBlock.cs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Scripts/Game/OutputBlock.cs b/Scripts/Game/OutputBlock.cs deleted file mode 100644 index 491958c..0000000 --- a/Scripts/Game/OutputBlock.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Godot; - -namespace Texty.Scripts.Game -{ - public class OutputBlock : MarginContainer - { - private string _content = ""; - - private RichTextLabel ContentLabel => GetNodeOrNull<RichTextLabel>($"%{nameof(ContentLabel)}"); - - [Export(PropertyHint.MultilineText)] - public string Content - { - get => ContentLabel?.BbcodeText ?? ""; - set - { - _content = value; - if (ContentLabel != null) - ContentLabel.BbcodeText = GodotSharp.Singleton.Tr(_content); - } - } - - public override void _Ready() - { - Content = _content; - } - } -}
\ No newline at end of file |
