Space Plunder
Loading...
Searching...
No Matches
AchievementWidget.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 "AchievementWidget.generated.h"
8
9class UProgressBar;
13UCLASS()
14class STATSINTEGRATION_API UAchievementWidget : public UUserWidget
15{
16 GENERATED_BODY()
17
18public:
19 explicit UAchievementWidget(const FObjectInitializer& ObjectInitializer);
20
24 UFUNCTION(BlueprintCallable, Category="Achievements")
25 void CreateAchievement(const FString& APIName);
26
27 UFUNCTION(BlueprintCallable, Category="Achievements")
28 void SetAchievementProgress(const int32 Value);
29 UFUNCTION(BlueprintCallable, Category="Achievements")
30 FString GetStatName() const;
31 UFUNCTION(BlueprintCallable, Category="Achievements")
32 int32 GetStatMax() const;
33 UFUNCTION(BlueprintCallable, Category="Achievements")
34 float GetAchievementProgress(const int32 Value) const;
35
36protected:
37 virtual bool Initialize() override;
38
39 UFUNCTION(BlueprintImplementableEvent, Category="Achievements")
40 void OnAchievementDataSet(const bool bGetProgress);
41
42 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Achievements|General")
43 FString AchievementAPIName = "";
44 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|General")
45 FString AchievementName = "";
46 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|General")
47 FString AchievementDescription = "";
48 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|General")
49 bool bHidden = false;
50 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|General")
51 bool bUnlocked = false;
52 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Achievements|General")
53 FDateTime UnlockedTime;
54 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Achievements|General")
55 FString ProgressKey = "PROGRESS_";
56 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Achievements|General")
57 FString ValueKey = "_";
58
59
60
61 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
62 class UTextBlock* NameTextBlock = nullptr;
63 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
64 class UTextBlock* DateTextBlock = nullptr;
65 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
66 class UTextBlock* DescriptionTextBlock = nullptr;
67 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
68 class UImage* AchievementImage = nullptr;
69 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
70 class UTextBlock* PercentTextBlock = nullptr;
71 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
72 class UTextBlock* GlobalPercentTextBlock = nullptr;
73 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Achievements|Widgets")
74 UProgressBar* ProgressBar = nullptr;
75
76};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition AchievementWidget.h:15