Files
UnrealEngineUWP/Engine/Source/Editor/AudioEditor/Private/SSoundCuePalette.cpp
bryan sefcik 8cc129f2b6 IWYU Pass 1 - Engine/Source/Editor/...
#jira
#preflight 6306736ac85b7fef22be7751

[CL 21558583 by bryan sefcik in ue5-main branch]
2022-08-24 22:45:13 -04:00

27 lines
761 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "SSoundCuePalette.h"
#include "EdGraph/EdGraphSchema.h"
#include "SoundCueGraph/SoundCueGraphSchema.h"
#include "UObject/UObjectGlobals.h"
void SSoundCuePalette::Construct(const FArguments& InArgs)
{
// Auto expand the palette as there's so few nodes
SGraphPalette::Construct(SGraphPalette::FArguments().AutoExpandActionMenu(true));
}
void SSoundCuePalette::CollectAllActions(FGraphActionListBuilderBase& OutAllActions)
{
const USoundCueGraphSchema* Schema = GetDefault<USoundCueGraphSchema>();
FGraphActionMenuBuilder ActionMenuBuilder;
// Determine all possible actions
Schema->GetPaletteActions(ActionMenuBuilder);
//@TODO: Avoid this copy
OutAllActions.Append(ActionMenuBuilder);
}