mirror of
https://github.com/4sval/FModel.git
synced 2026-12-04 14:58:58 -06:00
Merge branch 'dev' of https://github.com/4sval/FModel into feature/new-viewer
This commit is contained in:
Submodule CUE4Parse updated: 29e62077c5...77b94fa26c
@@ -110,6 +110,7 @@ public enum EBulkType
|
||||
Code = 1 << 6,
|
||||
Raw = 1 << 7,
|
||||
Worlds = 1 << 8,
|
||||
EmbeddedFiles = 1 << 9,
|
||||
}
|
||||
|
||||
public enum EAssetCategory : uint
|
||||
@@ -171,6 +172,8 @@ public enum EAssetCategory : uint
|
||||
GothamKnights = GameSpecific + 7,
|
||||
Nascar = GameSpecific + 8,
|
||||
DeadByDaylight = GameSpecific + 9,
|
||||
Proprietary = AssetCategoryExtensions.CategoryBase + (11 << 16),
|
||||
Flash = Proprietary + 1
|
||||
}
|
||||
|
||||
public enum EAssetFamily
|
||||
|
||||
@@ -186,6 +186,8 @@ public partial class MainWindow
|
||||
}
|
||||
else if (_applicationView.Status.IsReady && UserSettings.Default.ExportData.IsTriggered(e.Key))
|
||||
OnExportHotkey("Save_Data");
|
||||
else if (_applicationView.Status.IsReady && UserSettings.Default.ExportEmbeddedFiles.IsTriggered(e.Key))
|
||||
OnExportHotkey("Save_EmbeddedFiles");
|
||||
else if (_applicationView.Status.IsReady && UserSettings.Default.ExportProperties.IsTriggered(e.Key))
|
||||
OnExportHotkey("Save_Properties");
|
||||
else if (_applicationView.Status.IsReady && UserSettings.Default.ExportTextures.IsTriggered(e.Key))
|
||||
|
||||
@@ -432,6 +432,13 @@ public sealed class UserSettings : ViewModel
|
||||
set => SetProperty(ref _exportData, value);
|
||||
}
|
||||
|
||||
private Hotkey _exportEmbeddedFiles = new(Key.None);
|
||||
public Hotkey ExportEmbeddedFiles
|
||||
{
|
||||
get => _exportEmbeddedFiles;
|
||||
set => SetProperty(ref _exportEmbeddedFiles, value);
|
||||
}
|
||||
|
||||
private Hotkey _exportProperties = new(Key.None);
|
||||
public Hotkey ExportProperties
|
||||
{
|
||||
|
||||
@@ -32,11 +32,12 @@ using CUE4Parse.GameTypes.DFHO.Assets.Objects;
|
||||
using CUE4Parse.GameTypes.HonorOfKings.FileProvider;
|
||||
using CUE4Parse.GameTypes.KRD.Assets.Exports;
|
||||
using CUE4Parse.GameTypes.LegoBatman.Assets;
|
||||
using CUE4Parse.GameTypes.Nascar.Assets.Exports;
|
||||
using CUE4Parse.GameTypes.LordOfMysteries.FileProvider;
|
||||
using CUE4Parse.GameTypes.Tencent.RocoKingdomWorld.Assets.Objects;
|
||||
using CUE4Parse.GameTypes.MarchOfGiants.FileProvider;
|
||||
using CUE4Parse.GameTypes.Nascar.Assets.Exports;
|
||||
using CUE4Parse.GameTypes.SMG.UE4.Assets.Exports.Wwise;
|
||||
using CUE4Parse.GameTypes.SquareEnix.UE4.Assets.Exports;
|
||||
using CUE4Parse.GameTypes.Tencent.RocoKingdomWorld.Assets.Objects;
|
||||
using CUE4Parse.GameTypes.Theia.FileProvider;
|
||||
using CUE4Parse.GameTypes.WarnerBros.GothamKnights.Assets.Exports.Wwise;
|
||||
using CUE4Parse.MappingsProvider;
|
||||
@@ -76,9 +77,7 @@ using CUE4Parse.UE4.Shaders;
|
||||
using CUE4Parse.UE4.Versions;
|
||||
using CUE4Parse.UE4.Wwise;
|
||||
using CUE4Parse.Utils;
|
||||
using CUE4Parse_Conversion.Exporters;
|
||||
using CUE4Parse_Conversion.Sounds;
|
||||
using CUE4Parse.UE4.Assets.Exports.GeometryCollection;
|
||||
using CUE4Parse_Conversion.Dto;
|
||||
using EpicManifestParser;
|
||||
using EpicManifestParser.UE;
|
||||
using FModel.Creator;
|
||||
@@ -172,6 +171,7 @@ public class CUE4ParseViewModel : ViewModel
|
||||
GAME_HonorofKingsWorld => new HoKWDefaultFileProvider(gameDirectory, SearchOption.AllDirectories, versionContainer, pathComparer),
|
||||
GAME_LordOfMysteries => new LoMDefaultFileProvider(gameDirectory, SearchOption.AllDirectories, versionContainer, pathComparer),
|
||||
GAME_ArcRaiders or GAME_Highguard or GAME_MARVELTokonFightingSouls => new TheiaFileProvider(gameDirectory, SearchOption.AllDirectories, versionContainer, pathComparer),
|
||||
GAME_MarchofGiants => new MogFileProvider(gameDirectory, SearchOption.AllDirectories, versionContainer, pathComparer),
|
||||
_ => new DefaultFileProvider(gameDirectory, SearchOption.AllDirectories, versionContainer, pathComparer)
|
||||
};
|
||||
|
||||
@@ -652,7 +652,10 @@ public class CUE4ParseViewModel : ViewModel
|
||||
break;
|
||||
}
|
||||
|
||||
for (var i = result.InclusiveStart; i < result.ExclusiveEnd; i++)
|
||||
var exportEmbeddedFiles = HasFlag(bulk, EBulkType.EmbeddedFiles);
|
||||
var start = exportEmbeddedFiles ? 0 : result.InclusiveStart;
|
||||
var end = exportEmbeddedFiles ? result.Package.ExportMapLength : result.ExclusiveEnd;
|
||||
for (var i = start; i < end; i++)
|
||||
{
|
||||
if (CheckExport(cancellationToken, result.Package, i, bulk))
|
||||
break;
|
||||
@@ -1247,6 +1250,14 @@ public class CUE4ParseViewModel : ViewModel
|
||||
// the viewer asked for this kind of asset and took it
|
||||
return true;
|
||||
}
|
||||
case UObject when HasFlag(bulk, EBulkType.EmbeddedFiles):
|
||||
{
|
||||
if (EmbeddedFilesDto.Supports(dummy) && new EmbeddedFilesDto(pointer.Object.Value).Files.Count > 0)
|
||||
{
|
||||
SaveExport(pointer.Object.Value);
|
||||
}
|
||||
return false; // Don't stop, a package may contain several exports with embedded files
|
||||
}
|
||||
case UVerseDigest when isNone && pointer.Object.Value is UVerseDigest verseDigest:
|
||||
{
|
||||
if (verseDigest.ReadableCode is null || !TabControl.CanAddTabs) return false;
|
||||
@@ -1594,7 +1605,6 @@ public class CUE4ParseViewModel : ViewModel
|
||||
}
|
||||
case UStaticMesh when HasFlag(bulk, EBulkType.Meshes):
|
||||
case UIRMesh when HasFlag(bulk, EBulkType.Meshes):
|
||||
case UHoudiniAsset when HasFlag(bulk, EBulkType.Meshes):
|
||||
case UHoudiniStaticMesh when HasFlag(bulk, EBulkType.Meshes):
|
||||
case UGeometryCollection when HasFlag(bulk, EBulkType.Meshes):
|
||||
case USkinnedAsset when HasFlag(bulk, EBulkType.Meshes):
|
||||
|
||||
@@ -64,6 +64,7 @@ public class RightClickMenuCommand : ViewModelCommand<ApplicationViewModel>
|
||||
"Assets_Decompile" => (EAction.Show, EShowAssetType.Decompile, EBulkType.Code),
|
||||
|
||||
"Save_Data" => (EAction.Export, EShowAssetType.None, EBulkType.Raw),
|
||||
"Save_EmbeddedFiles" => (EAction.Export, EShowAssetType.None, EBulkType.EmbeddedFiles),
|
||||
"Save_Properties" => (EAction.Export, EShowAssetType.None, EBulkType.Properties),
|
||||
"Save_Textures" => (EAction.Export, EShowAssetType.None, EBulkType.Textures),
|
||||
"Save_Models" => (EAction.Export, EShowAssetType.None, EBulkType.Meshes),
|
||||
@@ -106,6 +107,7 @@ public class RightClickMenuCommand : ViewModelCommand<ApplicationViewModel>
|
||||
var (dirType, filetype) = bulktype switch
|
||||
{
|
||||
EBulkType.Raw => (UserSettings.Default.RawDataDirectory, "files"),
|
||||
EBulkType.EmbeddedFiles => (UserSettings.Default.RawDataDirectory, "embedded files"),
|
||||
EBulkType.Properties => (UserSettings.Default.PropertiesDirectory, "json files"),
|
||||
EBulkType.Textures => (UserSettings.Default.TextureDirectory, "textures"),
|
||||
EBulkType.Meshes => (UserSettings.Default.ModelDirectory, "models"),
|
||||
|
||||
@@ -254,7 +254,7 @@ public class ExportSessionViewModel : ViewModel
|
||||
|
||||
private static void LogSummary(IReadOnlyList<ExportResult> results)
|
||||
{
|
||||
if (results.Count == 1)
|
||||
if (results.Count == 1 && results[0].DiskFilePaths is not { Count: > 1 })
|
||||
{
|
||||
var result = results[0];
|
||||
switch (result.Success)
|
||||
@@ -289,7 +289,7 @@ public class ExportSessionViewModel : ViewModel
|
||||
foreach (var file in result.DiskFilePaths)
|
||||
{
|
||||
var extension = Path.GetExtension(file).TrimStart('.');
|
||||
var source = SplitDirectory(result.ObjectPath);
|
||||
var source = SplitDirectory(result.ObjectPath.TrimStart('/', '\\'));
|
||||
var directory = SplitDirectory(file);
|
||||
groups[extension] = groups.TryGetValue(extension, out var group)
|
||||
? (group.Count + 1, CommonPrefix(group.Source, source), CommonPrefix(group.Directory, directory))
|
||||
@@ -301,6 +301,9 @@ public class ExportSessionViewModel : ViewModel
|
||||
{
|
||||
var source = string.Join('/', group.Source);
|
||||
var directory = string.Join(Path.DirectorySeparatorChar, group.Directory);
|
||||
if (source.Length == 0)
|
||||
source = "multiple folders";
|
||||
|
||||
FLogger.Append(ELog.Information, () =>
|
||||
{
|
||||
FLogger.Text($"Successfully exported {group.Count} {extension} from ", Constants.WHITE);
|
||||
@@ -315,7 +318,7 @@ public class ExportSessionViewModel : ViewModel
|
||||
}
|
||||
}
|
||||
|
||||
private static string[] SplitDirectory(string path) => Path.GetDirectoryName(path)?.Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar) ?? [];
|
||||
private static string[] SplitDirectory(string path) => Path.GetDirectoryName(path)?.Split([Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar]) ?? [];
|
||||
private static string[] CommonPrefix(string[] a, string[] b)
|
||||
{
|
||||
var i = 0;
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using CUE4Parse_Conversion.Textures;
|
||||
using CUE4Parse.UE4.Assets.Exports.Paper2D;
|
||||
using CUE4Parse_Conversion.Dto;
|
||||
using CUE4Parse.FileProvider.Objects;
|
||||
using CUE4Parse.GameTypes.Borderlands3.Assets.Exports;
|
||||
using CUE4Parse.GameTypes.Borderlands4.Assets.Exports;
|
||||
@@ -29,12 +30,14 @@ using CUE4Parse.UE4.Assets.Exports.Criware.Media;
|
||||
using CUE4Parse.UE4.Assets.Exports.CustomizableObject;
|
||||
using CUE4Parse.UE4.Assets.Exports.Engine;
|
||||
using CUE4Parse.UE4.Assets.Exports.Engine.Font;
|
||||
using CUE4Parse.UE4.Assets.Exports.Flash;
|
||||
using CUE4Parse.UE4.Assets.Exports.Fmod;
|
||||
using CUE4Parse.UE4.Assets.Exports.FMod;
|
||||
using CUE4Parse.UE4.Assets.Exports.Foliage;
|
||||
using CUE4Parse.UE4.Assets.Exports.GeometryCollection;
|
||||
using CUE4Parse.UE4.Assets.Exports.Houdini;
|
||||
using CUE4Parse.UE4.Assets.Exports.Internationalization;
|
||||
using CUE4Parse.UE4.Assets.Exports.Paper2D;
|
||||
using CUE4Parse.UE4.Assets.Exports.LevelSequence;
|
||||
using CUE4Parse.UE4.Assets.Exports.Material;
|
||||
using CUE4Parse.UE4.Assets.Exports.Material.Editor;
|
||||
@@ -118,6 +121,13 @@ public class GameFileViewModel(GameFile asset) : ViewModel
|
||||
}
|
||||
}
|
||||
|
||||
private string _embeddedFileExtensions = string.Empty;
|
||||
public string EmbeddedFileExtensions
|
||||
{
|
||||
get => _embeddedFileExtensions;
|
||||
private set => SetProperty(ref _embeddedFileExtensions, value);
|
||||
}
|
||||
|
||||
private ImageSource _previewImage;
|
||||
public ImageSource PreviewImage
|
||||
{
|
||||
@@ -217,7 +227,7 @@ public class GameFileViewModel(GameFile asset) : ViewModel
|
||||
or USoundAtomConfig or UAtomDspBusSetting or UAtomRackBase => EAssetFamily.Criware,
|
||||
|
||||
UAkAudioType or UAkAssetData or UAkAssetPlatformData or UAkMediaAssetData
|
||||
or UAkMediaAsset or UWwiseAssetLibrary or UExternalSource or UExternalSourceBank => EAssetFamily.Wwise,
|
||||
or UAkMediaAsset or UWwiseAssetLibrary or UWwiseAssetLibraryGroup or UExternalSource or UExternalSourceBank => EAssetFamily.Wwise,
|
||||
|
||||
UFMODEvent or UFMODBank or UFMODBankLookup or UFMODBus
|
||||
or UFMODSnapshot or UFMODSnapshotReverb or UFMODVCA => EAssetFamily.FMod,
|
||||
@@ -250,7 +260,7 @@ public class GameFileViewModel(GameFile asset) : ViewModel
|
||||
UNaniteDisplacedMesh => (EAssetCategory.NaniteDisplacedMesh, EBulkType.None),
|
||||
UGeometryCollection => (EAssetCategory.GeometryCollection, EBulkType.Meshes),
|
||||
|
||||
UHoudiniAsset => (EAssetCategory.Data, EBulkType.Meshes),
|
||||
UHoudiniAsset => (EAssetCategory.Data, EBulkType.None),
|
||||
|
||||
UTexture => (EAssetCategory.Texture, EBulkType.Textures),
|
||||
|
||||
@@ -289,7 +299,7 @@ public class GameFileViewModel(GameFile asset) : ViewModel
|
||||
UFMODBank or UAkAudioBank or UAtomSoundBank or USoundAtomCueSheet
|
||||
or UAkInitBank or USQEXSEADSoundBank => (EAssetCategory.SoundBank, EBulkType.Audio),
|
||||
|
||||
UWwiseAssetLibrary or UAtomSoundBase or USoundBase or UAkMediaAssetData
|
||||
UWwiseAssetLibrary or UWwiseAssetLibraryGroup or UAtomSoundBase or USoundBase or UAkMediaAssetData
|
||||
or UExternalSource or UExternalSourceBank or UAkMediaAsset => (EAssetCategory.Audio, EBulkType.Audio),
|
||||
|
||||
UAkAudioType => (EAssetCategory.Data, EBulkType.None),
|
||||
@@ -299,6 +309,8 @@ public class GameFileViewModel(GameFile asset) : ViewModel
|
||||
|
||||
UNiagaraSystem or UNiagaraScriptBase or UParticleSystem => (EAssetCategory.Particle, EBulkType.None),
|
||||
|
||||
USwfMovie => (EAssetCategory.Flash, EBulkType.None),
|
||||
|
||||
// Game specific assets below
|
||||
UBorderlandsDialogObject when GameVersion is EGame.GAME_Borderlands3 => (EAssetCategory.Borderlands, EBulkType.None), // Borderlands 3;
|
||||
UGbxGraphAsset or UDialogScriptData or UDialogPerformanceData when GameVersion is EGame.GAME_Borderlands4 or EGame.GAME_Borderlands3 => (EAssetCategory.Borderlands, EBulkType.Audio), // Borderlands 4; Borderlands 3;
|
||||
@@ -312,6 +324,14 @@ public class GameFileViewModel(GameFile asset) : ViewModel
|
||||
_ => (EAssetCategory.All, EBulkType.None),
|
||||
};
|
||||
|
||||
if (EmbeddedFilesDto.Supports(dummy))
|
||||
{
|
||||
var files = new EmbeddedFilesDto(pointer.Object.Value).Files;
|
||||
EmbeddedFileExtensions = string.Join(", ", files.Select(file => "." + file.Extension).Distinct(StringComparer.OrdinalIgnoreCase).OrderBy(extension => extension, StringComparer.OrdinalIgnoreCase));
|
||||
if (files.Count > 0)
|
||||
AssetActions |= EBulkType.EmbeddedFiles;
|
||||
}
|
||||
|
||||
switch (AssetCategory)
|
||||
{
|
||||
case EAssetCategory.Texture when pointer.Object.Value is UTexture texture:
|
||||
@@ -499,6 +519,9 @@ public class GameFileViewModel(GameFile asset) : ViewModel
|
||||
bitmap.Dispose();
|
||||
});
|
||||
}
|
||||
case "swf":
|
||||
AssetCategory = EAssetCategory.Flash;
|
||||
break;
|
||||
// Game specific extensions below
|
||||
case "ace" when GameVersion is EGame.GAME_Borderlands3:
|
||||
case "ncs" when GameVersion is EGame.GAME_Borderlands4:
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
<SolidColorBrush x:Key="SQLBrush" Color="#00758f" />
|
||||
<SolidColorBrush x:Key="PythonBrush" Color="#3d77a8" />
|
||||
<SolidColorBrush x:Key="CSharpBrush" Color="#9e559a" />
|
||||
<SolidColorBrush x:Key="FlashBrush" Color="#f44336" />
|
||||
|
||||
<!-- Asset family brushes -->
|
||||
<SolidColorBrush x:Key="CriwareBrush" Color="#005bab" />
|
||||
|
||||
@@ -145,6 +145,43 @@
|
||||
</Viewbox>
|
||||
</MenuItem.Icon>
|
||||
</MenuItem>
|
||||
<MenuItem ToolTip="Export files embedded in the selected assets"
|
||||
Command="{Binding RightClickMenuCommand}"
|
||||
InputGestureText="{Binding ExportEmbeddedFiles, Source={x:Static settings:UserSettings.Default}}">
|
||||
<MenuItem.Header>
|
||||
<TextBlock
|
||||
Text="{Binding PlacementTarget.SelectedItem.EmbeddedFileExtensions,
|
||||
FallbackValue='Embedded Files',
|
||||
StringFormat='Embedded Files ({0})',
|
||||
RelativeSource={RelativeSource AncestorType=ContextMenu}}" />
|
||||
</MenuItem.Header>
|
||||
<MenuItem.CommandParameter>
|
||||
<MultiBinding Converter="{x:Static converters:MultiParameterConverter.Instance}">
|
||||
<Binding Source="Save_EmbeddedFiles" />
|
||||
<Binding Path="PlacementTarget.SelectedItems" RelativeSource="{RelativeSource AncestorType=ContextMenu}" />
|
||||
</MultiBinding>
|
||||
</MenuItem.CommandParameter>
|
||||
<MenuItem.Visibility>
|
||||
<Binding Path="PlacementTarget.SelectedItems" RelativeSource="{RelativeSource AncestorType=ContextMenu}">
|
||||
<Binding.Converter>
|
||||
<converters:AnyItemMeetsConditionConverter>
|
||||
<converters:AnyItemMeetsConditionConverter.Conditions>
|
||||
<converters:ItemActionCondition Action="EmbeddedFiles" />
|
||||
</converters:AnyItemMeetsConditionConverter.Conditions>
|
||||
</converters:AnyItemMeetsConditionConverter>
|
||||
</Binding.Converter>
|
||||
</Binding>
|
||||
</MenuItem.Visibility>
|
||||
<MenuItem.Icon>
|
||||
<Viewbox Width="16" Height="16">
|
||||
<Canvas Width="24" Height="24">
|
||||
<Path Stroke="{DynamicResource {x:Static adonisUi:Brushes.ForegroundBrush}}"
|
||||
StrokeThickness="2" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
|
||||
Data="{StaticResource EmbeddedFilesIcon}" />
|
||||
</Canvas>
|
||||
</Viewbox>
|
||||
</MenuItem.Icon>
|
||||
</MenuItem>
|
||||
<MenuItem Header="Properties (.json)"
|
||||
Command="{Binding RightClickMenuCommand}"
|
||||
InputGestureText="{Binding ExportProperties, Source={x:Static settings:UserSettings.Default}}">
|
||||
|
||||
@@ -39,6 +39,28 @@
|
||||
</Viewbox>
|
||||
</MenuItem.Icon>
|
||||
</MenuItem>
|
||||
<MenuItem Header="Embedded Files"
|
||||
Command="{Binding RightClickMenuCommand}"
|
||||
InputGestureText="{Binding ExportEmbeddedFiles, Source={x:Static settings:UserSettings.Default}}">
|
||||
<MenuItem.CommandParameter>
|
||||
<MultiBinding Converter="{x:Static converters:MultiParameterConverter.Instance}">
|
||||
<Binding Source="Save_EmbeddedFiles" />
|
||||
<Binding Path="Tag"
|
||||
RelativeSource="{RelativeSource AncestorType=ContextMenu}" />
|
||||
</MultiBinding>
|
||||
</MenuItem.CommandParameter>
|
||||
<MenuItem.Icon>
|
||||
<Viewbox Width="16"
|
||||
Height="16">
|
||||
<Canvas Width="24"
|
||||
Height="24">
|
||||
<Path Stroke="{DynamicResource {x:Static adonisUi:Brushes.ForegroundBrush}}"
|
||||
StrokeThickness="2" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"
|
||||
Data="{StaticResource EmbeddedFilesIcon}" />
|
||||
</Canvas>
|
||||
</Viewbox>
|
||||
</MenuItem.Icon>
|
||||
</MenuItem>
|
||||
<MenuItem Header="Properties (.json)"
|
||||
Command="{Binding RightClickMenuCommand}"
|
||||
InputGestureText="{Binding ExportProperties, Source={x:Static settings:UserSettings.Default}}">
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Collections;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Data;
|
||||
using CUE4Parse.UE4.IO.Objects;
|
||||
using FModel.Extensions;
|
||||
@@ -21,9 +22,6 @@ public class AnyItemMeetsConditionConverter : IValueConverter
|
||||
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (value is not IEnumerable items || Conditions.Count == 0)
|
||||
return false;
|
||||
|
||||
Func<GameFileViewModel, bool> predicate = ConditionMode switch
|
||||
{
|
||||
EConditionMode.And => item => Conditions.All(condition => condition.Matches(item)),
|
||||
@@ -31,7 +29,8 @@ public class AnyItemMeetsConditionConverter : IValueConverter
|
||||
_ => throw new ArgumentOutOfRangeException()
|
||||
};
|
||||
|
||||
return items.OfType<GameFileViewModel>().Any(predicate);
|
||||
var matches = value is IEnumerable items && Conditions.Count > 0 && items.OfType<GameFileViewModel>().Any(predicate);
|
||||
return targetType == typeof(Visibility) ? (matches ? Visibility.Visible : Visibility.Collapsed) : matches;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
|
||||
@@ -90,11 +90,14 @@ public class FileToGeometryConverter : IMultiValueConverter
|
||||
"sql" => ("SQLIcon", "SQLBrush"),
|
||||
"py" => ("PythonIcon", "PythonBrush"),
|
||||
"cs" => ("CSharpIcon", "CSharpBrush"),
|
||||
"swf" => ("FlashIcon", "FlashBrush"),
|
||||
_ => ("DataTableIcon", "NeutralBrush")
|
||||
},
|
||||
|
||||
EAssetCategory.ByteCode => ("CodeIcon", "CodeBrush"),
|
||||
|
||||
EAssetCategory.Flash => ("FlashIcon", "FlashBrush"),
|
||||
|
||||
// Game specific below
|
||||
EAssetCategory.Borderlands => ("BorderlandsIcon", "BorderlandsBrush"),
|
||||
EAssetCategory.Aion2 => ("AionIcon", "AionBrush"),
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -416,6 +416,7 @@
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
@@ -453,44 +454,47 @@
|
||||
<TextBlock Grid.Row="9" Grid.Column="0" Text="Export Raw Data" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="9" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding ExportData, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="10" Grid.Column="0" Text="Export Properties" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<TextBlock Grid.Row="10" Grid.Column="0" Text="Export Embedded Files" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="10" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding ExportProperties, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="11" Grid.Column="0" Text="Export Textures" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
HotKey="{Binding ExportEmbeddedFiles, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="11" Grid.Column="0" Text="Export Properties" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="11" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding ExportTextures, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="12" Grid.Column="0" Text="Export Models" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
HotKey="{Binding ExportProperties, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="12" Grid.Column="0" Text="Export Textures" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="12" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding ExportModels, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="13" Grid.Column="0" Text="Export Worlds" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
HotKey="{Binding ExportTextures, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="13" Grid.Column="0" Text="Export Models" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="13" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding ExportWorlds, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="14" Grid.Column="0" Text="Export Animations" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
HotKey="{Binding ExportModels, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="14" Grid.Column="0" Text="Export Worlds" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="14" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding ExportAnimations, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="15" Grid.Column="0" Text="Export Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
HotKey="{Binding ExportWorlds, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="15" Grid.Column="0" Text="Export Animations" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="15" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding ExportAnimations, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="16" Grid.Column="0" Text="Export Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="16" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding ExportAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="16" Grid.Column="0" Text="Export Decompiled Blueprints" VerticalAlignment="Center" />
|
||||
<controls:HotkeyTextBox Grid.Row="16" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}"
|
||||
<TextBlock Grid.Row="17" Grid.Column="0" Text="Export Decompiled Blueprints" VerticalAlignment="Center" />
|
||||
<controls:HotkeyTextBox Grid.Row="17" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}"
|
||||
HotKey="{Binding ExportCode, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
|
||||
<Separator Grid.Row="17" Grid.Column="0" Grid.ColumnSpan="3" Style="{StaticResource CustomSeparator}" />
|
||||
<Separator Grid.Row="18" Grid.Column="0" Grid.ColumnSpan="3" Style="{StaticResource CustomSeparator}" />
|
||||
|
||||
<TextBlock Grid.Row="18" Grid.Column="0" Text="Add Audio File" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="18" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding AddAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="19" Grid.Column="0" Text="Play / Pause Current Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<TextBlock Grid.Row="19" Grid.Column="0" Text="Add Audio File" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="19" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding PlayPauseAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="20" Grid.Column="0" Text="Previous Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
HotKey="{Binding AddAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="20" Grid.Column="0" Text="Play / Pause Current Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="20" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding PreviousAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="21" Grid.Column="0" Text="Next Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
HotKey="{Binding PlayPauseAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="21" Grid.Column="0" Text="Previous Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="21" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding NextAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="22" Grid.Column="0" Text="Remove Selected Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
HotKey="{Binding PreviousAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="22" Grid.Column="0" Text="Next Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="22" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding NextAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
<TextBlock Grid.Row="23" Grid.Column="0" Text="Remove Selected Audio" VerticalAlignment="Center" Margin="0 0 0 5" />
|
||||
<controls:HotkeyTextBox Grid.Row="23" Grid.Column="2" Style="{StaticResource TextBoxDefaultStyle}" Margin="0 0 0 5"
|
||||
HotKey="{Binding RemoveAudio, Source={x:Static local:Settings.UserSettings.Default}, Mode=TwoWay}" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
|
||||
Reference in New Issue
Block a user