Files
UnrealEngineUWP/Engine/Plugins/Runtime/Metasound/Source/MetasoundEditor/Private/SMetasoundGraphNode.h
Rob Gay 20761acf02 - Metasound Graph Pin Clean-up
- Add independent pin color defaults & move Metasound Settings from shared settings to plugin and setup as per-user settings
- Fix ensure hitting when outputs are created and corrisponding literals are constructed
#rb phil.popp
#fyi aaron.mcleran

[CL 15215186 by Rob Gay in ue5-main branch]
2021-01-27 00:58:56 -04:00

44 lines
1.3 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 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 EVisibility IsAddPinButtonVisible() const override;
virtual FReply OnAddPin() override;
virtual void SetDefaultTitleAreaWidget(TSharedRef<SOverlay> DefaultTitleAreaWidget) override;
UMetasoundEditorGraphNode& GetMetasoundNode();
const UMetasoundEditorGraphNode& GetMetasoundNode() const;
};