Graph Editor node menus converted to ToolMenus

#rb none
#rnx

[CL 7900622 by Rex Hill in Dev-Editor branch]
This commit is contained in:
Rex Hill
2019-08-08 16:32:13 -04:00
parent 5d516e8ca8
commit dc107df197
87 changed files with 520 additions and 496 deletions

View File

@@ -3,7 +3,7 @@
#include "AnimGraphNode_SequencePlayer.h"
#include "EdGraphSchema_K2_Actions.h"
#include "Modules/ModuleManager.h"
#include "Framework/MultiBox/MultiBoxBuilder.h"
#include "ToolMenus.h"
#include "Kismet2/CompilerResultsLog.h"
#include "GraphEditorActions.h"
@@ -344,17 +344,16 @@ void UAnimGraphNode_SequencePlayer::ValidateAnimNodeDuringCompilation(class USke
}
}
void UAnimGraphNode_SequencePlayer::GetContextMenuActions(const FGraphNodeContextMenuBuilder& Context) const
void UAnimGraphNode_SequencePlayer::GetNodeContextMenuActions(UToolMenu* Menu, UGraphNodeContextMenuContext* Context) const
{
if (!Context.bIsDebugging)
if (!Context->bIsDebugging)
{
// add an option to convert to single frame
Context.MenuBuilder->BeginSection("AnimGraphNodeSequencePlayer", NSLOCTEXT("A3Nodes", "SequencePlayerHeading", "Sequence Player"));
{
Context.MenuBuilder->AddMenuEntry(FGraphEditorCommands::Get().OpenRelatedAsset);
Context.MenuBuilder->AddMenuEntry(FGraphEditorCommands::Get().ConvertToSeqEvaluator);
FToolMenuSection& Section = Menu->AddSection("AnimGraphNodeSequencePlayer", NSLOCTEXT("A3Nodes", "SequencePlayerHeading", "Sequence Player"));
Section.AddMenuEntry(FGraphEditorCommands::Get().OpenRelatedAsset);
Section.AddMenuEntry(FGraphEditorCommands::Get().ConvertToSeqEvaluator);
}
Context.MenuBuilder->EndSection();
}
}