A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
SDialoguePalette.cpp
Go to the documentation of this file.
1
// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2
#include "
SDialoguePalette.h
"
3
4
#include "
DialogueEditor/Graph/DialogueGraphSchema.h
"
5
6
void
SDialoguePalette::Construct
(
const
FArguments& InArgs)
7
{
8
// Auto expand the palette as there's so few nodes
9
SGraphPalette::Construct(SGraphPalette::FArguments().AutoExpandActionMenu(
true
));
10
}
11
12
void
SDialoguePalette::CollectAllActions
(FGraphActionListBuilderBase& OutAllActions)
13
{
14
const
UDialogueGraphSchema
* Schema = GetDefault<UDialogueGraphSchema>();
15
FGraphActionMenuBuilder ActionMenuBuilder;
16
17
// Determine all possible actions
18
Schema->
GetPaletteActions
(ActionMenuBuilder);
19
OutAllActions.Append(ActionMenuBuilder);
20
}
DialogueGraphSchema.h
SDialoguePalette.h
SDialoguePalette::Construct
void Construct(const FArguments &InArgs)
Definition
SDialoguePalette.cpp:6
SDialoguePalette::CollectAllActions
void CollectAllActions(FGraphActionListBuilderBase &OutAllActions) override
Definition
SDialoguePalette.cpp:12
UDialogueGraphSchema
UCLASS()
Definition
DialogueGraphSchema.h:25
UDialogueGraphSchema::GetPaletteActions
void GetPaletteActions(FGraphActionMenuBuilder &ActionMenuBuilder) const
Definition
DialogueGraphSchema.cpp:36
SDKDemo
Plugins
UnrealEngineSDK
VisualScripter
Source
DlgSystemEditor
Private
DialogueEditor
SDialoguePalette.cpp
Generated
Wed Oct 9 2024 19:52:55
by Doxygen version
1.10.0