Files
UnrealEngineUWP/Engine/Source/Editor/LevelEditor/Private/LevelEditorMenu.h
Steven Dao 6b542ec72d Move selection-related commands from Level Editor's actor context menu to a Select top-level menu
The old context menu previously only showed relevant commands, but the new top-level menu always shows all commands,
disabling irrelevant ones. I've moved that logic into the commands' CanExecute callback in order to have them
properly enable/disable when available/unavailable.

#jira UETOOL-2796
#rb louise.rasmussen
#preflight 614a56cab4b2fb0001b085c3

[CL 17590040 by Steven Dao in ue5-main branch]
2021-09-21 19:33:06 -04:00

31 lines
601 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/SWidget.h"
#include "Editor/LevelEditor/Private/SLevelEditor.h"
/**
* Level editor menu
*/
class FLevelEditorMenu
{
public:
static void RegisterLevelEditorMenus();
/**
* Static: Creates a widget for the level editor's menu
*
* @return New widget
*/
static TSharedRef< SWidget > MakeLevelEditorMenu( const TSharedPtr<FUICommandList>& CommandList, TSharedPtr<class SLevelEditor> LevelEditor );
private:
static void RegisterBuildMenu();
static void RegisterSelectMenu();
};