Files
frederick lupien 63fd57b194 Add a context menu option to unexpose all unused pins in LinkedAnimGraph and LinkedAnimLayer nodes in animation blueprints
This is to be able to quickly hide all pins on linked graph nodes based on animation instance that expose a lot of properties

[REVIEW] [at]Thomas.Sarkanen
#tests PIE
#jira UE-156233
[FYI] [at]Paul.McLaurin

[CL 21908860 by frederick lupien in ue5-main branch]
2022-09-08 20:30:49 -04:00

62 lines
1.9 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Framework/Commands/Commands.h"
#include "HAL/Platform.h"
#include "Internationalization/Internationalization.h"
#include "Styling/AppStyle.h"
#include "Templates/SharedPointer.h"
#include "UObject/NameTypes.h"
#include "UObject/UnrealNames.h"
class FUICommandInfo;
/** Anim Graph Commands */
class ANIMGRAPH_API FAnimGraphCommands : public TCommands<FAnimGraphCommands>
{
public:
FAnimGraphCommands()
: TCommands<FAnimGraphCommands>(TEXT("AnimGraph"), NSLOCTEXT("Contexts", "AnimGraphCommands", "Anim Graph Commands"), NAME_None, FAppStyle::GetAppStyleSetName())
{
}
virtual void RegisterCommands() override;
public:
// Toggle pose watching for a given node
TSharedPtr<FUICommandInfo> TogglePoseWatch;
// Hide unbound property pins
TSharedPtr<FUICommandInfo> HideUnboundPropertyPins;
// SkeletalControl specific commands
TSharedPtr< FUICommandInfo > SelectBone;
// Blend list options
TSharedPtr< FUICommandInfo > AddBlendListPin;
TSharedPtr< FUICommandInfo > RemoveBlendListPin;
// options for sequence/evaluator converter
TSharedPtr< FUICommandInfo > ConvertToSeqEvaluator;
TSharedPtr< FUICommandInfo > ConvertToSeqPlayer;
// options for blendspace converter
TSharedPtr< FUICommandInfo > ConvertToBSEvaluator;
TSharedPtr< FUICommandInfo > ConvertToBSPlayer;
TSharedPtr< FUICommandInfo > ConvertToBSGraph;
// options for aimoffset converter
TSharedPtr< FUICommandInfo > ConvertToAimOffsetLookAt;
TSharedPtr< FUICommandInfo > ConvertToAimOffsetSimple;
TSharedPtr< FUICommandInfo > ConvertToAimOffsetGraph;
// options for sequence/evaluator converter
TSharedPtr< FUICommandInfo > ConvertToPoseBlender;
TSharedPtr< FUICommandInfo > ConvertToPoseByName;
// option for opening the asset related to the graph node
TSharedPtr< FUICommandInfo > OpenRelatedAsset;
};