Files
2025-05-18 13:04:45 +08:00

21 lines
540 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "CompElementDragDropOp.h"
void FCompElementDragDropOp::Construct()
{
const FSlateBrush* Icon = FAppStyle::GetBrush(TEXT("Layer.Icon16x"));
if (Elements.Num() == 1)
{
FDecoratedDragDropOp::SetToolTip(FText::FromName(Elements[0]), Icon);
}
else
{
FText Text = FText::Format(NSLOCTEXT("FCompElementDragDropOp", "MultipleFormat", "{0} Elements"), Elements.Num());
FDecoratedDragDropOp::SetToolTip(Text, Icon);
}
SetupDefaults();
FDecoratedDragDropOp::Construct();
}