A Demo Project for the UnrealEngineSDK
|
UCLASS() More...
#include <DialogueGraphNode_Edge.h>
Public Member Functions | |
void | AllocateDefaultPins () override |
bool | CanCreateUnderSpecifiedSchema (const UEdGraphSchema *Schema) const override |
bool | CanDuplicateNode () const override |
virtual bool | CanHaveInputConnections () const |
virtual bool | CanHaveOutputConnections () const |
bool | CanSplitPin (const UEdGraphPin *Pin) const override |
bool | CanUserDeleteNode () const override |
virtual void | CheckAll () const |
void | ClearCompilerMessage () |
void | CreateConnections (UDialogueGraphNode *ParentNode, UDialogueGraphNode *ChildNode) |
UDialogueGraphNode * | GetChildNode () const |
UDlgDialogue * | GetDialogue () const |
FDlgEdge & | GetDialogueEdge () |
const FDlgEdge & | GetDialogueEdge () const |
UDialogueGraph * | GetDialogueGraph () const |
const UDialogueGraphSchema * | GetDialogueGraphSchema () const |
FString | GetDocumentationLink () const override |
FLinearColor | GetEdgeColor (bool bIsHovered) const |
FSlateIcon | GetIconAndTint (FLinearColor &OutColor) const override |
UEdGraphPin * | GetInputPin () const |
FLinearColor | GetNodeBackgroundColor () const override |
FText | GetNodeTitle (ENodeTitleType::Type TitleType) const override |
FLinearColor | GetNodeTitleColor () const override |
TSharedPtr< SGraphNode > | GetNodeWidget () const |
UEdGraphPin * | GetOutputPin () const |
UDialogueGraphNode * | GetParentNode () const |
virtual FIntPoint | GetPosition () const |
FText | GetTooltipText () const override |
bool | HasChildNode () const |
bool | HasConditions () const |
bool | HasInputPin () const |
virtual bool | HasOutputConnectionToNode (const UEdGraphNode *TargetNode) const |
bool | HasOutputPin () const |
bool | HasParentNode () const |
bool | IsPrimaryEdge () const |
bool | Modify (bool bAlwaysMarkDirty=true) override |
void | PinConnectionListChanged (UEdGraphPin *Pin) override |
virtual void | PostCopyNode () |
void | PostDuplicate (bool bDuplicateForPIE) override |
void | PostEditChangeProperty (FPropertyChangedEvent &PropertyChangedEvent) override |
void | PostEditImport () override |
void | PostLoad () override |
void | PostPasteNode () override |
void | PostPlacedNewNode () override |
void | PrepareForCopying () override |
void | ReconstructNode () override |
void | RemovePinAt (int32 PinIndex, EEdGraphPinDirection PinDirection) override |
void | SetCompilerWarningMessage (FString Message) |
void | SetDialogueEdge (const FDlgEdge &InEdge) |
void | SetDialogueEdgeTargetIndex (int32 InIndex) |
void | SetDialogueEdgeText (const FText &InText) |
void | SetIsPrimaryEdge (bool bValue) |
virtual void | SetPosition (int32 X, int32 Y) |
bool | ShouldDrawEdge () const |
bool | ShowPaletteIconOnNode () const override |
bool | SuperModify (bool bAlwaysMarkDirty=true) |
Protected Member Functions | |
void | CreateInputPin () override |
void | CreateOutputPin () override |
virtual void | OnDialoguePropertyChanged (const FPropertyChangedEvent &PropertyChangedEvent) |
virtual void | RegisterListeners () |
Static Protected Attributes | |
static constexpr int32 | INDEX_PIN_Input = 0 |
static constexpr int32 | INDEX_PIN_Output = 1 |
Private Member Functions | |
GENERATED_BODY () | |
FDlgEdge * | GetMutableDialogueEdgeFromParentNode () const |
Private Attributes | |
bool | bIsPrimaryEdge = true |
UPROPERTY() | |
FDlgEdge | DialogueEdge |
UPROPERTY(EditAnywhere, Category = DialogueGraphNode, Meta = (ShowOnlyInnerProperties)) | |
UCLASS()
Represents the graph node for edges, corresponds to the runtime FDlgEdge. Allows us to have selectable edges. This class has an additional constraint over the base class UDialogueGraphNode_Base such that the input and output pin have only one connection (aka Pin.LinkedTo.Num() == 1 at all times) otherwise this does not make sense to simulate an Edge.
Definition at line 21 of file DialogueGraphNode_Edge.h.
|
override |
Allocate default pins for a given node, based only the NodeType, which should already be filled in.
Definition at line 56 of file DialogueGraphNode_Edge.cpp.
|
inlineoverrideinherited |
Determine if this node can be created under the specified schema
Definition at line 79 of file DialogueGraphNode_Base.h.
|
inlineoverrideinherited |
Whether or not this node can be safely duplicated (via copy/paste, etc...) in the graph
Definition at line 64 of file DialogueGraphNode_Base.h.
|
inlinevirtualinherited |
Checks whether an input connection can be added to this node
Reimplemented in UDialogueGraphNode.
Definition at line 112 of file DialogueGraphNode_Base.h.
|
inlinevirtualinherited |
Checks whether an output connection can be added from this node
Reimplemented in UDialogueGraphNode.
Definition at line 115 of file DialogueGraphNode_Base.h.
|
inlineoverrideinherited |
Whether or not struct pins belonging to this node should be allowed to be split or not.
Definition at line 76 of file DialogueGraphNode_Base.h.
|
inlineoverrideinherited |
Whether or not this node can be deleted by user action
Definition at line 67 of file DialogueGraphNode_Base.h.
|
inlinevirtualinherited |
Performs all checks
Reimplemented in UDialogueGraphNode.
Definition at line 121 of file DialogueGraphNode_Base.h.
|
inherited |
Clears the compiler messages on this node.
Definition at line 126 of file DialogueGraphNode_Base.cpp.
void UDialogueGraphNode_Edge::CreateConnections | ( | UDialogueGraphNode * | ParentNode, |
UDialogueGraphNode * | ChildNode ) |
Creates a connection between the two provided nodes
Definition at line 141 of file DialogueGraphNode_Edge.cpp.
|
inlineoverrideprotectedvirtual |
Creates the input pin for this node.
Reimplemented from UDialogueGraphNode_Base.
Definition at line 177 of file DialogueGraphNode_Edge.h.
|
inlineoverrideprotectedvirtual |
Creates the output pin for this node.
Reimplemented from UDialogueGraphNode_Base.
Definition at line 187 of file DialogueGraphNode_Edge.h.
|
private |
|
inline |
Gets the child node that is connected from the output pin.
Definition at line 114 of file DialogueGraphNode_Edge.h.
|
inlineinherited |
Definition at line 178 of file DialogueGraphNode_Base.h.
|
inline |
Definition at line 126 of file DialogueGraphNode_Edge.h.
|
inline |
Gets the corresponding Dialogue Edge of this Node as a const.
Definition at line 125 of file DialogueGraphNode_Edge.h.
|
inlineinherited |
Definition at line 175 of file DialogueGraphNode_Base.h.
|
inlineinherited |
Helper method to get directly the Dialogue Graph Schema
Definition at line 182 of file DialogueGraphNode_Base.h.
|
inlineoverrideinherited |
Returns the link used for external documentation for the graph node.
Definition at line 85 of file DialogueGraphNode_Base.h.
FLinearColor UDialogueGraphNode_Edge::GetEdgeColor | ( | bool | bIsHovered | ) | const |
Gets the current edge color.
Definition at line 178 of file DialogueGraphNode_Edge.cpp.
|
inlineoverride |
Definition at line 68 of file DialogueGraphNode_Edge.h.
|
inlineinherited |
Definition at line 161 of file DialogueGraphNode_Base.h.
|
private |
Gets the corresponding FDlgEdge that this Node actually represents from the ParentNode
Definition at line 202 of file DialogueGraphNode_Edge.cpp.
|
inlineoverridevirtual |
Gets the background color of this node.
Reimplemented from UDialogueGraphNode_Base.
Definition at line 77 of file DialogueGraphNode_Edge.h.
|
override |
Gets the name of this node, shown in title bar
Definition at line 63 of file DialogueGraphNode_Edge.cpp.
|
inlineoverrideinherited |
Gets the draw color of a node's title bar.
Definition at line 91 of file DialogueGraphNode_Base.h.
|
inlineinherited |
Widget representing this node if it exists
Definition at line 185 of file DialogueGraphNode_Base.h.
|
inlineinherited |
Definition at line 168 of file DialogueGraphNode_Base.h.
|
inline |
Gets the parent node that is connected to the input pin.
Definition at line 107 of file DialogueGraphNode_Edge.h.
|
inlinevirtualinherited |
Gets the position in the Graph canvas of this node.
Definition at line 130 of file DialogueGraphNode_Base.h.
|
override |
Gets the tooltip to display when over the node
Definition at line 68 of file DialogueGraphNode_Edge.cpp.
|
inline |
Does this edge has a child edge?
Definition at line 94 of file DialogueGraphNode_Edge.h.
|
inline |
Tells us if this edge has any conditions set.
Definition at line 141 of file DialogueGraphNode_Edge.h.
|
inlineinherited |
Is the Input pin initialized?
Definition at line 147 of file DialogueGraphNode_Base.h.
|
virtualinherited |
Checks if this node has a output connection to the TargetNode.
Reimplemented in UDialogueGraphNode.
Definition at line 113 of file DialogueGraphNode_Base.cpp.
|
inlineinherited |
Is the Output pin initialized?
Definition at line 154 of file DialogueGraphNode_Base.h.
|
inline |
Does this edge have a parent node?
Definition at line 81 of file DialogueGraphNode_Edge.h.
|
inline |
Is this node a primary edge?
Definition at line 147 of file DialogueGraphNode_Edge.h.
Note that the object will be modified. If we are currently recording into the transaction buffer (undo/redo), save a copy of this object into the buffer and marks the package as needing to be saved.
bAlwaysMarkDirty | if true, marks the package dirty even if we aren't currently recording an active undo/redo transaction |
Definition at line 35 of file DialogueGraphNode_Edge.cpp.
|
inlineprotectedvirtualinherited |
This function is called after one of the properties of the Dialogue are changed.
Reimplemented in UDialogueGraphNode_Root.
Definition at line 196 of file DialogueGraphNode_Base.h.
|
override |
Called when the connection list of one of the pins of this node is changed in the editor
Definition at line 75 of file DialogueGraphNode_Edge.cpp.
|
inlinevirtualinherited |
Perform any fixups (deep copies of associated data, etc...) necessary after a node has been copied in the editor.
Reimplemented in UDialogueGraphNode.
Definition at line 106 of file DialogueGraphNode_Base.h.
|
overrideinherited |
Called after duplication & serialization and before PostLoad. Used to e.g. make sure UStaticMesh's UModel gets copied as well. Note: NOT called on components on actor duplication (alt-drag or copy-paste). Use PostEditImport as well to cover that case.
Definition at line 14 of file DialogueGraphNode_Base.cpp.
|
override |
Called when a property on this object has been modified externally
PropertyChangedEvent | the property that was modified |
Definition at line 10 of file DialogueGraphNode_Edge.cpp.
|
overrideinherited |
Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization
Definition at line 24 of file DialogueGraphNode_Base.cpp.
|
overrideinherited |
Do any object-specific cleanup required immediately after loading an object, and immediately after any undo/redo.
Definition at line 8 of file DialogueGraphNode_Base.cpp.
|
override |
Perform any fixups (deep copies of associated data, etc...) necessary after a node has been pasted in the editor
Definition at line 122 of file DialogueGraphNode_Edge.cpp.
|
inlineoverrideinherited |
A chance to initialize a new node; called just once when a new node is created, before AutowireNewNode or AllocateDefaultPins is called. This method is not called when a node is reconstructed, etc...
Definition at line 55 of file DialogueGraphNode_Base.h.
|
inlineoverrideinherited |
Perform any steps necessary prior to copying a node into the paste buffer
Definition at line 70 of file DialogueGraphNode_Base.h.
|
overrideinherited |
Refresh the connectors on a node, preserving as many connections as it can.
Definition at line 43 of file DialogueGraphNode_Base.cpp.
|
protectedvirtualinherited |
Registers all the listener this class listens to.
Reimplemented in UDialogueGraphNode.
Definition at line 140 of file DialogueGraphNode_Base.cpp.
|
inlineoverrideinherited |
IGNORED. Removes the specified pin from the node, preserving remaining pin ordering.
Definition at line 73 of file DialogueGraphNode_Base.h.
|
inherited |
Sets a compiler message of type warning.
Definition at line 133 of file DialogueGraphNode_Base.cpp.
|
inline |
Sets the corresponding Dialogue Edge of this Node.
Definition at line 129 of file DialogueGraphNode_Edge.h.
|
inline |
Sets the DialogueEdge.TargetIndex
Definition at line 132 of file DialogueGraphNode_Edge.h.
|
inline |
Sets the DialogueEdge.Text
Definition at line 135 of file DialogueGraphNode_Edge.h.
|
inline |
Sets the primary edge status of this Node.
Definition at line 150 of file DialogueGraphNode_Edge.h.
|
inlinevirtualinherited |
Sets the position in the Graph canvas of this node.
Definition at line 133 of file DialogueGraphNode_Base.h.
|
inline |
Should this edge be drawn?
Definition at line 153 of file DialogueGraphNode_Edge.h.
|
inlineoverrideinherited |
Should we show the Palette Icon for this node on the node title
Definition at line 88 of file DialogueGraphNode_Base.h.
Same as the above method but it only calls the base class. Useful to not make an infinite loop when Modify is called from the ParentNode
Definition at line 49 of file DialogueGraphNode_Edge.h.
|
private |
UPROPERTY()
Is this a primary edge? Aka does this edge lead to a unique path to the ChildNode. This is only set after the graph is compiled.
Definition at line 216 of file DialogueGraphNode_Edge.h.
|
privateEditAnywhere |
UPROPERTY(EditAnywhere, Category = DialogueGraphNode, Meta = (ShowOnlyInnerProperties))
The copy Dialogue Edge corresponding to this graph node. This belongs to the the Node of the Input Pin (GetParentNode)
Definition at line 207 of file DialogueGraphNode_Edge.h.
|
staticconstexprprotectedinherited |
Definition at line 203 of file DialogueGraphNode_Base.h.
|
staticconstexprprotectedinherited |
Definition at line 204 of file DialogueGraphNode_Base.h.