A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
SDialogueGraphNode_Edge Class Reference

#include <SDialogueGraphNode_Edge.h>

Inheritance diagram for SDialogueGraphNode_Edge:
[legend]

Public Member Functions

void Construct (const FArguments &InArgs, UDialogueGraphNode_Base *InNode)
 
void Construct (const FArguments &InArgs, UDialogueGraphNode_Edge *InNode)
 
void CreatePinWidgets () override
 
void CreateStandardPinWidget (UEdGraphPin *Pin) override
 
EVisibility GetNodeVisibility () const override
 
TArray< FOverlayWidgetInfo > GetOverlayWidgets (bool bSelected, const FVector2D &WidgetSize) const override
 
FSlateColor GetTransitionColor () const
 
void MoveTo (const FVector2D &NewPosition, FNodeSet &NodeFilter, bool bMarkDirty=true) override
 
void OnMouseEnter (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override
 
void OnMouseLeave (const FPointerEvent &MouseEvent) override
 
void PerformSecondPassLayout (const TMap< UObject *, TSharedRef< SNode > > &InNodeToWidgetLookup) const override
 
void PositionBetweenTwoNodesWithOffset (const FGeometry &StartGeom, const FGeometry &EndGeom, int32 NodeIndex, int32 MaxNodes) const
 
bool RequiresSecondPassLayout () const override
 
void SetOwner (const TSharedRef< SGraphPanel > &OwnerPanel) override
 
 SLATE_BEGIN_ARGS (Self)
 
 SLATE_BEGIN_ARGS (Self)
 
void UpdateGraphNode () override
 

Protected Member Functions

void AddPin (const TSharedRef< SGraphPin > &PinToAdd) override
 
TSharedPtr< SGraphPinCreatePinWidget (UEdGraphPin *Pin) const override
 
FText GetConditionOverlayTooltipText () const
 
FSlateColor GetOverlayWidgetBackgroundColor (bool bHovered) const
 
EVisibility GetOverlayWidgetVisibility () const
 

Protected Attributes

TSharedPtr< SWidget > ConditionOverlayWidget
 
UDialogueGraphNode_BaseDialogueGraphNode_Base = nullptr
 
UDialogueGraphNode_EdgeDialogueGraphNode_Edge = nullptr
 
TSharedPtr< SVerticalBox > PinsNodeBox
 
const UDlgSystemSettingsSettings = nullptr
 

Private Types

typedef SDialogueGraphNode_Edge Self
 
typedef SDialogueGraphNode_Base Super
 

Private Member Functions

bool IsValidPin (UEdGraphPin *Pin)
 

Detailed Description

Widget for UDialogueGraphNode_Edge

Definition at line 13 of file SDialogueGraphNode_Edge.h.

Member Typedef Documentation

◆ Self

◆ Super

Member Function Documentation

◆ AddPin()

void SDialogueGraphNode_Base::AddPin ( const TSharedRef< SGraphPin > & PinToAdd)
overrideprotectedinherited

Add a new pin to this graph node. The pin must be newly created.

Parameters
PinToAddA new pin to add to this GraphNode.

Definition at line 85 of file SDialogueGraphNode_Base.cpp.

◆ Construct() [1/2]

void SDialogueGraphNode_Base::Construct ( const FArguments & InArgs,
UDialogueGraphNode_Base * InNode )
inherited

Definition at line 16 of file SDialogueGraphNode_Base.cpp.

Here is the caller graph for this function:

◆ Construct() [2/2]

void SDialogueGraphNode_Edge::Construct ( const FArguments & InArgs,
UDialogueGraphNode_Edge * InNode )

Definition at line 18 of file SDialogueGraphNode_Edge.cpp.

Here is the call graph for this function:

◆ CreatePinWidget()

TSharedPtr< SGraphPin > SDialogueGraphNode_Base::CreatePinWidget ( UEdGraphPin * Pin) const
overrideprotectedinherited

Hook that allows derived classes to supply their own SGraphPin derivatives for any pin. Used by CreateStandardPinWidget.

Definition at line 79 of file SDialogueGraphNode_Base.cpp.

◆ CreatePinWidgets()

void SDialogueGraphNode_Base::CreatePinWidgets ( )
overrideinherited

Create the widgets for pins on the node

Definition at line 23 of file SDialogueGraphNode_Base.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateStandardPinWidget()

void SDialogueGraphNode_Base::CreateStandardPinWidget ( UEdGraphPin * Pin)
overrideinherited

Create a single pin widget

Definition at line 45 of file SDialogueGraphNode_Base.cpp.

Here is the caller graph for this function:

◆ GetConditionOverlayTooltipText()

FText SDialogueGraphNode_Edge::GetConditionOverlayTooltipText ( ) const
protected

Gets the tooltip for the condition overlay.

Definition at line 240 of file SDialogueGraphNode_Edge.cpp.

Here is the caller graph for this function:

◆ GetNodeVisibility()

EVisibility SDialogueGraphNode_Edge::GetNodeVisibility ( ) const
inlineoverridevirtual

Is the current node visible?

Reimplemented from SDialogueGraphNode_Base.

Definition at line 67 of file SDialogueGraphNode_Edge.h.

Here is the call graph for this function:

◆ GetOverlayWidgetBackgroundColor()

FSlateColor SDialogueGraphNode_Edge::GetOverlayWidgetBackgroundColor ( bool bHovered) const
inlineprotected

Get the background color to display for the widget overlay. This changes on hover state of sibling nodes

Definition at line 90 of file SDialogueGraphNode_Edge.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetOverlayWidgets()

TArray< FOverlayWidgetInfo > SDialogueGraphNode_Edge::GetOverlayWidgets ( bool bSelected,
const FVector2D & WidgetSize ) const
override

Populate the widgets array with any overlay widgets to render

Definition at line 90 of file SDialogueGraphNode_Edge.cpp.

Here is the call graph for this function:

◆ GetOverlayWidgetVisibility()

EVisibility SDialogueGraphNode_Edge::GetOverlayWidgetVisibility ( ) const
protected

Get the visibility of the overlay widgets.

Definition at line 245 of file SDialogueGraphNode_Edge.cpp.

Here is the caller graph for this function:

◆ GetTransitionColor()

FSlateColor SDialogueGraphNode_Edge::GetTransitionColor ( ) const
inline

Gets the transition color of this node and wire.

Definition at line 78 of file SDialogueGraphNode_Edge.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsValidPin()

bool SDialogueGraphNode_Base::IsValidPin ( UEdGraphPin * Pin)
inlineprivateinherited

Tells us if the provided pin is valid.

Definition at line 61 of file SDialogueGraphNode_Base.h.

Here is the caller graph for this function:

◆ MoveTo()

void SDialogueGraphNode_Edge::MoveTo ( const FVector2D & NewPosition,
FNodeSet & NodeFilter,
bool bMarkDirty = true )
override
Parameters
NewPositionThe Node should be relocated to this position in the graph panel
NodeFilterSet of nodes to prevent movement on, after moving successfully a node is added to this set.

Definition at line 48 of file SDialogueGraphNode_Edge.cpp.

◆ OnMouseEnter()

void SDialogueGraphNode_Edge::OnMouseEnter ( const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent )
override

The system will use this event to notify a widget that the cursor has entered it. This event is uses a custom bubble strategy.

Parameters
MyGeometryThe Geometry of the widget receiving the event
MouseEventInformation about the input event

Definition at line 28 of file SDialogueGraphNode_Edge.cpp.

Here is the call graph for this function:

◆ OnMouseLeave()

void SDialogueGraphNode_Edge::OnMouseLeave ( const FPointerEvent & MouseEvent)
override

The system will use this event to notify a widget that the cursor has left it. This event is uses a custom bubble strategy.

Parameters
MouseEventInformation about the input event

Definition at line 37 of file SDialogueGraphNode_Edge.cpp.

Here is the call graph for this function:

◆ PerformSecondPassLayout()

void SDialogueGraphNode_Edge::PerformSecondPassLayout ( const TMap< UObject *, TSharedRef< SNode > > & InNodeToWidgetLookup) const
override

Performs second pass layout; only called if RequiresSecondPassLayout returned true

Definition at line 54 of file SDialogueGraphNode_Edge.cpp.

Here is the call graph for this function:

◆ PositionBetweenTwoNodesWithOffset()

void SDialogueGraphNode_Edge::PositionBetweenTwoNodesWithOffset ( const FGeometry & StartGeom,
const FGeometry & EndGeom,
int32 NodeIndex,
int32 MaxNodes ) const

Calculate position for multiple nodes to be placed between a start and end point, by providing this nodes index and max expected nodes

Definition at line 195 of file SDialogueGraphNode_Edge.cpp.

Here is the caller graph for this function:

◆ RequiresSecondPassLayout()

bool SDialogueGraphNode_Edge::RequiresSecondPassLayout ( ) const
inlineoverride

Returns true if this node is dependent on the location of other nodes (it can only depend on the location of first-pass only nodes)

Definition at line 52 of file SDialogueGraphNode_Edge.h.

◆ SetOwner()

void SDialogueGraphNode_Base::SetOwner ( const TSharedRef< SGraphPanel > & OwnerPanel)
overrideinherited
Parameters
OwnerPanelThe GraphPanel that this node belongs to

Definition at line 64 of file SDialogueGraphNode_Base.cpp.

Here is the call graph for this function:

◆ SLATE_BEGIN_ARGS() [1/2]

SDialogueGraphNode_Base::SLATE_BEGIN_ARGS ( Self )
inlineinherited

Definition at line 23 of file SDialogueGraphNode_Base.h.

◆ SLATE_BEGIN_ARGS() [2/2]

SDialogueGraphNode_Edge::SLATE_BEGIN_ARGS ( Self )
inline

Definition at line 19 of file SDialogueGraphNode_Edge.h.

◆ UpdateGraphNode()

void SDialogueGraphNode_Edge::UpdateGraphNode ( )
override

Update this GraphNode to match the data that it is observing

Definition at line 114 of file SDialogueGraphNode_Edge.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ ConditionOverlayWidget

TSharedPtr<SWidget> SDialogueGraphNode_Edge::ConditionOverlayWidget
protected

The widget we use to display if the edge has any conditions

Definition at line 100 of file SDialogueGraphNode_Edge.h.

◆ DialogueGraphNode_Base

UDialogueGraphNode_Base* SDialogueGraphNode_Base::DialogueGraphNode_Base = nullptr
protectedinherited

Definition at line 75 of file SDialogueGraphNode_Base.h.

◆ DialogueGraphNode_Edge

UDialogueGraphNode_Edge* SDialogueGraphNode_Edge::DialogueGraphNode_Edge = nullptr
protected

Definition at line 97 of file SDialogueGraphNode_Edge.h.

◆ PinsNodeBox

TSharedPtr<SVerticalBox> SDialogueGraphNode_Base::PinsNodeBox
protectedinherited

The area where output/input pins reside

Definition at line 81 of file SDialogueGraphNode_Base.h.

◆ Settings

const UDlgSystemSettings* SDialogueGraphNode_Base::Settings = nullptr
protectedinherited

Definition at line 78 of file SDialogueGraphNode_Base.h.


The documentation for this class was generated from the following files: