Files
UnrealEngineUWP/Engine/Source/Editor/GraphEditor/Public/KismetNodes/SGraphNodeK2Var.h
Thomas Sarkanen a8c165387c Anim node references
Added the abiity to tag and retrieve any anim graph node (similar to how we could reference linked anim graph nodes previously).
Ported linked anim graph nodes to use the new system
Added the ability to reference any anim graph node by tag (via a new custom node, spawnable from the context menu, with the appearance of an actor reference in a level blueprint)
Added tag display and editing in the bottom-right of anim graph nodes
Added new override point to SGraphNodeK2Var to allow for title widget parameters to be overriden by child classes

#jira UE-126286 - Anim node functions: Add anim node references
#rb Jurre.deBaare
#preflight 613a1e0cf9a522000143c253

[CL 17472894 by Thomas Sarkanen in ue5-main branch]
2021-09-09 11:41:13 -04:00

32 lines
877 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Styling/SlateColor.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "KismetNodes/SGraphNodeK2Base.h"
class UK2Node;
class GRAPHEDITOR_API SGraphNodeK2Var : public SGraphNodeK2Base
{
public:
SLATE_BEGIN_ARGS(SGraphNodeK2Var){}
SLATE_END_ARGS()
void Construct( const FArguments& InArgs, UK2Node* InNode );
virtual const FSlateBrush* GetShadowBrush(bool bSelected) const override;
// SGraphNode interface
virtual void UpdateGraphNode() override;
// End of SGraphNode interface
protected:
FSlateColor GetVariableColor() const;
// Allow derived classes to override title widget
virtual TSharedRef<SWidget> UpdateTitleWidget(FText InTitleText, TSharedPtr<SWidget> InTitleWidget, EHorizontalAlignment& InOutTitleHAlign, FMargin& InOutTitleMargin) const;
};