2022-05-23 18:41:30 +00:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
2022-09-13 07:18:28 +00:00
|
|
|
#include "UI/Foundation/LyraLoadingScreenSubsystem.h"
|
|
|
|
|
|
|
|
#include "Blueprint/UserWidget.h"
|
|
|
|
|
|
|
|
class UUserWidget;
|
2022-05-23 18:41:30 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// ULyraLoadingScreenSubsystem
|
|
|
|
|
|
|
|
ULyraLoadingScreenSubsystem::ULyraLoadingScreenSubsystem()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void ULyraLoadingScreenSubsystem::SetLoadingScreenContentWidget(TSubclassOf<UUserWidget> NewWidgetClass)
|
|
|
|
{
|
|
|
|
if (LoadingScreenWidgetClass != NewWidgetClass)
|
|
|
|
{
|
|
|
|
LoadingScreenWidgetClass = NewWidgetClass;
|
|
|
|
|
|
|
|
OnLoadingScreenWidgetChanged.Broadcast(LoadingScreenWidgetClass);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
TSubclassOf<UUserWidget> ULyraLoadingScreenSubsystem::GetLoadingScreenContentWidget() const
|
|
|
|
{
|
|
|
|
return LoadingScreenWidgetClass;
|
|
|
|
}
|