You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-146929 #rb helge.mathee #preflight 62ced5dbd00f3c208e47c183 [CL 21089290 by sara schvartzman in ue5-main branch]
56 lines
1.2 KiB
C++
56 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "RigVMModel/Nodes/RigVMFunctionEntryNode.h"
|
|
#include "RigVMModel/RigVMFunctionLibrary.h"
|
|
|
|
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);
|
|
}
|