using System.IO; using System.IO.Compression; using System.Linq; using Godot; namespace KeepersCompound.TMV.UI; public partial class ModelSelector : Control { [Signal] public delegate void LoadModelEventHandler(string rootPath, string modelPath); private InstallPaths _installPaths; private FileDialog _FolderSelect; private LineEdit _FolderPath; private Button _BrowseButton; private ItemList _Models; private Button _LoadButton; private Button _CancelButton; private string _extractedObjectsPath = ProjectSettings.GlobalizePath($"user://objects/tmp"); public override void _Ready() { // TODO: Load initial folderpath from config and prefil everything _FolderSelect = GetNode("%FolderSelect"); _FolderPath = GetNode("%FolderPath"); _BrowseButton = GetNode