From ac21c4d1e7a28d2e3e31c021f4f76ab1cb72889a Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 16 Aug 2021 15:30:38 +0200 Subject: [PATCH] Adjust scene node context menu --- Source/Editor/SceneGraph/Actors/SceneNode.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Editor/SceneGraph/Actors/SceneNode.cs b/Source/Editor/SceneGraph/Actors/SceneNode.cs index 894934038..63c36eddf 100644 --- a/Source/Editor/SceneGraph/Actors/SceneNode.cs +++ b/Source/Editor/SceneGraph/Actors/SceneNode.cs @@ -70,7 +70,11 @@ namespace FlaxEditor.SceneGraph.Actors contextMenu.AddSeparator(); var path = Scene.Path; if (!string.IsNullOrEmpty(path) && File.Exists(path)) - contextMenu.AddButton("Select in Content", OnSelect).LinkTooltip("Finds and selects the scene asset int Content window."); + { + var b = contextMenu.AddButton("Show in content window", OnSelect); + b.Icon = Editor.Instance.Icons.Search12; + b.TooltipText = "Finds and selects the scene asset int Content window."; + } contextMenu.AddButton("Save scene", OnSave).LinkTooltip("Saves this scene.").Enabled = IsEdited && !Editor.IsPlayMode; contextMenu.AddButton("Unload scene", OnUnload).LinkTooltip("Unloads this scene.").Enabled = Editor.Instance.StateMachine.CurrentState.CanChangeScene;