You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
36 lines
936 B
C
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;
|
||
|
|
};
|