From fe5d2fb12f99b7b1d7ad7eba264b58a0e44dee18 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 3 Aug 2024 10:24:45 +0100 Subject: [PATCH] Add better mission selection UI --- project/code/Mission.cs | 12 ++-- project/code/TMV/UI/MissionSelector.cs | 74 +++++++++++++++++++ project/scenes/main.tscn | 36 ++-------- project/scenes/ui/mission_selector.tscn | 96 +++++++++++++++++++++++++ 4 files changed, 181 insertions(+), 37 deletions(-) create mode 100644 project/code/TMV/UI/MissionSelector.cs create mode 100644 project/scenes/ui/mission_selector.tscn diff --git a/project/code/Mission.cs b/project/code/Mission.cs index 9cb9025..f897bd0 100644 --- a/project/code/Mission.cs +++ b/project/code/Mission.cs @@ -2,6 +2,7 @@ using Godot; using KeepersCompound.LGS; using KeepersCompound.LGS.Database; using KeepersCompound.LGS.Database.Chunks; +using KeepersCompound.TMV.UI; using RectpackSharp; using System; using System.Collections.Generic; @@ -22,11 +23,12 @@ public partial class Mission : Node3D public override void _Ready() { - var fileNameLineEdit = GetNode("%FileNameLineEdit"); - fileNameLineEdit.Text = FileName; - fileNameLineEdit.TextSubmitted += (string text) => FileName = text; - GetNode