You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira #preflight 6306736ac85b7fef22be7751 [CL 21558583 by bryan sefcik in ue5-main branch]
29 lines
646 B
C++
29 lines
646 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "LayersDragDropOp.h"
|
|
|
|
#include "HAL/Platform.h"
|
|
#include "Internationalization/Internationalization.h"
|
|
#include "Internationalization/Text.h"
|
|
#include "Styling/AppStyle.h"
|
|
|
|
struct FSlateBrush;
|
|
|
|
|
|
void FLayersDragDropOp::Construct()
|
|
{
|
|
const FSlateBrush* Icon = FAppStyle::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();
|
|
}
|