mirror of
https://github.com/4sval/FModel.git
synced 2026-09-25 02:29:21 -05:00
random stuff
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows;
|
||||
using System.Windows.Data;
|
||||
using CUE4Parse.UE4.Versions;
|
||||
using CUE4Parse.UE4.Vfs;
|
||||
using FModel.Framework;
|
||||
using FModel.Services;
|
||||
@@ -35,11 +33,11 @@ public class TreeItem : ViewModel
|
||||
set => SetProperty(ref _isSelected, value);
|
||||
}
|
||||
|
||||
private string _package;
|
||||
public string Package
|
||||
private string _archive;
|
||||
public string Archive
|
||||
{
|
||||
get => _package;
|
||||
private set => SetProperty(ref _package, value);
|
||||
get => _archive;
|
||||
private set => SetProperty(ref _archive, value);
|
||||
}
|
||||
|
||||
private string _mountPoint;
|
||||
@@ -61,10 +59,10 @@ public class TreeItem : ViewModel
|
||||
public RangeObservableCollection<TreeItem> Folders { get; }
|
||||
public ICollectionView FoldersView { get; }
|
||||
|
||||
public TreeItem(string header, string package, string mountPoint, int version, string pathHere)
|
||||
public TreeItem(string header, string archive, string mountPoint, int version, string pathHere)
|
||||
{
|
||||
Header = header;
|
||||
Package = package;
|
||||
Archive = archive;
|
||||
MountPoint = mountPoint;
|
||||
Version = version;
|
||||
PathAtThisPoint = pathHere;
|
||||
@@ -129,7 +127,7 @@ public class AssetsFolderViewModel
|
||||
if (lastNode == null)
|
||||
{
|
||||
var nodePath = builder.ToString();
|
||||
lastNode = new TreeItem(folder, item.Package, entry.Vfs.MountPoint, entry.Vfs.Ver.Value, nodePath[..^1]);
|
||||
lastNode = new TreeItem(folder, item.Archive, entry.Vfs.MountPoint, entry.Vfs.Ver.Value, nodePath[..^1]);
|
||||
lastNode.Folders.SetSuppressionState(true);
|
||||
lastNode.AssetsList.Assets.SetSuppressionState(true);
|
||||
parentNode.Add(lastNode);
|
||||
@@ -167,4 +165,4 @@ public class AssetsFolderViewModel
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,11 +35,11 @@ public class AssetItem : ViewModel
|
||||
private set => SetProperty(ref _size, value);
|
||||
}
|
||||
|
||||
private string _package;
|
||||
public string Package
|
||||
private string _archive;
|
||||
public string Archive
|
||||
{
|
||||
get => _package;
|
||||
private set => SetProperty(ref _package, value);
|
||||
get => _archive;
|
||||
private set => SetProperty(ref _archive, value);
|
||||
}
|
||||
|
||||
private CompressionMethod _compression;
|
||||
@@ -49,13 +49,13 @@ public class AssetItem : ViewModel
|
||||
private set => SetProperty(ref _compression, value);
|
||||
}
|
||||
|
||||
public AssetItem(string fullPath, bool isEncrypted, long offset, long size, string package, CompressionMethod compression)
|
||||
public AssetItem(string fullPath, bool isEncrypted, long offset, long size, string archive, CompressionMethod compression)
|
||||
{
|
||||
FullPath = fullPath;
|
||||
IsEncrypted = isEncrypted;
|
||||
Offset = offset;
|
||||
Size = size;
|
||||
Package = package;
|
||||
Archive = archive;
|
||||
Compression = compression;
|
||||
}
|
||||
|
||||
@@ -75,4 +75,4 @@ public class AssetsListViewModel
|
||||
SortDescriptions = { new SortDescription("FullPath", ListSortDirection.Ascending) }
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -562,6 +562,8 @@ public class CUE4ParseViewModel : ViewModel
|
||||
case "xml":
|
||||
case "css":
|
||||
case "csv":
|
||||
case "pem":
|
||||
case "tps":
|
||||
case "js":
|
||||
case "po":
|
||||
case "h":
|
||||
|
||||
@@ -22,6 +22,13 @@ public class SettingsViewModel : ViewModel
|
||||
private ApiEndpointViewModel _apiEndpointView => ApplicationService.ApiEndpointView;
|
||||
private readonly DiscordHandler _discordHandler = DiscordService.DiscordHandler;
|
||||
|
||||
private bool _useCustomOutputFolders;
|
||||
public bool UseCustomOutputFolders
|
||||
{
|
||||
get => _useCustomOutputFolders;
|
||||
set => SetProperty(ref _useCustomOutputFolders, value);
|
||||
}
|
||||
|
||||
private EUpdateMode _selectedUpdateMode;
|
||||
public EUpdateMode SelectedUpdateMode
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user