unitysamples / LyraStarterGame /Plugins /GameSettings /Source /Public /Widgets /Misc /KeyAlreadyBoundWarning.h
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class UTextBlock; | |
| /** | |
| * UKeyAlreadyBoundWarning | |
| * Press any key screen with text blocks for warning users when a key is already bound | |
| */ | |
| UCLASS(MinimalAPI, Abstract) | |
| class UKeyAlreadyBoundWarning : public UGameSettingPressAnyKey | |
| { | |
| GENERATED_BODY() | |
| public: | |
| UE_API void SetWarningText(const FText& InText); | |
| UE_API void SetCancelText(const FText& InText); | |
| protected: | |
| UPROPERTY(BlueprintReadOnly, meta = (BindWidget, BlueprintProtected = true, AllowPrivateAccess = true)) | |
| TObjectPtr<UTextBlock> WarningText; | |
| UPROPERTY(BlueprintReadOnly, meta = (BindWidget, BlueprintProtected = true, AllowPrivateAccess = true)) | |
| TObjectPtr<UTextBlock> CancelText; | |
| }; | |