ui changes for modularity and npc generation
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user