Files
UnrealEngineUWP/Engine/Plugins/Runtime/Metasound/Source/MetasoundEditor/Private/SMetasoundGraphNode.h
rob gay e8806c89c1 - Rename AudioCommunicationInterface to AudioParameterInterface
- Add button to execute MetaSound trigger on node titlebar
#rb trivial
#jira UE-112952
#lockdown nick.whiting
#preflight 606d4a44b934f5000113fd7c

#ROBOMERGE-SOURCE: CL 15938407 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15938480 by rob gay in ue5-main branch]
2021-04-07 02:59:10 -04:00

52 lines
1.7 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Input/Reply.h"
#include "Layout/Visibility.h"
#include "SGraphNode.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SOverlay.h"
// Forward Declarations
class SGraphPin;
class SVerticalBox;
class UMetasoundEditorGraphInputLiteral;
class UMetasoundEditorGraphNode;
class SMetasoundGraphNode : public SGraphNode
{
public:
SLATE_BEGIN_ARGS(SMetasoundGraphNode)
{
}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, class UEdGraphNode* InNode);
protected:
// SGraphNode Interface
virtual void CreateOutputSideAddButton(TSharedPtr<SVerticalBox> OutputBox) override;
virtual TSharedPtr<SGraphPin> CreatePinWidget(UEdGraphPin* InPin) const override;
virtual void CreateStandardPinWidget(UEdGraphPin* InPin) override;
virtual TSharedRef<SWidget> CreateNodeContentArea() override;
virtual TSharedRef<SWidget> CreateTitleWidget(TSharedPtr<SNodeTitle> NodeTitle) override;
virtual const FSlateBrush* GetNodeBodyBrush() const override;
virtual TSharedRef<SWidget> CreateTitleRightWidget() override;
virtual EVisibility IsAddPinButtonVisible() const override;
virtual FReply OnAddPin() override;
virtual void MoveTo(const FVector2D& NewPosition, FNodeSet& NodeFilter) override;
virtual void SetDefaultTitleAreaWidget(TSharedRef<SOverlay> DefaultTitleAreaWidget) override;
FName GetLiteralDataType() const;
UMetasoundEditorGraphNode& GetMetasoundNode();
const UMetasoundEditorGraphNode& GetMetasoundNode() const;
public:
static void ExecuteInputTrigger(UMetasoundEditorGraphInputLiteral& Literal);
static TSharedRef<SWidget> CreateTriggerSimulationWidget(UMetasoundEditorGraphInputLiteral& Literal);
};