From 501d216594e071c8e74e880fc993da7963a95811 Mon Sep 17 00:00:00 2001 From: iAmAsval Date: Wed, 15 Dec 2021 21:46:39 +0100 Subject: [PATCH] I can already hear people being lost because of a label change --- FModel/MainWindow.xaml | 34 +++++++++---------- FModel/ViewModels/BackupManagerViewModel.cs | 2 +- FModel/ViewModels/CUE4ParseViewModel.cs | 11 ++---- FModel/ViewModels/Commands/LoadCommand.cs | 6 ++-- FModel/ViewModels/ModelViewerViewModel.cs | 1 - FModel/Views/About.xaml | 2 +- FModel/Views/AesManager.xaml | 14 ++++---- FModel/Views/BackupManager.xaml | 10 +++--- FModel/Views/DirectorySelector.xaml | 6 ++-- .../FolderToSeparatorTagConverter.cs | 4 +-- FModel/Views/Resources/Resources.xaml | 10 +++--- FModel/Views/SearchView.xaml | 18 +++++----- FModel/Views/SettingsView.xaml | 16 ++++----- 13 files changed, 64 insertions(+), 70 deletions(-) diff --git a/FModel/MainWindow.xaml b/FModel/MainWindow.xaml index 12a9ad50..fa5b7b35 100644 --- a/FModel/MainWindow.xaml +++ b/FModel/MainWindow.xaml @@ -74,7 +74,7 @@ - + @@ -257,7 +257,7 @@ - + @@ -292,7 +292,7 @@ - + @@ -343,7 +343,7 @@ Width="16" Height="16" HorizontalAlignment="Center" Margin="0 0 3.5 0" /> - + @@ -382,7 +382,7 @@ - + @@ -391,7 +391,7 @@ - + @@ -400,7 +400,7 @@ - + @@ -447,22 +447,22 @@ - + - + - + - + + HeaderStringFormat="{}{0} Packages"> @@ -573,7 +573,7 @@ - + @@ -581,7 +581,7 @@ - + @@ -597,7 +597,7 @@ - + @@ -605,7 +605,7 @@ - + @@ -641,7 +641,7 @@ - + diff --git a/FModel/ViewModels/BackupManagerViewModel.cs b/FModel/ViewModels/BackupManagerViewModel.cs index 4ac46aec..b7951379 100644 --- a/FModel/ViewModels/BackupManagerViewModel.cs +++ b/FModel/ViewModels/BackupManagerViewModel.cs @@ -62,7 +62,7 @@ namespace FModel.ViewModels await _threadWorkerView.Begin(_ => { var backupFolder = Path.Combine(UserSettings.Default.OutputDirectory, "Backups"); - var fileName = $"{_gameName}_{DateTime.Now.ToString("MM'-'dd'-'yyyy")}.fbkp"; + var fileName = $"{_gameName}_{DateTime.Now:MM'_'dd'_'yyyy}.fbkp"; var fullPath = Path.Combine(backupFolder, fileName); using var fileStream = new FileStream(fullPath, FileMode.Create); diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs index 13f296f4..5c56b30b 100644 --- a/FModel/ViewModels/CUE4ParseViewModel.cs +++ b/FModel/ViewModels/CUE4ParseViewModel.cs @@ -372,9 +372,7 @@ namespace FModel.ViewModels /// Functions only when LoadLocalizedResources is used prior to this (Asval: Why?). private async Task LoadHotfixedLocalizedResources() { - if (Game != FGame.FortniteGame) return; - - if (HotfixedResourcesDone) return; + if (Game != FGame.FortniteGame || HotfixedResourcesDone) return; await _threadWorkerView.Begin(cancellationToken => { var hotfixes = ApplicationService.ApiEndpointView.BenbotApi.GetHotfixes(cancellationToken, Provider.GetLanguageCode(UserSettings.Default.AssetLanguage)); @@ -610,13 +608,10 @@ namespace FModel.ViewModels break; } case "ufont": - FLogger.AppendWarning(); - FLogger.AppendText($"Export '{fileName}' and change its extension if you want it to be an installable font file", Constants.WHITE, true); - break; case "otf": case "ttf": FLogger.AppendWarning(); - FLogger.AppendText($"Export '{fileName}' if you want it to be an installable font file", Constants.WHITE, true); + FLogger.AppendText($"Export '{fileName}' raw data and change its extension if you want it to be an installable font file", Constants.WHITE, true); break; case "ushaderbytecode": case "ushadercode": @@ -632,7 +627,7 @@ namespace FModel.ViewModels default: { FLogger.AppendWarning(); - FLogger.AppendText($"The file '{fileName}' is of an unknown type.", Constants.WHITE, true); + FLogger.AppendText($"The package '{fileName}' is of an unknown type.", Constants.WHITE, true); break; } } diff --git a/FModel/ViewModels/Commands/LoadCommand.cs b/FModel/ViewModels/Commands/LoadCommand.cs index 6577c37e..c9c85f3b 100644 --- a/FModel/ViewModels/Commands/LoadCommand.cs +++ b/FModel/ViewModels/Commands/LoadCommand.cs @@ -42,7 +42,7 @@ namespace FModel.ViewModels.Commands if (_applicationView.CUE4Parse.Provider.Files.Count <= 0) { FLogger.AppendError(); - FLogger.AppendText("An encrypted file has been found. In order to decrypt it, please specify a working AES encryption key", Constants.WHITE, true); + FLogger.AppendText("An encrypted archive has been found. In order to decrypt it, please specify a working AES encryption key", Constants.WHITE, true); return; } @@ -50,7 +50,7 @@ namespace FModel.ViewModels.Commands _applicationView.CUE4Parse.Provider.MappingsContainer == null) { FLogger.AppendError(); - FLogger.AppendText("Mappings could not get pulled, extracting assets might not work properly. If so, press F12 or please restart.", Constants.WHITE, true); + FLogger.AppendText("Mappings could not get pulled, extracting packages might not work properly. If so, press F12 or please restart.", Constants.WHITE, true); } #if DEBUG @@ -154,7 +154,7 @@ namespace FModel.ViewModels.Commands if (!(bool) openFileDialog.ShowDialog()) return; FLogger.AppendInformation(); - FLogger.AppendText($"Backup file older than current game version is '{openFileDialog.FileName.SubstringAfterLast("\\")}'", Constants.WHITE, true); + FLogger.AppendText($"Backup file older than current game is '{openFileDialog.FileName.SubstringAfterLast("\\")}'", Constants.WHITE, true); await using var fileStream = new FileStream(openFileDialog.FileName, FileMode.Open); await using var memoryStream = new MemoryStream(); diff --git a/FModel/ViewModels/ModelViewerViewModel.cs b/FModel/ViewModels/ModelViewerViewModel.cs index a6c22558..544c53d3 100644 --- a/FModel/ViewModels/ModelViewerViewModel.cs +++ b/FModel/ViewModels/ModelViewerViewModel.cs @@ -16,7 +16,6 @@ using CUE4Parse.UE4.Assets.Exports.SkeletalMesh; using CUE4Parse.UE4.Assets.Exports.StaticMesh; using CUE4Parse.UE4.Assets.Exports.Texture; using CUE4Parse.UE4.Objects.Core.Math; -using CUE4Parse.UE4.Objects.UObject; using CUE4Parse.Utils; using CUE4Parse_Conversion.Materials; using CUE4Parse_Conversion.Meshes; diff --git a/FModel/Views/About.xaml b/FModel/Views/About.xaml index 962be258..1b93d5e3 100644 --- a/FModel/Views/About.xaml +++ b/FModel/Views/About.xaml @@ -28,7 +28,7 @@ + Text="Since the release in March 2019, we've continuously added new features and improved old ones. It started as a simple UE4 file explorer to parse packages and, as things progressed, became really popular to data-mine games and create items icons. FModel 4 is now the most complete and well-made version so far. It features dozens of settings for you to use to make FModel your own." /> diff --git a/FModel/Views/AesManager.xaml b/FModel/Views/AesManager.xaml index 07c45823..8b5e8429 100644 --- a/FModel/Views/AesManager.xaml +++ b/FModel/Views/AesManager.xaml @@ -27,13 +27,13 @@ - + + Text="In order to decipher archives' information, an AES key, in most cases, is needed. Here you can set the key for your static and dynamic archives. If you don't know what key to use for your set game, simply Google it. Keys must start with "0x" and contains 64 more characters." /> - + @@ -41,7 +41,7 @@ - + @@ -54,7 +54,7 @@ - + - + @@ -76,7 +76,7 @@ - + - - +