From 2f3abbb6f1141f15ef77ac27e431bc66bb0c7899 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Sun, 4 Sep 2022 15:43:12 +0200 Subject: game: adapt scripts to new design --- Scripts/OutputRow.cs | 69 ---------------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 Scripts/OutputRow.cs (limited to 'Scripts/OutputRow.cs') diff --git a/Scripts/OutputRow.cs b/Scripts/OutputRow.cs deleted file mode 100644 index cfbb2e7..0000000 --- a/Scripts/OutputRow.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using Godot; - -namespace Texty.Scripts -{ - public abstract class OutputRow : VBoxContainer - { - [Signal] public delegate void InputTextChanged(string newText); - [Signal] public delegate void OutputTextChanged(string newText); - - private string _inputText = ""; - private string _outputText = ""; - - public Label Input; - public Label Output; - - [Export] - public string InputText - { - get => _inputText; - set => UpdateText(Field.Input, value ?? ""); - } - - [Export] - public string OutputText - { - get => _outputText; - set => UpdateText(Field.Output, value ?? ""); - } - - public override void _Ready() - { - Input = GetNode