You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #Jira UE-109087 #rb trivial #ROBOMERGE-SOURCE: CL 15490877 in //UE5/Release-5.0-EarlyAccess/... #ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668) [CL 15490888 by brooke hubert in ue5-main branch]
65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "AssetPlacementEdModeToolkit.h"
|
|
|
|
#include "IDetailsView.h"
|
|
#include "SAssetPlacementPalette.h"
|
|
#include "Widgets/Layout/SExpandableArea.h"
|
|
#include "Widgets/Layout/SScrollBox.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "AssetPlacementEdModeToolkit"
|
|
|
|
FAssetPlacementEdModeToolkit::FAssetPlacementEdModeToolkit()
|
|
{
|
|
}
|
|
|
|
void FAssetPlacementEdModeToolkit::GetToolPaletteNames(TArray<FName>& PaletteNames) const
|
|
{
|
|
PaletteNames.Add(NAME_Default);
|
|
}
|
|
|
|
|
|
FName FAssetPlacementEdModeToolkit::GetToolkitFName() const
|
|
{
|
|
return FName("AssetPlacementEdMode");
|
|
}
|
|
|
|
FText FAssetPlacementEdModeToolkit::GetBaseToolkitName() const
|
|
{
|
|
return LOCTEXT("DisplayName", "AssetPlacementEdMode Tool");
|
|
}
|
|
|
|
TSharedPtr<SWidget> FAssetPlacementEdModeToolkit::GetInlineContent() const
|
|
{
|
|
return SNew(SVerticalBox)
|
|
+ SVerticalBox::Slot()
|
|
.FillHeight(.6)
|
|
[
|
|
SNew(SScrollBox)
|
|
+ SScrollBox::Slot()
|
|
[
|
|
DetailsView.ToSharedRef()
|
|
]
|
|
+ SScrollBox::Slot()
|
|
[
|
|
ModeDetailsView.ToSharedRef()
|
|
]
|
|
]
|
|
+ SVerticalBox::Slot()
|
|
.AutoHeight()
|
|
[
|
|
SNew(SExpandableArea)
|
|
.AreaTitle(LOCTEXT("AssetPaletteHeader", "Asset Palette"))
|
|
.BodyContent()
|
|
[
|
|
SNew(SScrollBox)
|
|
+ SScrollBox::Slot()
|
|
[
|
|
SNew(SAssetPlacementPalette)
|
|
]
|
|
]
|
|
];
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|