38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "CoreMinimal.h"
|
||
|
#include "Messaging/CommonMessagingSubsystem.h"
|
||
|
#include "Messaging/CommonGameDialog.h"
|
||
|
#include "LyraUIMessaging.generated.h"
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
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;
|
||
|
};
|