ui changes for modularity and npc generation

This commit is contained in:
grimsace
2026-06-30 10:43:15 -05:00
parent b178513870
commit 6520e215ba
3 changed files with 34 additions and 30 deletions
+12
View File
@@ -53,16 +53,24 @@ namespace finder2e_foundry_converter.ViewModels
public ObservableCollection<string> Models { get; } = new();
[ObservableProperty]
[NotifyPropertyChangedFor(nameof(IsNpcSelected))]
private string? _selectedCategory;
public ObservableCollection<string> Categories { get; } = new() { "NPCs" };
[ObservableProperty]
private int _selectedLevel = 1;
public ObservableCollection<int> Levels { get; } = new();
[ObservableProperty]
private string _name = string.Empty;
[ObservableProperty]
private string _description = string.Empty;
public bool IsNpcSelected => SelectedCategory == "NPCs";
public ObservableCollection<ImageItem> ImageItems { get; } = new();
[ObservableProperty]
@@ -77,6 +85,10 @@ namespace finder2e_foundry_converter.ViewModels
public MainWindowViewModel()
{
// Load saved preferences would go here if we had a settings service
for (int i = -1; i <= 24; i++)
{
Levels.Add(i);
}
_ = StartModelRefreshLoop();
}