From 2dca30305f6b38d8549a0a2fbd6b15c86a13e249 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 3 Nov 2022 08:12:40 -0500 Subject: [PATCH] added shader source and removed unused variables/includes --- Source/Editor/Content/Proxy/ShaderSourceProxy.cs | 1 + Source/Editor/Windows/ContentWindow.ContextMenu.cs | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/Editor/Content/Proxy/ShaderSourceProxy.cs b/Source/Editor/Content/Proxy/ShaderSourceProxy.cs index 86020c997..9b2ec22d5 100644 --- a/Source/Editor/Content/Proxy/ShaderSourceProxy.cs +++ b/Source/Editor/Content/Proxy/ShaderSourceProxy.cs @@ -13,6 +13,7 @@ namespace FlaxEditor.Content /// Context proxy object for shader source files (represented by ). /// /// + [ContentContextMenu("New/Shader Source")] public class ShaderSourceProxy : ContentProxy { /// diff --git a/Source/Editor/Windows/ContentWindow.ContextMenu.cs b/Source/Editor/Windows/ContentWindow.ContextMenu.cs index db4ed13d8..aaf0bacb4 100644 --- a/Source/Editor/Windows/ContentWindow.ContextMenu.cs +++ b/Source/Editor/Windows/ContentWindow.ContextMenu.cs @@ -1,14 +1,10 @@ // Copyright (c) 2012-2022 Wojciech Figat. All rights reserved. using System; -using System.CodeDom; -using System.Collections.Generic; -using System.Linq; using FlaxEditor.Content; using FlaxEditor.GUI.ContextMenu; using FlaxEngine; using FlaxEngine.Assertions; -using FlaxEngine.GUI; using FlaxEngine.Json; namespace FlaxEditor.Windows @@ -43,7 +39,6 @@ namespace FlaxEditor.Windows // Create context menu ContextMenuButton b; - ContextMenuChildMenu c; ContextMenu cm = new ContextMenu { Tag = item