From 9ecc30e31da0bdf81342d1fc07610aba0441ed58 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Tue, 6 Sep 2022 10:19:18 +0200 Subject: editor: allow scripts to run in editor --- Scripts/Game/CommandInputArea.cs | 1 + Scripts/Terminal/OutputBlock.cs | 1 + Scripts/Terminal/StatusArea.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/Scripts/Game/CommandInputArea.cs b/Scripts/Game/CommandInputArea.cs index 7d0ba5c..2f1fc09 100644 --- a/Scripts/Game/CommandInputArea.cs +++ b/Scripts/Game/CommandInputArea.cs @@ -3,6 +3,7 @@ using Texty.Scripts.Terminal; namespace Texty.Scripts.Game { + [Tool] public class CommandInputArea : InputArea { [Signal] public delegate void CommandSubmitted(Command command); diff --git a/Scripts/Terminal/OutputBlock.cs b/Scripts/Terminal/OutputBlock.cs index b611cb5..08b2ab2 100644 --- a/Scripts/Terminal/OutputBlock.cs +++ b/Scripts/Terminal/OutputBlock.cs @@ -2,6 +2,7 @@ using Godot; namespace Texty.Scripts.Terminal { + [Tool] public class OutputBlock : MarginContainer { private string _content = ""; diff --git a/Scripts/Terminal/StatusArea.cs b/Scripts/Terminal/StatusArea.cs index 1b1b6e3..35bc1c7 100644 --- a/Scripts/Terminal/StatusArea.cs +++ b/Scripts/Terminal/StatusArea.cs @@ -2,6 +2,7 @@ using Godot; namespace Texty.Scripts.Terminal { + [Tool] public class StatusArea : HBoxContainer { private string _titleText = ""; -- cgit v1.2.3