Files
UnrealEngineUWP/Engine/Source/Editor/DataLayerEditor/Private/DataLayer/DataLayerDragDropOp.cpp
Richard Malo a961c2338b Added DataLayer browser & editing.
#rb jeanfrancois.dube, patrick.enfedaque

[CL 14597717 by Richard Malo in ue5-main branch]
2020-10-28 06:51:40 -04:00

22 lines
567 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "DataLayer/DataLayerDragDropOp.h"
#include "Textures/SlateIcon.h"
void FDataLayerDragDropOp::Construct()
{
const FSlateBrush* Icon = FEditorStyle::GetBrush(TEXT("DataLayer.Icon16x"));
if (DataLayerLabels.Num() == 1)
{
SetToolTip(FText::FromName(DataLayerLabels[0]), Icon);
}
else
{
FText Text = FText::Format(NSLOCTEXT("FDataLayerDragDropOp", "MultipleFormat", "{0} DataLayerLabels"), DataLayerLabels.Num());
SetToolTip(Text, Icon);
}
SetupDefaults();
FDecoratedDragDropOp::Construct();
}