2022-05-23 18:41:30 +00:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
#include "SubtitleDisplaySubsystem.h"
|
2022-09-13 07:18:28 +00:00
|
|
|
|
2022-05-23 18:41:30 +00:00
|
|
|
#include "Engine/GameInstance.h"
|
|
|
|
#include "Engine/LocalPlayer.h"
|
|
|
|
|
2022-09-13 07:18:28 +00:00
|
|
|
class FSubsystemCollectionBase;
|
|
|
|
|
2022-05-23 18:41:30 +00:00
|
|
|
USubtitleDisplaySubsystem* USubtitleDisplaySubsystem::Get(const ULocalPlayer* LocalPlayer)
|
|
|
|
{
|
|
|
|
return LocalPlayer ? LocalPlayer->GetGameInstance()->GetSubsystem<USubtitleDisplaySubsystem>() : nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
USubtitleDisplaySubsystem::USubtitleDisplaySubsystem()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void USubtitleDisplaySubsystem::Initialize(FSubsystemCollectionBase& Collection)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void USubtitleDisplaySubsystem::Deinitialize()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const FSubtitleFormat& USubtitleDisplaySubsystem::GetSubtitleDisplayOptions() const
|
|
|
|
{
|
|
|
|
return SubtitleFormat;
|
|
|
|
}
|
|
|
|
|
|
|
|
void USubtitleDisplaySubsystem::SetSubtitleDisplayOptions(const FSubtitleFormat& InOptions)
|
|
|
|
{
|
|
|
|
SubtitleFormat = InOptions;
|
|
|
|
DisplayFormatChangedEvent.Broadcast(SubtitleFormat);
|
|
|
|
}
|