31 lines
880 B
C
31 lines
880 B
C
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|||
|
|
|||
|
#pragma once
|
|||
|
|
|||
|
#include "CoreMinimal.h"
|
|||
|
#include "CommonActivatableWidget.h"
|
|||
|
#include "GameSettingPressAnyKey.h"
|
|||
|
#include "Components/TextBlock.h"
|
|||
|
#include "KeyAlreadyBoundWarning.generated.h"
|
|||
|
|
|||
|
/**
|
|||
|
* UKeyAlreadyBoundWarning
|
|||
|
* Press any key screen with text blocks for warning users when a key is already bound
|
|||
|
*/
|
|||
|
UCLASS(Abstract)
|
|||
|
class GAMESETTINGS_API UKeyAlreadyBoundWarning : public UGameSettingPressAnyKey
|
|||
|
{
|
|||
|
GENERATED_BODY()
|
|||
|
|
|||
|
public:
|
|||
|
void SetWarningText(const FText& InText);
|
|||
|
|
|||
|
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;
|
|||
|
};
|