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

UCLASS() More...

#include <DialogueGraphSchema.h>

Inheritance diagram for UDialogueGraphSchema:
[legend]

Public Member Functions

void BreakLinkTo (UEdGraphPin *TargetPin, UEdGraphPin *ToPin, bool bSendsNodeNotifcation) const
 
void BreakNodeLinks (UEdGraphNode &TargetNode) const override
 
void BreakPinLinks (UEdGraphPin &TargetPin, bool bSendsNodeNotifcation) const override
 
void BreakSinglePinLink (UEdGraphPin *SourcePin, UEdGraphPin *TargetPin) const override
 
const FPinConnectionResponse CanCreateConnection (const UEdGraphPin *PinA, const UEdGraphPin *PinB) const override
 
bool ConnectionCausesLoop (const UEdGraphPin *InputPin, const UEdGraphPin *OutputPin) const
 
FPinConnectionResponse CopyPinLinks (UEdGraphPin &CopyFromPin, UEdGraphPin &CopyToPin, bool bIsIntermediateCopy=false) const override
 
bool CreateAutomaticConversionNodeAndConnections (UEdGraphPin *PinA, UEdGraphPin *PinB) const override
 
FConnectionDrawingPolicyCreateConnectionDrawingPolicy (int32 InBackLayerID, int32 InFrontLayerID, float InZoomFactor, const FSlateRect &InClippingRect, FSlateWindowElementList &InDrawElements, UEdGraph *InGraphObj) const override
 
void CreateDefaultNodesForGraph (UEdGraph &Graph) const override
 
void DroppedAssetsOnGraph (const TArray< FAssetData > &Assets, const FVector2D &GraphPosition, UEdGraph *Graph) const override
 
void DroppedAssetsOnNode (const TArray< FAssetData > &Assets, const FVector2D &GraphPosition, UEdGraphNode *Node) const override
 
void GetContextMenuActions (const UEdGraph *CurrentGraph, const UEdGraphNode *InGraphNode, const UEdGraphPin *InGraphPin, FMenuBuilder *MenuBuilder, bool bIsDebugging) const override
 
TSharedPtr< FEdGraphSchemaActionGetCreateCommentAction () const override
 
void GetGraphContextActions (FGraphContextMenuBuilder &ContextMenuBuilder) const override
 
int32 GetNodeSelectionCount (const UEdGraph *Graph) const override
 
void GetPaletteActions (FGraphActionMenuBuilder &ActionMenuBuilder) const
 
FPinConnectionResponse MovePinLinks (UEdGraphPin &MoveFromPin, UEdGraphPin &MoveToPin, bool bIsIntermediateMove=false, bool bNotifyLinkedNodes=false) const override
 
bool ShouldAlwaysPurgeOnModification () const override
 
bool ShouldHidePinDefaultValue (UEdGraphPin *Pin) const override
 
bool TryCreateConnection (UEdGraphPin *PinA, UEdGraphPin *PinB) const override
 

Static Public Attributes

static const FText NODE_CATEGORY_Convert
 
static const FText NODE_CATEGORY_Dialogue
 
static const FText NODE_CATEGORY_Graph
 
static const FName PIN_CATEGORY_Input
 
static const FName PIN_CATEGORY_Output
 

Private Member Functions

 GENERATED_BODY ()
 
void GetAllDialogueNodeActions (FGraphActionMenuBuilder &ActionMenuBuilder) const
 
void GetCommentAction (FGraphActionMenuBuilder &ActionMenuBuilder, const UEdGraph *CurrentGraph=nullptr) const
 
void GetConvertActions (FGraphActionMenuBuilder &ActionMenuBuilder, const UEdGraph *CurrentGraph) const
 

Static Private Member Functions

static void InitDialogueNodeClasses ()
 

Static Private Attributes

static bool bDialogueNodeClassesInitialized = false
 
static TArray< TSubclassOf< UDlgNode > > DialogueNodeClasses
 

Detailed Description

UCLASS()

Definition at line 24 of file DialogueGraphSchema.h.

Member Function Documentation

◆ BreakLinkTo()

void UDialogueGraphSchema::BreakLinkTo ( UEdGraphPin * TargetPin,
UEdGraphPin * ToPin,
bool bSendsNodeNotifcation ) const

Breaks all links from/to a single pin

Parameters
FromPinThe pin to break links from
ToPinThe pin we are breaking links to
bSendsNodeNotifcationwhether to send a notification to the node post pin connection change

Definition at line 379 of file DialogueGraphSchema.cpp.

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

◆ BreakNodeLinks()

void UDialogueGraphSchema::BreakNodeLinks ( UEdGraphNode & TargetNode) const
override

Breaks all links from/to a single node

Parameters
TargetNodeThe node to break links on

Definition at line 305 of file DialogueGraphSchema.cpp.

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

◆ BreakPinLinks()

void UDialogueGraphSchema::BreakPinLinks ( UEdGraphPin & TargetPin,
bool bSendsNodeNotifcation ) const
override

Breaks all links from/to a single pin

Parameters
TargetPinThe pin to break links on
bSendsNodeNotifcationwhether to send a notification to the node post pin connection change

Definition at line 328 of file DialogueGraphSchema.cpp.

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

◆ BreakSinglePinLink()

void UDialogueGraphSchema::BreakSinglePinLink ( UEdGraphPin * SourcePin,
UEdGraphPin * TargetPin ) const
override

Breaks the link between two nodes.

Parameters
SourcePinThe pin where the link begins.
TargetPinThe pin where the link ends.

Definition at line 358 of file DialogueGraphSchema.cpp.

◆ CanCreateConnection()

const FPinConnectionResponse UDialogueGraphSchema::CanCreateConnection ( const UEdGraphPin * PinA,
const UEdGraphPin * PinB ) const
override

Determine if a connection can be created between two pins.

Parameters
PinAThe first pin.
PinBThe second pin.
Returns
An empty string if the connection is legal, otherwise a message describing why the connection would fail.

Definition at line 138 of file DialogueGraphSchema.cpp.

Here is the call graph for this function:

◆ ConnectionCausesLoop()

bool UDialogueGraphSchema::ConnectionCausesLoop ( const UEdGraphPin * InputPin,
const UEdGraphPin * OutputPin ) const

Check whether connecting these pins would cause a loop

Definition at line 42 of file DialogueGraphSchema.cpp.

Here is the caller graph for this function:

◆ CopyPinLinks()

FPinConnectionResponse UDialogueGraphSchema::CopyPinLinks ( UEdGraphPin & CopyFromPin,
UEdGraphPin & CopyToPin,
bool bIsIntermediateCopy = false ) const
override

Copies pin links from one pin to another without breaking the original links

Definition at line 133 of file DialogueGraphSchema.cpp.

◆ CreateAutomaticConversionNodeAndConnections()

bool UDialogueGraphSchema::CreateAutomaticConversionNodeAndConnections ( UEdGraphPin * PinA,
UEdGraphPin * PinB ) const
override

Try to create an automatic cast or other conversion node node to facilitate a connection between two pins. It makes the cast node, a connection between A and the cast node, and a connection from the cast node to B.two This method is called when a connection is made where CanCreateConnection returned bCanAutoConvert.

Parameters
PinAThe first pin.
PinBThe second pin.
Returns
True if a cast node and connection were made; false if the connection failed and had no side effects.

Definition at line 259 of file DialogueGraphSchema.cpp.

Here is the call graph for this function:

◆ CreateConnectionDrawingPolicy()

FConnectionDrawingPolicy * UDialogueGraphSchema::CreateConnectionDrawingPolicy ( int32 InBackLayerID,
int32 InFrontLayerID,
float InZoomFactor,
const FSlateRect & InClippingRect,
FSlateWindowElementList & InDrawElements,
UEdGraph * InGraphObj ) const
inlineoverride

Definition at line 164 of file DialogueGraphSchema.h.

◆ CreateDefaultNodesForGraph()

void UDialogueGraphSchema::CreateDefaultNodesForGraph ( UEdGraph & Graph) const
override

Populate new graph with any default nodes

Parameters
GraphGraph to add the default nodes to

Definition at line 113 of file DialogueGraphSchema.cpp.

Here is the call graph for this function:

◆ DroppedAssetsOnGraph()

void UDialogueGraphSchema::DroppedAssetsOnGraph ( const TArray< FAssetData > & Assets,
const FVector2D & GraphPosition,
UEdGraph * Graph ) const
override

Called when asset(s) are dropped onto the specified node

Definition at line 365 of file DialogueGraphSchema.cpp.

◆ DroppedAssetsOnNode()

void UDialogueGraphSchema::DroppedAssetsOnNode ( const TArray< FAssetData > & Assets,
const FVector2D & GraphPosition,
UEdGraphNode * Node ) const
override

Called when asset(s) are dropped onto the specified node

Definition at line 370 of file DialogueGraphSchema.cpp.

◆ GENERATED_BODY()

UDialogueGraphSchema::GENERATED_BODY ( )
private

◆ GetAllDialogueNodeActions()

void UDialogueGraphSchema::GetAllDialogueNodeActions ( FGraphActionMenuBuilder & ActionMenuBuilder) const
private

Adds actions for creating every type of DialogueNode

Definition at line 477 of file DialogueGraphSchema.cpp.

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

◆ GetCommentAction()

void UDialogueGraphSchema::GetCommentAction ( FGraphActionMenuBuilder & ActionMenuBuilder,
const UEdGraph * CurrentGraph = nullptr ) const
private

Adds action for creating a comment

Definition at line 423 of file DialogueGraphSchema.cpp.

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

◆ GetContextMenuActions()

void UDialogueGraphSchema::GetContextMenuActions ( const UEdGraph * CurrentGraph,
const UEdGraphNode * InGraphNode,
const UEdGraphPin * InGraphPin,
FMenuBuilder * MenuBuilder,
bool bIsDebugging ) const
override

Gets actions that should be added to the right-click context menu for a node or pin

Parameters
MenuThe menu to append actions to.
ContextThe menu's context.

Definition at line 89 of file DialogueGraphSchema.cpp.

Here is the call graph for this function:

◆ GetConvertActions()

void UDialogueGraphSchema::GetConvertActions ( FGraphActionMenuBuilder & ActionMenuBuilder,
const UEdGraph * CurrentGraph ) const
private

Adds conversion actions for differet nodes.

Definition at line 443 of file DialogueGraphSchema.cpp.

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

◆ GetCreateCommentAction()

TSharedPtr< FEdGraphSchemaAction > UDialogueGraphSchema::GetCreateCommentAction ( ) const
inlineoverride

Returns schema action to create comment from implemention

Definition at line 158 of file DialogueGraphSchema.h.

◆ GetGraphContextActions()

void UDialogueGraphSchema::GetGraphContextActions ( FGraphContextMenuBuilder & ContextMenuBuilder) const
override

Get all actions that can be performed when right clicking on a graph or drag-releasing on a graph from a pin

Parameters
[in,out]ContextMenuBuilderThe context (graph, dragged pin, etc...) and output menu builder.

Definition at line 58 of file DialogueGraphSchema.cpp.

Here is the call graph for this function:

◆ GetNodeSelectionCount()

int32 UDialogueGraphSchema::GetNodeSelectionCount ( const UEdGraph * Graph) const
inlineoverride

Returns the currently selected graph node count

Parameters
GraphThe active graph to find the selection count for

Definition at line 149 of file DialogueGraphSchema.h.

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

◆ GetPaletteActions()

void UDialogueGraphSchema::GetPaletteActions ( FGraphActionMenuBuilder & ActionMenuBuilder) const

Helper method to add items valid to the palette list

Definition at line 36 of file DialogueGraphSchema.cpp.

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

◆ InitDialogueNodeClasses()

void UDialogueGraphSchema::InitDialogueNodeClasses ( )
staticprivate

Generates a list of all available UDlgNode classes

Definition at line 519 of file DialogueGraphSchema.cpp.

Here is the caller graph for this function:

◆ MovePinLinks()

FPinConnectionResponse UDialogueGraphSchema::MovePinLinks ( UEdGraphPin & MoveFromPin,
UEdGraphPin & MoveToPin,
bool bIsIntermediateMove = false,
bool bNotifyLinkedNodes = false ) const
override

Break links on this pin and create links instead on MoveToPin

Definition at line 128 of file DialogueGraphSchema.cpp.

◆ ShouldAlwaysPurgeOnModification()

bool UDialogueGraphSchema::ShouldAlwaysPurgeOnModification ( ) const
inlineoverride

When a node is removed, this method determines whether we should remove it immediately or use the old (slower) code path that results in all node being recreated:

Definition at line 155 of file DialogueGraphSchema.h.

◆ ShouldHidePinDefaultValue()

bool UDialogueGraphSchema::ShouldHidePinDefaultValue ( UEdGraphPin * Pin) const
override

If we should disallow viewing and editing of the supplied pin

Definition at line 300 of file DialogueGraphSchema.cpp.

◆ TryCreateConnection()

bool UDialogueGraphSchema::TryCreateConnection ( UEdGraphPin * PinA,
UEdGraphPin * PinB ) const
override

Try to make a connection between two pins.

Parameters
PinAThe first pin.
PinBThe second pin.
Returns
True if a connection was made/broken (graph was modified); false if the connection failed and had no side effects.

Definition at line 204 of file DialogueGraphSchema.cpp.

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

Member Data Documentation

◆ bDialogueNodeClassesInitialized

bool UDialogueGraphSchema::bDialogueNodeClassesInitialized = false
staticprivate

Whether the list of UDlgNode classes has been populated

Definition at line 216 of file DialogueGraphSchema.h.

◆ DialogueNodeClasses

TArray< TSubclassOf< UDlgNode > > UDialogueGraphSchema::DialogueNodeClasses
staticprivate

A list of all available UDlgNode classes

Definition at line 213 of file DialogueGraphSchema.h.

◆ NODE_CATEGORY_Convert

const FText UDialogueGraphSchema::NODE_CATEGORY_Convert
static

Definition at line 209 of file DialogueGraphSchema.h.

◆ NODE_CATEGORY_Dialogue

const FText UDialogueGraphSchema::NODE_CATEGORY_Dialogue
static

Definition at line 207 of file DialogueGraphSchema.h.

◆ NODE_CATEGORY_Graph

const FText UDialogueGraphSchema::NODE_CATEGORY_Graph
static

Definition at line 208 of file DialogueGraphSchema.h.

◆ PIN_CATEGORY_Input

const FName UDialogueGraphSchema::PIN_CATEGORY_Input
static

Definition at line 203 of file DialogueGraphSchema.h.

◆ PIN_CATEGORY_Output

const FName UDialogueGraphSchema::PIN_CATEGORY_Output
static

Definition at line 204 of file DialogueGraphSchema.h.


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