Files
UnrealEngine/Engine/Plugins/Animation/ControlRig/Source/ControlRigEditor/Private/ControlRigModularRigCommands.h
2025-05-18 13:04:45 +08:00

50 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Framework/Commands/Commands.h"
#include "ControlRigEditorStyle.h"
class FControlRigModularRigCommands : public TCommands<FControlRigModularRigCommands>
{
public:
FControlRigModularRigCommands() : TCommands<FControlRigModularRigCommands>
(
"ControlRigModularRigModel",
NSLOCTEXT("Contexts", "ModularRigModel", "Modular Rig Modules"),
NAME_None, // "MainFrame" // @todo Fix this crash
FControlRigEditorStyle::Get().GetStyleSetName() // Icon Style Set
)
{}
/** Add Module at root */
TSharedPtr< FUICommandInfo > AddModuleItem;
/** Rename Module */
TSharedPtr< FUICommandInfo > RenameModuleItem;
/** Delete Module */
TSharedPtr< FUICommandInfo > DeleteModuleItem;
/** Mirror Module */
TSharedPtr< FUICommandInfo > MirrorModuleItem;
/** Reresolve Module */
TSharedPtr< FUICommandInfo > ReresolveModuleItem;
/** Swap Module Class */
TSharedPtr< FUICommandInfo > SwapModuleClassItem;
/** Copy module settings */
TSharedPtr< FUICommandInfo > CopyModuleSettings;
/** Paste module settings */
TSharedPtr< FUICommandInfo > PasteModuleSettings;
/**
* Initialize commands
*/
virtual void RegisterCommands() override;
};