2022-05-23 18:41:30 +00:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
#include "GameResponsivePanelSlot.h"
|
2022-09-13 07:18:28 +00:00
|
|
|
|
2022-05-23 18:41:30 +00:00
|
|
|
#include "Components/Widget.h"
|
2022-09-13 07:18:28 +00:00
|
|
|
#include "SlotBase.h"
|
|
|
|
#include "UObject/ObjectPtr.h"
|
|
|
|
#include "Widgets/Responsive/SGameResponsivePanel.h"
|
|
|
|
#include "Widgets/SNullWidget.h"
|
2022-05-23 18:41:30 +00:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////
|
|
|
|
// UGameResponsivePanelSlot
|
|
|
|
|
|
|
|
UGameResponsivePanelSlot::UGameResponsivePanelSlot(const FObjectInitializer& ObjectInitializer)
|
|
|
|
: Super(ObjectInitializer)
|
|
|
|
{
|
|
|
|
Slot = nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
void UGameResponsivePanelSlot::ReleaseSlateResources(bool bReleaseChildren)
|
|
|
|
{
|
|
|
|
Super::ReleaseSlateResources(bReleaseChildren);
|
|
|
|
|
|
|
|
Slot = nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
void UGameResponsivePanelSlot::BuildSlot(TSharedRef<SGameResponsivePanel> GameResponsivePanel)
|
|
|
|
{
|
|
|
|
Slot = &GameResponsivePanel->AddSlot()
|
|
|
|
[
|
|
|
|
Content == nullptr ? SNullWidget::NullWidget : Content->TakeWidget()
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
void UGameResponsivePanelSlot::SynchronizeProperties()
|
|
|
|
{
|
|
|
|
}
|