Files
UnrealEngineUWP/Engine/Source/Editor/GraphEditor/Public/SGraphNodePromotableOperator.h
ben hoffman 342cf191d1 Blueprints: Add new promotable operator icons to make it clearer that you can connect any type to it instead of just the one that is currently connected.
#jira UE-130755
#rb trivial
#rnx
#preflight 61df10146a076ddb53ecd68e
#preflight 61df40836a16a18acf8741e8

#ROBOMERGE-AUTHOR: ben.hoffman
#ROBOMERGE-SOURCE: CL 18589393 in //UE5/Release-5.0/... via CL 18589401 via CL 18589406
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18589423 by ben hoffman in ue5-main branch]
2022-01-12 16:08:58 -05:00

36 lines
936 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "K2Node_PromotableOperator.h"
#include "KismetNodes/SGraphNodeK2Sequence.h"
/**
* A custom slate node for the promotable operator (K2Node_PromotableOperator)
* These nodes include common math operations like Add, Subtract, Multiply, etc.
*
* This custom node will provide a neat little secondary icon to visually show that
* promotable operator pins can be converted to other types.
*/
class SGraphNodePromotableOperator : public SGraphNodeK2Sequence
{
public:
SLATE_BEGIN_ARGS(SGraphNodePromotableOperator){}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, UK2Node_PromotableOperator* InNode);
// SGraphNode interface
virtual void CreatePinWidgets() override;
// End of SGraphNode interface
protected:
void LoadCachedIcons();
const FSlateBrush* CachedOuterIcon;
const FSlateBrush* CachedInnerIcon;
};