Files
UnrealEngineUWP/Engine/Source/Editor/StaticMeshEditor/Public/StaticMeshEditorActions.h
Lauren Barnes 6248f8d412 Replacing legacy EditorStyle calls with AppStyle
#preflight 6272a74d2f6d177be3c6fdda
#rb Matt.Kuhlenschmidt

#ROBOMERGE-OWNER: Lauren.Barnes
#ROBOMERGE-AUTHOR: lauren.barnes
#ROBOMERGE-SOURCE: CL 20057269 via CL 20070159 via CL 20072035 via CL 20072203
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)
#ROBOMERGE-CONFLICT from-shelf

[CL 20105363 by Lauren Barnes in ue5-main branch]
2022-05-09 13:12:28 -04:00

103 lines
3.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Framework/Commands/Commands.h"
#include "Styling/AppStyle.h"
/**
* Unreal StaticMesh editor actions
*/
class FStaticMeshEditorCommands : public TCommands<FStaticMeshEditorCommands>
{
public:
FStaticMeshEditorCommands() : TCommands<FStaticMeshEditorCommands>
(
"StaticMeshEditor", // Context name for fast lookup
NSLOCTEXT("Contexts", "StaticMeshEditor", "StaticMesh Editor"), // Localized context name for displaying
"EditorViewport", // Parent
FAppStyle::GetAppStyleSetName() // Icon Style Set
)
{
}
/**
* StaticMesh Editor Commands
*/
/** */
TSharedPtr<FUICommandInfo> SetShowNaniteFallback;
TSharedPtr<FUICommandInfo> SetShowWireframe;
TSharedPtr<FUICommandInfo> SetShowVertexColor;
TSharedPtr<FUICommandInfo> SetShowPhysicalMaterialMasks;
TSharedPtr<FUICommandInfo> SetDrawUVs;
TSharedPtr<FUICommandInfo> SetShowGrid;
TSharedPtr<FUICommandInfo> SetShowBounds;
TSharedPtr<FUICommandInfo> SetShowSimpleCollision;
TSharedPtr<FUICommandInfo> SetShowComplexCollision;
TSharedPtr<FUICommandInfo> ResetCamera;
TSharedPtr<FUICommandInfo> SetShowSockets;
TSharedPtr<FUICommandInfo> SetDrawAdditionalData;
// Mesh toolbar Commands
TSharedPtr<FUICommandInfo> ReimportMesh;
TSharedPtr<FUICommandInfo> ReimportMeshWithNewFile;
TSharedPtr<FUICommandInfo> ReimportAllMesh;
TSharedPtr<FUICommandInfo> ReimportAllMeshWithNewFile;
// toolbar commands
TSharedPtr<FUICommandInfo> ToggleShowNormals;
TSharedPtr<FUICommandInfo> ToggleShowTangents;
TSharedPtr<FUICommandInfo> ToggleShowBinormals;
TSharedPtr<FUICommandInfo> ToggleShowPivots;
TSharedPtr<FUICommandInfo> ToggleShowVertices;
TSharedPtr<FUICommandInfo> ToggleShowGrids;
TSharedPtr<FUICommandInfo> ToggleShowBounds;
TSharedPtr<FUICommandInfo> ToggleShowSimpleCollisions;
TSharedPtr<FUICommandInfo> ToggleShowComplexCollisions;
TSharedPtr<FUICommandInfo> ToggleShowSockets;
TSharedPtr<FUICommandInfo> ToggleShowWireframes;
TSharedPtr<FUICommandInfo> ToggleShowVertexColors;
// View Menu Commands
TSharedPtr<FUICommandInfo> SetShowNormals;
TSharedPtr<FUICommandInfo> SetShowTangents;
TSharedPtr<FUICommandInfo> SetShowBinormals;
TSharedPtr<FUICommandInfo> SetShowPivot;
TSharedPtr<FUICommandInfo> SetShowVertices;
// Collision Menu Commands
TSharedPtr<FUICommandInfo> CreateDOP10X;
TSharedPtr<FUICommandInfo> CreateDOP10Y;
TSharedPtr<FUICommandInfo> CreateDOP10Z;
TSharedPtr<FUICommandInfo> CreateDOP18;
TSharedPtr<FUICommandInfo> CreateDOP26;
TSharedPtr<FUICommandInfo> CreateBoxCollision;
TSharedPtr<FUICommandInfo> CreateSphereCollision;
TSharedPtr<FUICommandInfo> CreateSphylCollision;
TSharedPtr<FUICommandInfo> CreateAutoConvexCollision;
TSharedPtr<FUICommandInfo> RemoveCollision;
TSharedPtr<FUICommandInfo> ConvertBoxesToConvex;
TSharedPtr<FUICommandInfo> CopyCollisionFromSelectedMesh;
// Mesh Menu Commands
TSharedPtr<FUICommandInfo> FindSource;
TSharedPtr<FUICommandInfo> ChangeMesh;
TSharedPtr<FUICommandInfo> BakeMaterials;
TSharedPtr<FUICommandInfo> SaveGeneratedLODs;
/**
* Initialize commands
*/
virtual void RegisterCommands() override;
public:
};