From 9772c7c9242d84206a97bf439e9fc8fe8fa20530 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Wed, 29 Apr 2020 01:46:04 -0400 Subject: [PATCH] move 'CPK Tools' FileSystemEditor extension menu definitions to UEXML file --- .../CRI/CRIFileSystemEditorExtensions.uexml | 22 +++++++++++++++++++ ...lEditor.Content.PlatformIndependent.csproj | 2 ++ .../FileSystemEditorExtensions.cs | 14 ------------ 3 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Extensions/CRI/CRIFileSystemEditorExtensions.uexml diff --git a/Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Extensions/CRI/CRIFileSystemEditorExtensions.uexml b/Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Extensions/CRI/CRIFileSystemEditorExtensions.uexml new file mode 100644 index 00000000..61aeda16 --- /dev/null +++ b/Content/UniversalEditor.Content.PlatformIndependent/Extensions/GameDeveloper/Extensions/CRI/CRIFileSystemEditorExtensions.uexml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj b/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj index e412ce99..dec5c4b8 100644 --- a/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj +++ b/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj @@ -718,6 +718,7 @@ + @@ -770,6 +771,7 @@ + diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.CRI.UserInterface/FileSystemEditorExtensions.cs b/Plugins.UserInterface/UniversalEditor.Plugins.CRI.UserInterface/FileSystemEditorExtensions.cs index f959b1a0..fe318a69 100644 --- a/Plugins.UserInterface/UniversalEditor.Plugins.CRI.UserInterface/FileSystemEditorExtensions.cs +++ b/Plugins.UserInterface/UniversalEditor.Plugins.CRI.UserInterface/FileSystemEditorExtensions.cs @@ -56,20 +56,6 @@ namespace UniversalEditor.Plugins.CRI.UserInterface if (!(Document.DataFormat is CPKDataFormat)) return; - Application.Commands.Add(new Command("CRI_FileSystem_Extensions", "CRI Tools", new CommandItem[] - { - new CommandReferenceCommandItem("CRI_FileSystem_Extensions_Export_Header"), - new CommandReferenceCommandItem("CRI_FileSystem_Extensions_Export_TOC"), - new CommandReferenceCommandItem("CRI_FileSystem_Extensions_Export_ITOC"), - new CommandReferenceCommandItem("CRI_FileSystem_Extensions_Export_GTOC"), - new CommandReferenceCommandItem("CRI_FileSystem_Extensions_Export_ETOC") - })); - Application.Commands.Add(new Command("CRI_FileSystem_Extensions_Export_Header", "Export Header UTF")); - Application.Commands.Add(new Command("CRI_FileSystem_Extensions_Export_TOC", "Export TOC UTF")); - Application.Commands.Add(new Command("CRI_FileSystem_Extensions_Export_ITOC", "Export ITOC UTF")); - Application.Commands.Add(new Command("CRI_FileSystem_Extensions_Export_GTOC", "Export GTOC UTF")); - Application.Commands.Add(new Command("CRI_FileSystem_Extensions_Export_ETOC", "Export ETOC UTF")); - er.Commands["FileSystemContextMenu_Unselected"].Items.Add(new SeparatorCommandItem()); er.Commands["FileSystemContextMenu_Unselected"].Items.Add(new CommandReferenceCommandItem("CRI_FileSystem_Extensions"));