RealtimeStyleTransferRuntime/Source/LyraGame/UI/Foundation/LyraLoadingScreenSubsystem.cpp

30 lines
767 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "UI/Foundation/LyraLoadingScreenSubsystem.h"
#include "Blueprint/UserWidget.h"
class UUserWidget;
//////////////////////////////////////////////////////////////////////
// ULyraLoadingScreenSubsystem
ULyraLoadingScreenSubsystem::ULyraLoadingScreenSubsystem()
{
}
void ULyraLoadingScreenSubsystem::SetLoadingScreenContentWidget(TSubclassOf<UUserWidget> NewWidgetClass)
{
if (LoadingScreenWidgetClass != NewWidgetClass)
{
LoadingScreenWidgetClass = NewWidgetClass;
OnLoadingScreenWidgetChanged.Broadcast(LoadingScreenWidgetClass);
}
}
TSubclassOf<UUserWidget> ULyraLoadingScreenSubsystem::GetLoadingScreenContentWidget() const
{
return LoadingScreenWidgetClass;
}