You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Reorganized and consolidated for easier navigation #rb Jurre.deBaare,Lucas.Dower #jira UE-156715 #preflight 62a9ac0f13004691f97cd9da #ROBOMERGE-OWNER: thomas.sarkanen #ROBOMERGE-AUTHOR: thomas.sarkanen #ROBOMERGE-SOURCE: CL 20667777 via CL 20668358 via CL 20668456 via CL 20668474 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v955-20579017) [CL 20669758 by thomas sarkanen in ue5-main branch]
51 lines
1.6 KiB
C++
51 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "AnimGraphNode_Base.h"
|
|
#include "AnimNodes/AnimNode_ModifyCurve.h"
|
|
#include "AnimGraphNode_ModifyCurve.generated.h"
|
|
|
|
class FMenuBuilder;
|
|
|
|
/** Easy way to modify curve values on a pose */
|
|
UCLASS(MinimalAPI)
|
|
class UAnimGraphNode_ModifyCurve : public UAnimGraphNode_Base
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
UPROPERTY(EditAnywhere, Category=Settings)
|
|
FAnimNode_ModifyCurve Node;
|
|
|
|
public:
|
|
UAnimGraphNode_ModifyCurve();
|
|
|
|
// UEdGraphNode interface
|
|
virtual FText GetTooltipText() const override;
|
|
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
|
|
virtual FText GetMenuCategory() const override;
|
|
// End of UEdGraphNode interface
|
|
|
|
// UAnimGraphNode_Base interface
|
|
virtual void CustomizePinData(UEdGraphPin* Pin, FName SourcePropertyName, int32 ArrayIndex) const override;
|
|
// End of UAnimGraphNode_Base interface
|
|
|
|
// UK2Node interface
|
|
virtual void GetNodeContextMenuActions(class UToolMenu* Menu, class UGraphNodeContextMenuContext* Context) const override;
|
|
// End of UK2Node interface
|
|
|
|
private:
|
|
/** Remove a curve pin with the given name */
|
|
void RemoveCurvePin(FName CurveName);
|
|
/** Add a curve pin with the given name */
|
|
void AddCurvePin(FName CurveName);
|
|
/** Create submenu with options for curves to add */
|
|
void GetAddCurveMenuActions(FMenuBuilder& MenuBuilder) const;
|
|
/** Create submenu with options for curves to remove */
|
|
void GetRemoveCurveMenuActions(FMenuBuilder& MenuBuilder) const;
|
|
/** Returns list of curves we have not added yet */
|
|
TArray<FName> GetCurvesToAdd() const;
|
|
};
|