RealtimeStyleTransferRuntime/Source/LyraGame/UI/Subsystem/LyraUIMessaging.h

45 lines
1.2 KiB
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Messaging/CommonMessagingSubsystem.h"
2022-09-13 07:18:28 +00:00
#include "Templates/SubclassOf.h"
#include "UObject/SoftObjectPtr.h"
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "LyraUIMessaging.generated.h"
2022-09-13 07:18:28 +00:00
class FSubsystemCollectionBase;
class UCommonGameDialog;
class UCommonGameDialogDescriptor;
class UObject;
2022-05-23 18:41:30 +00:00
/**
*
*/
UCLASS()
class ULyraUIMessaging : public UCommonMessagingSubsystem
{
GENERATED_BODY()
public:
ULyraUIMessaging() { }
virtual void Initialize(FSubsystemCollectionBase& Collection) override;
virtual void ShowConfirmation(UCommonGameDialogDescriptor* DialogDescriptor, FCommonMessagingResultDelegate ResultCallback = FCommonMessagingResultDelegate()) override;
virtual void ShowError(UCommonGameDialogDescriptor* DialogDescriptor, FCommonMessagingResultDelegate ResultCallback = FCommonMessagingResultDelegate()) override;
private:
UPROPERTY()
TSubclassOf<UCommonGameDialog> ConfirmationDialogClassPtr;
UPROPERTY()
TSubclassOf<UCommonGameDialog> ErrorDialogClassPtr;
UPROPERTY(config)
TSoftClassPtr<UCommonGameDialog> ConfirmationDialogClass;
UPROPERTY(config)
TSoftClassPtr<UCommonGameDialog> ErrorDialogClass;
};