RealtimeStyleTransferRuntime/Plugins/GameSubtitles/Source/Public/SubtitleDisplayOptions.h

82 lines
1.8 KiB
C
Raw Permalink Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "Engine/DataAsset.h"
#include "Fonts/SlateFontInfo.h"
#include "Styling/SlateBrush.h"
#include "SubtitleDisplayOptions.generated.h"
UENUM()
enum class ESubtitleDisplayTextSize : uint8
{
ExtraSmall,
Small,
Medium,
Large,
ExtraLarge,
ESubtitleDisplayTextSize_MAX
};
UENUM()
enum class ESubtitleDisplayTextColor : uint8
{
White,
Yellow,
ESubtitleDisplayTextColor_MAX
};
UENUM()
enum class ESubtitleDisplayTextBorder : uint8
{
None,
Outline,
DropShadow,
ESubtitleDisplayTextBorder_MAX
};
UENUM()
enum class ESubtitleDisplayBackgroundOpacity : uint8
{
Clear,
Low,
Medium,
High,
Solid,
ESubtitleDisplayBackgroundOpacity_MAX
};
/**
*
*/
UCLASS(BlueprintType)
class GAMESUBTITLES_API USubtitleDisplayOptions : public UDataAsset
{
GENERATED_BODY()
public:
USubtitleDisplayOptions() { }
public:
UPROPERTY(EditDefaultsOnly, Category = "Display Info")
FSlateFontInfo Font;
UPROPERTY(EditDefaultsOnly, Category = "Display Info")
int32 DisplayTextSizes[(int32)ESubtitleDisplayTextSize::ESubtitleDisplayTextSize_MAX];
UPROPERTY(EditDefaultsOnly, Category = "Display Info")
FLinearColor DisplayTextColors[(int32)ESubtitleDisplayTextColor::ESubtitleDisplayTextColor_MAX];
UPROPERTY(EditDefaultsOnly, Category = "Display Info")
float DisplayBorderSize[(int32)ESubtitleDisplayTextBorder::ESubtitleDisplayTextBorder_MAX];
UPROPERTY(EditDefaultsOnly, Category = "Display Info")
float DisplayBackgroundOpacity[(int32)ESubtitleDisplayBackgroundOpacity::ESubtitleDisplayBackgroundOpacity_MAX];
UPROPERTY(EditDefaultsOnly, Category = "Display Info")
FSlateBrush BackgroundBrush;
};