Files
UnrealEngineUWP/Engine/Source/Editor/Layers/Private/LayersDragDropOp.cpp
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

23 lines
519 B
C++

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