From d7eefa488135c477f39ea0953b032c7dcdad8bc7 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Sat, 26 Nov 2022 10:08:44 +0100 Subject: scripts: perform code cleanup actions --- Scripts/Terminal/StatusArea.cs | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'Scripts/Terminal/StatusArea.cs') diff --git a/Scripts/Terminal/StatusArea.cs b/Scripts/Terminal/StatusArea.cs index 3099168..8357735 100644 --- a/Scripts/Terminal/StatusArea.cs +++ b/Scripts/Terminal/StatusArea.cs @@ -1,28 +1,27 @@ using Godot; -namespace Texty.Scripts.Terminal +namespace Texty.Scripts.Terminal; + +[Tool] +public partial class StatusArea : HBoxContainer { - [Tool] - public partial class StatusArea : HBoxContainer - { - private string _titleText = ""; - private RichTextLabel TitleLabel => GetNodeOrNull($"%{nameof(TitleLabel)}"); + private string _titleText = ""; + private RichTextLabel TitleLabel => GetNodeOrNull($"%{nameof(TitleLabel)}"); - [Export] - public string Title + [Export] + public string Title + { + get => _titleText; + set { - get => _titleText; - set - { - _titleText = value; - if (TitleLabel != null) - TitleLabel.Text = GodotSharp.Singleton.Tr(value); - } + _titleText = value; + if (TitleLabel != null) + TitleLabel.Text = GodotSharp.Singleton.Tr(value); } + } - public override void _Ready() - { - Title = _titleText; - } + public override void _Ready() + { + Title = _titleText; } } \ No newline at end of file -- cgit v1.2.3