2023-06-15 05:22:00 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Internationalization/Text.h"
|
|
|
|
|
#include "Rendering/RenderingCommon.h"
|
|
|
|
|
#include "SGraphPin.h"
|
|
|
|
|
|
|
|
|
|
class UMaterialGraphNode;
|
2023-09-01 15:06:19 -04:00
|
|
|
struct FSubstrateMaterialCompilationOutput;
|
2023-06-15 05:22:00 -04:00
|
|
|
|
|
|
|
|
struct GRAPHEDITOR_API FSubstrateWidget
|
|
|
|
|
{
|
2023-09-01 15:06:19 -04:00
|
|
|
static const TSharedRef<SWidget> ProcessOperator(const FSubstrateMaterialCompilationOutput& CompilationOutput);
|
2023-09-11 09:36:43 -04:00
|
|
|
static const TSharedRef<SWidget> ProcessOperator(const FSubstrateMaterialCompilationOutput& CompilationOutput, const TArray<FGuid>& InGuid);
|
2023-06-15 05:22:00 -04:00
|
|
|
static void GetPinColor(TSharedPtr<SGraphPin>& Out, const UMaterialGraphNode* InNode);
|
2023-08-31 04:46:18 -04:00
|
|
|
static FLinearColor GetConnectionColor();
|
2023-08-31 04:49:11 -04:00
|
|
|
static bool HasInputSubstrateType(const UEdGraphPin* InPin);
|
|
|
|
|
static bool HasOutputSubstrateType(const UEdGraphPin* InPin);
|
2023-06-15 05:22:00 -04:00
|
|
|
};
|