32 UFUNCTION(BlueprintCallable)
35 UFUNCTION(BlueprintCallable)
36 const FString& GetWidgetInfoName() {
return WidgetInfoName; }
38 void SetCustomGuid(
const FGuid& NewGuid) { WidgetGuid = NewGuid; }
39 const FGuid& GetGuid()
const {
return WidgetGuid; }
45 UFUNCTION(Category =
"Buttons")
53 void ProcessSquaredDistanceToPlayer(const
float SquaredDistanceToPlayerCm, const
float DeltaSec);
58 virtual
void PlayerWentAwayHandler(const
float SquaredDistanceToPlayerCm) { PlayerWentAway(); }
63 UFUNCTION(BlueprintNativeEvent, meta=(
DisplayName=
"PlayerWentAwayHandler"))
64 void PlayerWentAway();
66#pragma region Variables
73 FExitMenuEventDelegate OnExitMenuEventDelegate;
74 FOnPlayerWentAway OnPlayerWentAway;
77 UPROPERTY(BlueprintReadWrite)
78 FText Heading = FText::FromString(TEXT(
"Heading"));
79 UPROPERTY(BlueprintReadWrite)
80 float MaxDistanceCalculationDelaySec = 5.0f;
83 FString WidgetInfoName;
87 bool bIsClosingByDistance =
false;
88 int32 MaxSquaredClosingDistance = -1;
89 float DistanceCalculationDelay = 0.0f;
90#pragma endregion Variables