// Fill out your copyright notice in the Description page of Project Settings. #include "DialogueGraphPanelPinFactory.h" #include "Node/DialogueGraphNode_Base.h" #include "Node/DialogueGraphNode_NPC.h" #include "Node/DialogueGraphNode_Player.h" #include "Widget/DialogueGraphPin.h" TSharedPtr FDialogueGraphPanelPinFactory::CreatePin(class UEdGraphPin* InPin) const { UEdGraphNode* ParentNode = InPin->GetOwningNode(); if (ParentNode->IsA(UDialogueGraphNode_NPC::StaticClass()) || ParentNode->IsA(UDialogueGraphNode_Player::StaticClass())) { return SNew(SDialogueGraphPin, InPin); } else { return SNew(SDialogueNoneGraphPin, InPin); } // For response nodes, return horizontal box with textblock and pin return nullptr; }