Files
UnrealEngineUWP/Engine/Source/Editor/GraphEditor/Private/SGraphNodeKnot.h
Ben Cosh 8f104b0dfd Modified the comment bubbles on SGraphNodeKnot to display on node hover.
#UE-2353 - Feature Request: BP: Allow users to hide comments on nodes
#Branch UE4
#Proj GraphEditor

[CL 2350119 by Ben Cosh in Main branch]
2014-11-05 13:10:16 -05:00

40 lines
1.1 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SGraphNodeDefault.h"
#include "K2Node_Knot.h"
class SCommentBubble;
class SGraphNodeKnot : public SGraphNodeDefault
{
public:
SLATE_BEGIN_ARGS(SGraphNodeKnot) {}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, class UK2Node_Knot* InKnot);
// SGraphNode interface
virtual void UpdateGraphNode() override;
virtual const FSlateBrush* GetShadowBrush(bool bSelected) const override;
virtual TSharedPtr<SGraphPin> CreatePinWidget(UEdGraphPin* Pin) const override;
virtual void AddPin(const TSharedRef<SGraphPin>& PinToAdd) override;
virtual void RequestRenameOnSpawn() override { }
// End of SGraphNode interface
// SWidget interface
virtual void OnMouseEnter( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent ) override;
virtual void OnMouseLeave( const FPointerEvent& MouseEvent ) override;
// End of SWidget interface
/** Returns Offset to center comment on the node's only pin */
FVector2D GetCommentOffset() const;
protected:
/** SharedPtr to comment bubble */
TSharedPtr<SCommentBubble> CommentBubble;
};