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

#include <SDialogueGraphNode.h>

Inheritance diagram for SDialogueGraphNode:
[legend]

Public Member Functions

void Construct (const FArguments &InArgs, UDialogueGraphNode *InNode)
 
void Construct (const FArguments &InArgs, UDialogueGraphNode_Base *InNode)
 
void CreatePinWidgets () override
 
void CreateStandardPinWidget (UEdGraphPin *Pin) override
 
EVisibility GetNodeVisibility () const override
 
void GetOverlayBrushes (bool bSelected, const FVector2D WidgetSize, TArray< FOverlayBrushInfo > &Brushes) const override
 
TArray< FOverlayWidgetInfo > GetOverlayWidgets (bool bSelected, const FVector2D &WidgetSize) const override
 
void OnDragEnter (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override
 
void OnDragLeave (const FDragDropEvent &DragDropEvent) override
 
FReply OnDragOver (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override
 
FReply OnDrop (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override
 
FReply OnMouseButtonDoubleClick (const FGeometry &InMyGeometry, const FPointerEvent &InMouseEvent) override
 
FReply OnMouseMove (const FGeometry &SenderGeometry, const FPointerEvent &MouseEvent) 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
 
FSlateColor GetBackgroundColor () const
 
FSlateColor GetCommentColor () const override
 
TSharedPtr< SToolTip > GetComplexTooltip () override
 
FText GetConditionOverlayTooltipText () const
 
FText GetDescription () const
 
FText GetDescriptionForSpeechSequenceEntryAt (int32 SpeechEntryIndex) const
 
EVisibility GetDescriptionVisibility () const
 
TSharedRef< SWidget > GetDescriptionWidget ()
 
FText GetEventOverlayTooltipText () const
 
FText GetGenericOverlayTooltipText () const
 
FText GetIndexOverlayTooltipText () const
 
FText GetIndexText () const
 
TSharedRef< SWidget > GetNodeBodyWidget ()
 
FSlateColor GetOverlayWidgetBackgroundColor (bool bHovered) const
 
EVisibility GetOverlayWidgetVisibility () const
 
FText GetSpeakerForSpeechSequenceEntryAt (int32 SpeechEntryIndex) const
 
const TArray< FDlgSpeechSequenceEntry > & GetSpeechSequenceEntries () const
 
TSharedRef< SWidget > GetTitleWidget ()
 
FText GetVoiceOverlayTooltipText () const
 
void OnIndexHoverStateChanged (bool bHovered)
 
void PopulateMetaTag (class FGraphNodeMetaData *TagMeta) const override
 
bool UseLowDetailNodeTitles () const override
 

Protected Attributes

TSharedPtr< SWidget > ConditionOverlayWidget
 
TSharedPtr< SWidget > DescriptionWidget
 
UDialogueGraphNodeDialogueGraphNode = nullptr
 
UDialogueGraphNode_BaseDialogueGraphNode_Base = nullptr
 
TSharedPtr< SWidget > EventOverlayWidget
 
TSharedPtr< SWidget > GenericOverlayWidget
 
TSharedPtr< SWidget > IndexOverlayWidget
 
TSharedPtr< SBorderNodeBodyWidget
 
TSharedPtr< SVerticalBox > PinsNodeBox
 
const UDlgSystemSettingsSettings = nullptr
 
TSharedPtr< SWidget > TitleWidget
 
TSharedPtr< SWidget > VoiceOverlayWidget
 

Private Types

typedef SDialogueGraphNode Self
 
typedef SDialogueGraphNode_Base Super
 

Private Member Functions

bool IsValidPin (UEdGraphPin *Pin)
 

Detailed Description

Widget for UDialogueGraphNode

Definition at line 18 of file SDialogueGraphNode.h.

Member Typedef Documentation

◆ Self

Definition at line 21 of file SDialogueGraphNode.h.

◆ Super

Definition at line 20 of file SDialogueGraphNode.h.

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::Construct ( const FArguments & InArgs,
UDialogueGraphNode * InNode )

Definition at line 22 of file SDialogueGraphNode.cpp.

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

◆ Construct() [2/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:

◆ 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:

◆ GetBackgroundColor()

FSlateColor SDialogueGraphNode::GetBackgroundColor ( ) const
inlineprotected

Definition at line 116 of file SDialogueGraphNode.h.

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

◆ GetCommentColor()

FSlateColor SDialogueGraphNode::GetCommentColor ( ) const
inlineoverrideprotected

Return the desired comment bubble color

Definition at line 97 of file SDialogueGraphNode.h.

Here is the call graph for this function:

◆ GetComplexTooltip()

TSharedPtr< SToolTip > SDialogueGraphNode::GetComplexTooltip ( )
inlineoverrideprotected

Override this to provide support for an 'expensive' tooltip widget that is only built on demand

Definition at line 83 of file SDialogueGraphNode.h.

◆ GetConditionOverlayTooltipText()

FText SDialogueGraphNode::GetConditionOverlayTooltipText ( ) const
protected

Gets the tooltip for the condition overelay.

Definition at line 521 of file SDialogueGraphNode.cpp.

Here is the caller graph for this function:

◆ GetDescription()

FText SDialogueGraphNode::GetDescription ( ) const
inlineprotected

Definition at line 119 of file SDialogueGraphNode.h.

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

◆ GetDescriptionForSpeechSequenceEntryAt()

FText SDialogueGraphNode::GetDescriptionForSpeechSequenceEntryAt ( int32 SpeechEntryIndex) const
inlineprotected

Definition at line 136 of file SDialogueGraphNode.h.

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

◆ GetDescriptionVisibility()

EVisibility SDialogueGraphNode::GetDescriptionVisibility ( ) const
inlineprotected

Definition at line 158 of file SDialogueGraphNode.h.

Here is the caller graph for this function:

◆ GetDescriptionWidget()

TSharedRef< SWidget > SDialogueGraphNode::GetDescriptionWidget ( )
protected

Gets the actual description widget to display

Definition at line 437 of file SDialogueGraphNode.cpp.

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

◆ GetEventOverlayTooltipText()

FText SDialogueGraphNode::GetEventOverlayTooltipText ( ) const
protected

Gets the tooltip for the event overlay.

Definition at line 526 of file SDialogueGraphNode.cpp.

Here is the caller graph for this function:

◆ GetGenericOverlayTooltipText()

FText SDialogueGraphNode::GetGenericOverlayTooltipText ( ) const
protected

Gets the tooltip for the voice overlay.

Definition at line 536 of file SDialogueGraphNode.cpp.

Here is the caller graph for this function:

◆ GetIndexOverlayTooltipText()

FText SDialogueGraphNode::GetIndexOverlayTooltipText ( ) const
protected

Gets the tooltip for the index overlay

Definition at line 516 of file SDialogueGraphNode.cpp.

Here is the caller graph for this function:

◆ GetIndexText()

FText SDialogueGraphNode::GetIndexText ( ) const
inlineprotected

Gets the text to display in the index overlay

Definition at line 166 of file SDialogueGraphNode.h.

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

◆ GetNodeBodyWidget()

TSharedRef< SWidget > SDialogueGraphNode::GetNodeBodyWidget ( )
protected

Gets/Creates the inner node content area. Used by UpdateGraphNode()

Definition at line 287 of file SDialogueGraphNode.cpp.

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

◆ GetNodeVisibility()

EVisibility SDialogueGraphNode::GetNodeVisibility ( ) const
inlineoverridevirtual

Is the current node visible?

Reimplemented from SDialogueGraphNode_Base.

Definition at line 71 of file SDialogueGraphNode.h.

Here is the call graph for this function:

◆ GetOverlayBrushes()

void SDialogueGraphNode::GetOverlayBrushes ( bool bSelected,
const FVector2D WidgetSize,
TArray< FOverlayBrushInfo > & Brushes ) const
override

Populate the brushes array with any overlay brushes to render

Definition at line 114 of file SDialogueGraphNode.cpp.

◆ GetOverlayWidgetBackgroundColor()

FSlateColor SDialogueGraphNode::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 187 of file SDialogueGraphNode.h.

Here is the caller graph for this function:

◆ GetOverlayWidgets()

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

Populate the widgets array with any overlay widgets to render

Definition at line 49 of file SDialogueGraphNode.cpp.

Here is the call graph for this function:

◆ GetOverlayWidgetVisibility()

EVisibility SDialogueGraphNode::GetOverlayWidgetVisibility ( ) const
protected

Get the visibility of the overlay widgets.

Definition at line 502 of file SDialogueGraphNode.cpp.

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

◆ GetSpeakerForSpeechSequenceEntryAt()

FText SDialogueGraphNode::GetSpeakerForSpeechSequenceEntryAt ( int32 SpeechEntryIndex) const
inlineprotected

Definition at line 147 of file SDialogueGraphNode.h.

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

◆ GetSpeechSequenceEntries()

const TArray< FDlgSpeechSequenceEntry > & SDialogueGraphNode::GetSpeechSequenceEntries ( ) const
inlineprotected

Definition at line 130 of file SDialogueGraphNode.h.

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

◆ GetTitleWidget()

TSharedRef< SWidget > SDialogueGraphNode::GetTitleWidget ( )
protected

Gets the actual title widget to display

Definition at line 332 of file SDialogueGraphNode.cpp.

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

◆ GetVoiceOverlayTooltipText()

FText SDialogueGraphNode::GetVoiceOverlayTooltipText ( ) const
protected

Gets the tooltip for the voice overlay.

Definition at line 531 of file SDialogueGraphNode.cpp.

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:

◆ OnDragEnter()

void SDialogueGraphNode::OnDragEnter ( const FGeometry & MyGeometry,
const FDragDropEvent & DragDropEvent )
inlineoverride

Definition at line 30 of file SDialogueGraphNode.h.

◆ OnDragLeave()

void SDialogueGraphNode::OnDragLeave ( const FDragDropEvent & DragDropEvent)
inlineoverride

Definition at line 34 of file SDialogueGraphNode.h.

◆ OnDragOver()

FReply SDialogueGraphNode::OnDragOver ( const FGeometry & MyGeometry,
const FDragDropEvent & DragDropEvent )
inlineoverride

Definition at line 39 of file SDialogueGraphNode.h.

◆ OnDrop()

FReply SDialogueGraphNode::OnDrop ( const FGeometry & MyGeometry,
const FDragDropEvent & DragDropEvent )
override

Definition at line 31 of file SDialogueGraphNode.cpp.

◆ OnIndexHoverStateChanged()

void SDialogueGraphNode::OnIndexHoverStateChanged ( bool bHovered)
protected

Handle hover state changing for the index widget - we use this to highlight sibling nodes

Definition at line 541 of file SDialogueGraphNode.cpp.

Here is the caller graph for this function:

◆ OnMouseButtonDoubleClick()

FReply SDialogueGraphNode::OnMouseButtonDoubleClick ( const FGeometry & InMyGeometry,
const FPointerEvent & InMouseEvent )
inlineoverride

Definition at line 45 of file SDialogueGraphNode.h.

◆ OnMouseMove()

FReply SDialogueGraphNode::OnMouseMove ( const FGeometry & SenderGeometry,
const FPointerEvent & MouseEvent )
inlineoverride

Definition at line 49 of file SDialogueGraphNode.h.

◆ PopulateMetaTag()

void SDialogueGraphNode::PopulateMetaTag ( class FGraphNodeMetaData * TagMeta) const
inlineoverrideprotected

Definition at line 100 of file SDialogueGraphNode.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::SLATE_BEGIN_ARGS ( Self )
inline

Definition at line 24 of file SDialogueGraphNode.h.

◆ SLATE_BEGIN_ARGS() [2/2]

SDialogueGraphNode_Base::SLATE_BEGIN_ARGS ( Self )
inlineinherited

Definition at line 23 of file SDialogueGraphNode_Base.h.

◆ UpdateGraphNode()

void SDialogueGraphNode::UpdateGraphNode ( )
override

Update this GraphNode to match the data that it is observing

Definition at line 124 of file SDialogueGraphNode.cpp.

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

◆ UseLowDetailNodeTitles()

bool SDialogueGraphNode::UseLowDetailNodeTitles ( ) const
inlineoverrideprotected

Should we use low-detail node titles? Used by UpdateGraphNode()

Definition at line 86 of file SDialogueGraphNode.h.

Here is the caller graph for this function:

Member Data Documentation

◆ ConditionOverlayWidget

TSharedPtr<SWidget> SDialogueGraphNode::ConditionOverlayWidget
protected

The widget we use to display if the node has any enter conditions

Definition at line 214 of file SDialogueGraphNode.h.

◆ DescriptionWidget

TSharedPtr<SWidget> SDialogueGraphNode::DescriptionWidget
protected

The widget that hold the description text

Definition at line 208 of file SDialogueGraphNode.h.

◆ DialogueGraphNode

UDialogueGraphNode* SDialogueGraphNode::DialogueGraphNode = nullptr
protected

Definition at line 199 of file SDialogueGraphNode.h.

◆ DialogueGraphNode_Base

UDialogueGraphNode_Base* SDialogueGraphNode_Base::DialogueGraphNode_Base = nullptr
protectedinherited

Definition at line 75 of file SDialogueGraphNode_Base.h.

◆ EventOverlayWidget

TSharedPtr<SWidget> SDialogueGraphNode::EventOverlayWidget
protected

The widget we use to display if the node has any enter events

Definition at line 217 of file SDialogueGraphNode.h.

◆ GenericOverlayWidget

TSharedPtr<SWidget> SDialogueGraphNode::GenericOverlayWidget
protected

The widget we use to display if the node has the GenericData variable set

Definition at line 223 of file SDialogueGraphNode.h.

◆ IndexOverlayWidget

TSharedPtr<SWidget> SDialogueGraphNode::IndexOverlayWidget
protected

The widget we use to display the index of the node

Definition at line 211 of file SDialogueGraphNode.h.

◆ NodeBodyWidget

TSharedPtr<SBorder> SDialogueGraphNode::NodeBodyWidget
protected

The node body widget, cached here so we can determine its size when we want ot position our overlays

Definition at line 202 of file SDialogueGraphNode.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.

◆ TitleWidget

TSharedPtr<SWidget> SDialogueGraphNode::TitleWidget
protected

The widget that holds the title section

Definition at line 205 of file SDialogueGraphNode.h.

◆ VoiceOverlayWidget

TSharedPtr<SWidget> SDialogueGraphNode::VoiceOverlayWidget
protected

The widget we use to display if the node has voice/sound variables set

Definition at line 220 of file SDialogueGraphNode.h.


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