Space Plunder
Loading...
Searching...
No Matches
InteractionPromptComponent.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"
7// #include "Components/WidgetComponent.h"
8#include "InteractionPromptComponent.generated.h"
9
10DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnInteractionComplete);
11
12
13UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent))
14class INTERACTION_API UInteractionPromptComponent : public UScreenFacingWidgetComponent
15{
16 GENERATED_BODY()
17
18public:
19 UInteractionPromptComponent();
20
21 UPROPERTY(BlueprintAssignable, Category="Interaction|Button Prompt")
22 FOnInteractionComplete OnInteractionComplete;
23
24 UFUNCTION(BlueprintCallable, Category="Interaction|Button Prompt")
25 void StartButtonProgress(const float Time) const;
26 UFUNCTION(BlueprintCallable, Category="Interaction|Button Prompt")
27 void StopButtonProgress() const;
28 UFUNCTION(BlueprintPure, BlueprintCallable, Category="Interaction|Button Prompt")
29 float GetButtonProgress() const;
30 UFUNCTION(BlueprintPure, BlueprintCallable, Category="Interaction|Button Prompt")
31 bool GetHasProgressBar() const;
32 UFUNCTION(BlueprintCallable, Category="Interaction|Button Prompt")
33 void SetHasProgressBar(const bool bValue);
34
35 UFUNCTION(BlueprintCallable, Category="Interaction|Button Prompt")
36 void SetUnavailable() const;
37 UFUNCTION(BlueprintCallable, Category="Interaction|Button Prompt")
38 void SetAvailable() const;
39
40protected:
41 virtual void BeginPlay() override;
42
43
44 UFUNCTION()
45 void ButtonPressed();
46private:
47 UPROPERTY()
48 class UButtonPromptWidget* ButtonPromptWidget = nullptr;
49
50};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnInteractionComplete)
Definition Interaction.Build.cs:6
User widget representing a button prompt for It provides functionality for displaying a button icon,...
Definition ButtonPromptWidget.h:32