Files
UnrealEngineUWP/Engine/Source/Editor/SoundCueEditor/Private/SSoundCuePalette.cpp
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

24 lines
686 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "SoundCueEditorModule.h"
#include "SSoundCuePalette.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);
}