// Copyright Epic Games, Inc. All Rights Reserved. #include "AnimNextEdGraphSchema.h" #include "AnimNextRigVMAsset.h" #include "Entries/AnimNextRigVMAssetEntry.h" #define LOCTEXT_NAMESPACE "AnimNextEdGraphSchema" void UAnimNextEdGraphSchema::GetGraphDisplayInformation(const UEdGraph& Graph, /*out*/ FGraphDisplayInfo& DisplayInfo) const { Super::GetGraphDisplayInformation(Graph, DisplayInfo); if(UAnimNextRigVMAssetEntry* AssetEntry = Cast(Graph.GetOuter())) { DisplayInfo.DisplayName = FText::Format(LOCTEXT("GraphTabTitleFormat", "{0}: {1}"), FText::FromName(AssetEntry->GetEntryName()), FText::FromName(AssetEntry->GetTypedOuter()->GetFName())); DisplayInfo.Tooltip = FText::Format(LOCTEXT("GraphTabTooltipFormat", "{0} in:\n{1}"), FText::FromName(AssetEntry->GetEntryName()), FText::FromString(AssetEntry->GetTypedOuter()->GetPathName())); } } #undef LOCTEXT_NAMESPACE