Space Plunder
Loading...
Searching...
No Matches
InteractionCrosshairWidget.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 "Data/BaseData.h"
9#include "InteractionCrosshairWidget.generated.h"
10
11UCLASS()
12class INTERACTION_API UInteractionCrosshairWidget : public UUserWidget, public IInteractionCrosshair
13{
14 GENERATED_BODY()
15
16public:
17 virtual bool Initialize() override;
18
19 virtual void NativeConstruct() override;
20
21 virtual void SetAiming(const bool bValue) override;
22
23 UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, Category="Interaction")
24 void StartedAiming();
25 UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, Category="Interaction")
26 void StoppedAiming();
27
28
29 virtual void StartFocusOnObject(const FString& ObjectName, const FInteractionData& InteractionData) override;
30 virtual void StartFocusOnCharacter(const FString& CharacterName, const FInteractionData& InteractionData) override;
31 virtual void EndFocus() override;
32
33 UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, Category="Interaction")
34 void OnStartFocusOnObject(const FString& ObjectName, const FInteractionData& InteractionData);
35 UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, Category="Interaction")
36 void OnStartFocusOnCharacter(const FString& CharacterName, const FInteractionData& InteractionData);
37 UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, Category="Interaction")
38 void OnEndFocus();
39
40 // UFUNCTION(BlueprintCallable, Category="Interaction")
41 // void SetInteractionText(const FString& Key = "[E]", const FString& InteractionType = "Open", const FString& Name = "Door") const;
42 // UFUNCTION(BlueprintCallable, Category="Interaction")
43 // void ClearInteractionText() const;
44
45protected:
46
47 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Interaction")
48 class UImage* Crosshair;
49 // UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Interaction")
50 // class UTextBlock* ContextTextBlock;
51
52
53};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition InteractionCrosshair.h:21
Definition Interaction.Build.cs:6
Definition InteractionCrosshairWidget.h:13
Definition BaseData.h:420