You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Before: Total CPU Time: 53783.640625 s Total time in Parallel executor: 558.66 seconds After: Total CPU Time: 47886.140625 s Total time in Parallel executor: 498.81 seconds #jira [CL 22173145 by bryan sefcik in ue5-main branch]
58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "RigVMModel/Nodes/RigVMFunctionEntryNode.h"
|
|
#include "RigVMModel/RigVMFunctionLibrary.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(RigVMFunctionEntryNode)
|
|
|
|
const FRigVMTemplate* URigVMFunctionEntryNode::GetTemplate() const
|
|
{
|
|
if (URigVMLibraryNode* LibraryNode = GetTypedOuter<URigVMLibraryNode>())
|
|
{
|
|
return LibraryNode->GetTemplate();
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
FName URigVMFunctionEntryNode::GetNotation() const
|
|
{
|
|
if (URigVMLibraryNode* LibraryNode = GetTypedOuter<URigVMLibraryNode>())
|
|
{
|
|
return LibraryNode->GetNotation();
|
|
}
|
|
return NAME_None;
|
|
}
|
|
|
|
FLinearColor URigVMFunctionEntryNode::GetNodeColor() const
|
|
{
|
|
if(URigVMGraph* RootGraph = GetRootGraph())
|
|
{
|
|
if(RootGraph->IsA<URigVMFunctionLibrary>())
|
|
{
|
|
return FLinearColor(FColor::FromHex("CB00FFFF"));
|
|
}
|
|
}
|
|
return FLinearColor(FColor::FromHex("005DFFFF"));
|
|
}
|
|
|
|
bool URigVMFunctionEntryNode::IsDefinedAsVarying() const
|
|
{
|
|
// todo
|
|
return true;
|
|
}
|
|
|
|
FString URigVMFunctionEntryNode::GetNodeTitle() const
|
|
{
|
|
return TEXT("Entry");
|
|
}
|
|
|
|
FText URigVMFunctionEntryNode::GetToolTipText() const
|
|
{
|
|
return FText::FromName(GetTemplate()->GetNotation());
|
|
}
|
|
|
|
FText URigVMFunctionEntryNode::GetToolTipTextForPin(const URigVMPin* InPin) const
|
|
{
|
|
return Super::GetToolTipTextForPin(InPin);
|
|
}
|