mirror of
https://github.com/4sval/FModel.git
synced 2026-03-26 11:45:22 -05:00
Some checks failed
FModel QA Builder / build (push) Has been cancelled
+ filter by types, find by references (UE5+), and a lot of other improvements Co-authored-by: Asval <asval.contactme@gmail.com> Co-authored-by: LongerWarrior <LongerWarrior@gmail.com>
27 lines
698 B
C#
27 lines
698 B
C#
using System.ComponentModel;
|
|
using System.Windows.Data;
|
|
using CUE4Parse.FileProvider.Objects;
|
|
using FModel.Framework;
|
|
|
|
namespace FModel.ViewModels;
|
|
|
|
public class AssetsListViewModel
|
|
{
|
|
public RangeObservableCollection<GameFileViewModel> Assets { get; } = [];
|
|
|
|
private ICollectionView _assetsView;
|
|
public ICollectionView AssetsView
|
|
{
|
|
get
|
|
{
|
|
_assetsView ??= new ListCollectionView(Assets)
|
|
{
|
|
SortDescriptions = { new SortDescription("Asset.Path", ListSortDirection.Ascending) }
|
|
};
|
|
return _assetsView;
|
|
}
|
|
}
|
|
|
|
public void Add(GameFile gameFile) => Assets.Add(new GameFileViewModel(gameFile));
|
|
}
|