A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
ConvertSpeechNodesToSpeechSequence_DialogueGraphSchemaAction.h
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2#pragma once
3
4#include "EdGraph/EdGraphSchema.h"
5#include "Templates/SubclassOf.h"
6
7#include "ConvertSpeechNodesToSpeechSequence_DialogueGraphSchemaAction.generated.h"
8
10class UEdGraph;
11
16USTRUCT()
18{
19 GENERATED_USTRUCT_BODY();
20
22 FConvertSpeechNodesToSpeechSequence_DialogueGraphSchemaAction(const TArray<UDialogueGraphNode*>& InSelectedGraphNodes)
23 : FEdGraphSchemaAction(), SelectedGraphNodes(InSelectedGraphNodes) {}
26 const FText& InNodeCategory,
27 const FText& InMenuDesc,
28 const FText& InToolTip,
29 int32 InGrouping,
30 TArray<UDialogueGraphNode*> InSelectedGraphNodes
31 ) : FEdGraphSchemaAction(InNodeCategory, InMenuDesc, InToolTip, InGrouping), SelectedGraphNodes(InSelectedGraphNodes) {}
32
33 //~ Begin FEdGraphSchemaAction Interface
34 UEdGraphNode* PerformAction(UEdGraph* ParentGraph, UEdGraphPin* FromPin, const FVector2D Location, bool bSelectNewNode = true) override;
35 //~ End FEdGraphSchemaAction Interface
36
37private:
38 // Nodes selected that we are going to convert
39 TArray<UDialogueGraphNode*> SelectedGraphNodes;
40};
FConvertSpeechNodesToSpeechSequence_DialogueGraphSchemaAction(const FText &InNodeCategory, const FText &InMenuDesc, const FText &InToolTip, int32 InGrouping, TArray< UDialogueGraphNode * > InSelectedGraphNodes)
UEdGraphNode * PerformAction(UEdGraph *ParentGraph, UEdGraphPin *FromPin, const FVector2D Location, bool bSelectNewNode=true) override
FConvertSpeechNodesToSpeechSequence_DialogueGraphSchemaAction(const TArray< UDialogueGraphNode * > &InSelectedGraphNodes)