Download LyraStarterGame/Plugins/CommonGame/Source/Public/Messaging/CommonGameDialog.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 2.09 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Public/Messaging/CommonGameDialog.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Plugins/CommonGame/Source/Public/Messaging/CommonGameDialog.h
-
curl -L -o CommonGameDialog.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Public/Messaging/CommonGameDialog.h
2.09 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| USTRUCT(BlueprintType) | |
| struct FConfirmationDialogAction | |
| { | |
| GENERATED_BODY() | |
| public: | |
| /** Required: The dialog option to provide. */ | |
| UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
| ECommonMessagingResult Result = ECommonMessagingResult::Unknown; | |
| /** Optional: Display Text to use instead of the action name associated with the result. */ | |
| UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
| FText OptionalDisplayText; | |
| bool operator==(const FConfirmationDialogAction& Other) const | |
| { | |
| return Result == Other.Result && | |
| OptionalDisplayText.EqualTo(Other.OptionalDisplayText); | |
| } | |
| }; | |
| UCLASS(MinimalAPI) | |
| class UCommonGameDialogDescriptor : public UObject | |
| { | |
| GENERATED_BODY() | |
| public: | |
| static UE_API UCommonGameDialogDescriptor* CreateConfirmationOk(const FText& Header, const FText& Body); | |
| static UE_API UCommonGameDialogDescriptor* CreateConfirmationOkCancel(const FText& Header, const FText& Body); | |
| static UE_API UCommonGameDialogDescriptor* CreateConfirmationYesNo(const FText& Header, const FText& Body); | |
| static UE_API UCommonGameDialogDescriptor* CreateConfirmationYesNoCancel(const FText& Header, const FText& Body); | |
| public: | |
| /** The header of the message to display */ | |
| UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
| FText Header; | |
| /** The body of the message to display */ | |
| UPROPERTY(EditAnywhere, BlueprintReadWrite) | |
| FText Body; | |
| /** The confirm button's input action to use. */ | |
| UPROPERTY(BlueprintReadWrite) | |
| TArray<FConfirmationDialogAction> ButtonActions; | |
| }; | |
| UCLASS(MinimalAPI, Abstract) | |
| class UCommonGameDialog : public UCommonActivatableWidget | |
| { | |
| GENERATED_BODY() | |
| public: | |
| UE_API UCommonGameDialog(); | |
| UE_API virtual void SetupDialog(UCommonGameDialogDescriptor* Descriptor, FCommonMessagingResultDelegate ResultCallback); | |
| UE_API virtual void KillDialog(); | |
| }; | |