From 185af065bcb69b3f91a88ceb920abac2e61bd890 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 22 Jul 2024 21:09:27 +0100 Subject: [PATCH] Add simple UI for selecting/building/clearing mission --- project/code/Mission.cs | 7 +++++-- project/scenes/main.tscn | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/project/code/Mission.cs b/project/code/Mission.cs index 8e45383..806869e 100644 --- a/project/code/Mission.cs +++ b/project/code/Mission.cs @@ -18,12 +18,15 @@ public partial class Mission : Node3D [Export] public bool Clear = false; - DbFile _file; public override void _Ready() { - RebuildMap(); + var fileNameLineEdit = GetNode("%FileNameLineEdit"); + fileNameLineEdit.Text = FileName; + fileNameLineEdit.TextSubmitted += (string text) => FileName = text; + GetNode