You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb brooke.hubert, matt.kuhlenschmidt #preflight 606353b8f4abbf00013b9313 #ROBOMERGE-SOURCE: CL 15864893 in //UE5/Release-5.0-EarlyAccess/... #ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533) [CL 15864996 by louise rasmussen in ue5-main branch]
41 lines
1.8 KiB
C++
41 lines
1.8 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "AssetPlacementEdModeCommands.h"
|
|
#include "AssetPlacementEdModeStyle.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "AssetPlacementEdMode"
|
|
|
|
FAssetPlacementEdModeCommands::FAssetPlacementEdModeCommands()
|
|
: TCommands<FAssetPlacementEdModeCommands>("AssetPlacementEdMode",
|
|
LOCTEXT("AssetPlacementEdModeCommands", "AssetPlacement Editor Mode Commands"),
|
|
NAME_None,
|
|
FAssetPlacementEdModeStyle::Get().GetStyleSetName())
|
|
{
|
|
}
|
|
|
|
void FAssetPlacementEdModeCommands::RegisterCommands()
|
|
{
|
|
TArray <TSharedPtr<FUICommandInfo>>& ToolCommands = Commands.FindOrAdd(NAME_Default);
|
|
UI_COMMAND(Select, "Select", "Select", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
ToolCommands.Add(Select);
|
|
UI_COMMAND(Deselect, "Deselect", "Clears the Current Selection.", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
ToolCommands.Add(Deselect);
|
|
UI_COMMAND(LassoSelect, "Lasso", "Select Assets with a Brush Tool.", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
ToolCommands.Add(LassoSelect);
|
|
UI_COMMAND(Place, "Place", "Place Assets from the Palette.", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
ToolCommands.Add(Place);
|
|
UI_COMMAND(PlaceSingle, "Single", "Place a Single Asset from the Palette.", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
ToolCommands.Add(PlaceSingle);
|
|
UI_COMMAND(Erase, "Erase", "Erases Assets Matching the Palette.", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
ToolCommands.Add(Erase);
|
|
UI_COMMAND(Delete, "Delete", "Deletes Assets in the Current Selection.", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
ToolCommands.Add(Delete);
|
|
}
|
|
|
|
TMap<FName, TArray<TSharedPtr<FUICommandInfo>>> FAssetPlacementEdModeCommands::GetCommands()
|
|
{
|
|
return FAssetPlacementEdModeCommands::Get().Commands;
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|