Space Plunder
Loading...
Searching...
No Matches
StatWidget.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 "SteamRequests.h"
7#include "Blueprint/UserWidget.h"
8#include "StatWidget.generated.h"
9
13UCLASS()
14class STATSINTEGRATION_API UStatWidget : public UUserWidget
15{
16 GENERATED_BODY()
17
18public:
19 explicit UStatWidget(const FObjectInitializer& ObjectInitializer);
20
25 UFUNCTION(BlueprintCallable, Category="Stats")
26 void CreateStat(const FSteamStat& Data, const FString& Unit = "");
27 UFUNCTION(BlueprintCallable, Category="Stats")
28 FSteamStat GetStatData() const {return StatData;};
29protected:
30 virtual bool Initialize() override;
31
32 UFUNCTION(BlueprintImplementableEvent, Category="Stats")
33 void OnStatDataSet();
34
35 UFUNCTION(BlueprintCallable, Category="Stats")
36 void SetIntStatData(const int32 Value);
37 UFUNCTION(BlueprintCallable, Category="Stats")
38 void SetFloatStatData(const float Value);
39 UFUNCTION(BlueprintCallable, Category="Stats")
40 void SetAverageStatData(const float Value);
41
42 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Stat|General")
43 FSteamStat StatData;
44 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Stat|General")
45 FString StatUnit = "";
46
47 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Stat|Widgets")
48 class UTextBlock* NameTextBlock = nullptr;
49 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Stat|Widgets")
50 class UTextBlock* StatTextBlock = nullptr;
51
52
53};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition StatWidget.h:15
Definition SteamRequests.h:30