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
5
6void 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
12void 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}
void Construct(const FArguments &InArgs)
void CollectAllActions(FGraphActionListBuilderBase &OutAllActions) override
void GetPaletteActions(FGraphActionMenuBuilder &ActionMenuBuilder) const