diff --git a/FModel/ViewModels/Commands/TabCommand.cs b/FModel/ViewModels/Commands/TabCommand.cs index a622d5e4..2867f87a 100644 --- a/FModel/ViewModels/Commands/TabCommand.cs +++ b/FModel/ViewModels/Commands/TabCommand.cs @@ -31,9 +31,15 @@ public class TabCommand : ViewModelCommand case "Close_Other_Tabs": _applicationView.CUE4Parse.TabControl.RemoveOtherTabs(tabViewModel); break; + case "Assets_Show_Metadata": + _applicationView.CUE4Parse.ShowMetadata(tabViewModel.Entry); + break; case "Find_References": _applicationView.CUE4Parse.FindReferences(tabViewModel.Entry); break; + case "Assets_Decompile": + _applicationView.CUE4Parse.Decompile(tabViewModel.Entry); + break; case "Save_Data": await _threadWorkerView.Begin(_ => _applicationView.CUE4Parse.ExportData(tabViewModel.Entry)); break; @@ -77,9 +83,21 @@ public class TabCommand : ViewModelCommand }.Show(); }); break; - case "Copy_Asset_Path": + case "File_Path": Clipboard.SetText(tabViewModel.Entry.Path); break; + case "File_Name": + Clipboard.SetText(tabViewModel.Entry.Name); + break; + case "Directory_Path": + Clipboard.SetText(tabViewModel.Entry.Directory); + break; + case "File_Path_No_Extension": + Clipboard.SetText(tabViewModel.Entry.PathWithoutExtension); + break; + case "File_Name_No_Extension": + Clipboard.SetText(tabViewModel.Entry.NameWithoutExtension); + break; } } } diff --git a/FModel/Views/Resources/Resources.xaml b/FModel/Views/Resources/Resources.xaml index c33eb148..ce77bf5c 100644 --- a/FModel/Views/Resources/Resources.xaml +++ b/FModel/Views/Resources/Resources.xaml @@ -910,6 +910,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -931,6 +951,35 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -1010,7 +1059,7 @@ - + @@ -1018,6 +1067,16 @@ + + + + + + + + + + diff --git a/FModel/Views/SearchView.xaml b/FModel/Views/SearchView.xaml index 9e3a1f93..53ab85ab 100644 --- a/FModel/Views/SearchView.xaml +++ b/FModel/Views/SearchView.xaml @@ -5,6 +5,7 @@ xmlns:adonisUi="clr-namespace:AdonisUI;assembly=AdonisUI" xmlns:adonisControls="clr-namespace:AdonisUI.Controls;assembly=AdonisUI" xmlns:adonisExtensions="clr-namespace:AdonisUI.Extensions;assembly=AdonisUI" + xmlns:settings="clr-namespace:FModel.Settings" WindowStartupLocation="CenterScreen" ResizeMode="CanResize" ShowInTaskbar="True" IconVisibility="Collapsed" KeyDown="OnWindowKeyDown" StateChanged="OnStateChanged" Height="{Binding Source={x:Static SystemParameters.MaximizedPrimaryScreenHeight}, Converter={converters:RatioConverter}, ConverterParameter='0.75'}" @@ -161,6 +162,21 @@ + + + + + + + + + + + + + + + @@ -196,6 +212,15 @@ + + + @@ -529,6 +554,21 @@ + + + + + + + + + + + + + + +