Files
UnrealEngineUWP/Engine/Source/Editor/AudioEditor/Private/SoundCueGraphNode_Root.cpp
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -05:00

58 lines
1.5 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
SoundCueGraphNode_Root.cpp
=============================================================================*/
#include "SoundCueGraph/SoundCueGraphNode_Root.h"
#include "Framework/MultiBox/MultiBoxBuilder.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::GetContextMenuActions(const FGraphNodeContextMenuBuilder& Context) const
{
if (Context.Pin)
{
}
else if (Context.Node)
{
Context.MenuBuilder->BeginSection("SoundCueGraphNodePlay");
{
Context.MenuBuilder->AddMenuEntry(FSoundCueGraphEditorCommands::Get().PlayNode);
}
Context.MenuBuilder->EndSection();
}
}
#undef LOCTEXT_NAMESPACE