You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-OWNER: ryan.durand #ROBOMERGE-AUTHOR: ryan.durand #ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900 #ROBOMERGE-BOT: (v613-10869866) [CL 10870549 by ryan durand in Main branch]
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Framework/MultiBox/MultiBoxCustomization.h"
|
|
#include "Framework/Commands/InputBindingManager.h"
|
|
#include "Widgets/Layout/SBorder.h"
|
|
#include "Framework/Commands/UICommandDragDropOp.h"
|
|
#include "Widgets/Colors/SColorBlock.h"
|
|
|
|
void SCustomToolbarPreviewWidget::Construct( const FArguments& InArgs )
|
|
{
|
|
Content = InArgs._Content.Widget;
|
|
}
|
|
|
|
void SCustomToolbarPreviewWidget::BuildMultiBlockWidget(const ISlateStyle* StyleSet, const FName& StyleName)
|
|
{
|
|
ChildSlot
|
|
[
|
|
SNew( SBorder )
|
|
.Padding(0)
|
|
.BorderImage( FCoreStyle::Get().GetBrush("NoBorder") )
|
|
.HAlign(HAlign_Center)
|
|
.VAlign(VAlign_Center)
|
|
[
|
|
Content.ToSharedRef()
|
|
]
|
|
];
|
|
|
|
// Add this widget to the search list of the multibox and hide it
|
|
if (MultiBlock->GetSearchable())
|
|
{
|
|
OwnerMultiBoxWidget.Pin()->AddSearchElement(this->AsWidget(), FText::GetEmpty());
|
|
}
|
|
}
|
|
|
|
TSharedRef< class IMultiBlockBaseWidget > FDropPreviewBlock::ConstructWidget() const
|
|
{
|
|
return
|
|
SNew( SCustomToolbarPreviewWidget )
|
|
.Visibility( EVisibility::Hidden )
|
|
.Content()
|
|
[
|
|
ActualWidget->AsWidget()
|
|
];
|
|
|
|
}
|