| 974 | } |
| 975 | |
| 976 | void SFlowGraphNode::AddPin(const TSharedRef<SGraphPin>& PinToAdd) |
| 977 | { |
| 978 | PinToAdd->SetOwner(SharedThis(this)); |
| 979 | |
| 980 | const UEdGraphPin* PinObj = PinToAdd->GetPinObj(); |
| 981 | if (PinObj && PinObj->bAdvancedView) |
| 982 | { |
| 983 | PinToAdd->SetVisibility(TAttribute<EVisibility>(PinToAdd, &SGraphPin::IsPinVisibleAsAdvanced)); |
| 984 | } |
| 985 | |
| 986 | if (PinToAdd->GetDirection() == EEdGraphPinDirection::EGPD_Input) |
| 987 | { |
| 988 | LeftNodeBox->AddSlot() |
| 989 | .AutoHeight() |
| 990 | .HAlign(HAlign_Left) |
| 991 | .VAlign(VAlign_Center) |
| 992 | .Padding(Settings->GetInputPinPadding()) |
| 993 | [ |
| 994 | PinToAdd |
| 995 | ]; |
| 996 | InputPins.Add(PinToAdd); |
| 997 | } |
| 998 | else // Direction == EEdGraphPinDirection::EGPD_Output |
| 999 | { |
| 1000 | RightNodeBox->AddSlot() |
| 1001 | .AutoHeight() |
| 1002 | .HAlign(HAlign_Right) |
| 1003 | .VAlign(VAlign_Center) |
| 1004 | .Padding(Settings->GetOutputPinPadding()) |
| 1005 | [ |
| 1006 | PinToAdd |
| 1007 | ]; |
| 1008 | OutputPins.Add(PinToAdd); |
| 1009 | } |
| 1010 | } |
| 1011 | |
| 1012 | FReply SFlowGraphNode::OnMouseMove(const FGeometry& SenderGeometry, const FPointerEvent& MouseEvent) |
| 1013 | { |