ExtDependencyViewerSchema.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2017-2021 marynate. All Rights Reserved.
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. #include "UObject/ObjectMacros.h"
  5. #include "EdGraph/EdGraphSchema.h"
  6. #include "ExtDependencyViewerSchema.generated.h"
  7. class UToolMenu;
  8. class FSlateRect;
  9. class UEdGraph;
  10. UCLASS(MinimalAPI)
  11. class UExtDependencyViewerSchema : public UEdGraphSchema
  12. {
  13. GENERATED_UCLASS_BODY()
  14. public:
  15. // UEdGraphSchema interface
  16. virtual void GetContextMenuActions(class UToolMenu* Menu, class UGraphNodeContextMenuContext* Context) const override;
  17. virtual FLinearColor GetPinTypeColor(const FEdGraphPinType& PinType) const override;
  18. virtual void BreakPinLinks(UEdGraphPin& TargetPin, bool bSendsNodeNotifcation) const override;
  19. virtual void BreakSinglePinLink(UEdGraphPin* SourcePin, UEdGraphPin* TargetPin) const override;
  20. virtual FPinConnectionResponse MovePinLinks(UEdGraphPin& MoveFromPin, UEdGraphPin& MoveToPin, bool bIsIntermediateMove = false, bool bNotifyLinkedNodes = false) const override;
  21. virtual FPinConnectionResponse CopyPinLinks(UEdGraphPin& CopyFromPin, UEdGraphPin& CopyToPin, bool bIsIntermediateCopy = false) const override;
  22. virtual class FConnectionDrawingPolicy* CreateConnectionDrawingPolicy(int32 InBackLayerID, int32 InFrontLayerID, float InZoomFactor, const FSlateRect& InClippingRect, class FSlateWindowElementList& InDrawElements, class UEdGraph* InGraphObj) const override;
  23. virtual void GetAssetsGraphHoverMessage(const TArray<FAssetData>& Assets, const UEdGraph* HoverGraph, FString& OutTooltipText, bool& OutOkIcon) const override;
  24. // End of UEdGraphSchema interface
  25. private:
  26. /** Constructs the sub-menu for Make Collection With */
  27. void GetMakeCollectionWithSubMenu(UToolMenu* Menu);
  28. /** Constructs the sub-menu for Make Collection With Referencers/Dependencies */
  29. void GetMakeCollectionWithReferencersOrDependenciesSubMenu(UToolMenu* Menu, bool bReferencers);
  30. };