using Godot; using KeepersCompound.LGS; namespace KeepersCompound.TMV.UI; public partial class ResourceSelector : Control { public event ResourceSelectedEventHandler ResourceSelected; public delegate void ResourceSelectedEventHandler(string campaign, string resource); [Export] public ResourceType ResType; private FileDialog _FolderSelect; private LineEdit _FolderPath; private Button _BrowseButton; private ItemList _Campaigns; private ItemList _Resources; private Button _LoadButton; private Button _CancelButton; public override void _Ready() { // TODO: Load initial folderpath from config and prefil everything _FolderSelect = GetNode("%FolderSelect"); _FolderPath = GetNode("%FolderPath"); _BrowseButton = GetNode