Files
UnrealEngineUWP/Engine/Source/Editor/AudioEditor/Private/SoundCueGraphNode_Root.cpp
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

57 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
SoundCueGraphNode_Root.cpp
=============================================================================*/
#include "SoundCueGraph/SoundCueGraphNode_Root.h"
#include "ToolMenus.h"
#include "GraphEditorSettings.h"
#include "SoundCueGraphEditorCommands.h"
#define LOCTEXT_NAMESPACE "SoundCueGraphNode_Root"
/////////////////////////////////////////////////////
// USoundCueGraphNode_Root
USoundCueGraphNode_Root::USoundCueGraphNode_Root(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
FLinearColor USoundCueGraphNode_Root::GetNodeTitleColor() const
{
return GetDefault<UGraphEditorSettings>()->ResultNodeTitleColor;
}
FText USoundCueGraphNode_Root::GetNodeTitle(ENodeTitleType::Type TitleType) const
{
return LOCTEXT("RootTitle", "Output");
}
FText USoundCueGraphNode_Root::GetTooltipText() const
{
return LOCTEXT("RootToolTip", "Wire the final Sound Node into this node");
}
void USoundCueGraphNode_Root::CreateInputPins()
{
CreatePin(EGPD_Input, TEXT("SoundNode"), TEXT("Root"), NAME_None);
}
void USoundCueGraphNode_Root::GetNodeContextMenuActions(UToolMenu* Menu, UGraphNodeContextMenuContext* Context) const
{
if (Context->Pin)
{
}
else if (Context->Node)
{
{
FToolMenuSection& Section = Menu->AddSection("SoundCueGraphNodePlay");
Section.AddMenuEntry(FSoundCueGraphEditorCommands::Get().PlayNode);
}
}
}
#undef LOCTEXT_NAMESPACE