Space Plunder
Loading...
Searching...
No Matches
WaypointWidget.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Blueprint/UserWidget.h"
7#include "WaypointWidget.generated.h"
8
12UCLASS()
13class BASEHELPERS_API UWaypointWidget : public UUserWidget
14{
15 GENERATED_BODY()
16
17public:
18
19 virtual void ActorConstruct();
20 UFUNCTION(BlueprintCallable, Category="Interaction")
21 void SetWaypointActor(AActor* Actor) {WaypointActor = Actor;};
22
23 UFUNCTION(BlueprintCallable, Category="Interaction")
24 float GetDistance(const bool bMeters = true) const;
25protected:
26
27 virtual bool Initialize() override;
28 virtual void NativeConstruct() override;
29 virtual void NativePreConstruct() override;
30
31
32 UFUNCTION(BlueprintCallable, Category="Interaction")
33 void SetDistanceText() const;
34
35 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Waypoint")
36 class UImage* WaypointIcon;
37 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Waypoint")
38 class UTextBlock* DistanceTextBlock;
39 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Waypoint")
40 class UTextBlock* ContextTextBlock;
41
42 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Waypoint")
43 bool bUseDistance = true;
44 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Waypoint",meta=(EditCondition=bUseDistance))
45 float DistanceUpdateSpeed = 0.5f;
47 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Waypoint",meta=(EditCondition=bUseDistance))
48 float HideDistance = 10.0f;
49 // UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Waypoint",meta=(EditCondition=bUseDistance))
50 // bool bHideDistanceMeters = true;
51
52
53 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Waypoint")
54 bool bDebuggingMode = false;
55
57 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Waypoint")
58 AActor* WaypointActor;
60 // UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Waypoint")
61 // AActor* OwnerActor;
62
63private:
64
65 FTimerHandle DistanceTimerHandle;
66 FNumberFormattingOptions NumberFormatOptions;
67};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition Interaction.Build.cs:6
Definition WaypointWidget.h:14