You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
// Copyright 2019 yangxiangyun
|
|
// All Rights Reserved
|
|
|
|
#include "ConnectionDrawingPolicy/NGABlueprintConnectionDrawingPolicy.h"
|
|
|
|
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 6
|
|
#define FVector2D FVector2f
|
|
#endif
|
|
|
|
void FNGABPGraphConnectionDrawingPolicy::DrawPreviewConnector(const FGeometry& PinGeometry, const FVector2D& StartPoint, const FVector2D& EndPoint, UEdGraphPin* Pin)
|
|
{
|
|
OverrideDrawPreviewConnector(PinGeometry, StartPoint, EndPoint, Pin);
|
|
}
|
|
|
|
|
|
void FNGABPGraphConnectionDrawingPolicy::Draw(TMap<TSharedRef<SWidget>, FArrangedWidget>& InPinGeometries, FArrangedChildren& ArrangedNodes)
|
|
{
|
|
ResetPayloadData();
|
|
FKismetConnectionDrawingPolicy::Draw(InPinGeometries, ArrangedNodes);
|
|
OverrideDraw(InPinGeometries, ArrangedNodes);
|
|
}
|
|
|
|
|
|
void FNGABPGraphConnectionDrawingPolicy::DrawConnection(int32 LayerId, const FVector2D& Start, const FVector2D& End, const FConnectionParams& Params)
|
|
{
|
|
OverrideDrawConnection(LayerId, Start, End, Params);
|
|
}
|
|
|
|
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 6
|
|
#undef FVector2D
|
|
#endif
|