Space Plunder
Loading...
Searching...
No Matches
LeaderboardWidget.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 "Blueprint/UserWidget.h"
9#include "LeaderboardWidget.generated.h"
10
11class UButton;
15UCLASS()
16class STATSINTEGRATION_API ULeaderboardWidget : public UUserWidget
17{
18 GENERATED_BODY()
19public:
20 explicit ULeaderboardWidget(const FObjectInitializer& ObjectInitializer);
21
22 UFUNCTION(BlueprintCallable, Category="Leaderboard")
23 void CreateLeaderboard(const FLeaderboardData& Data);
24 UFUNCTION(BlueprintCallable, Category="Leaderboard")
25 void SetLeaderboardData(const TArray<FSteamLeaderboardEntry>& LeaderboardEntries);
26
27 UFUNCTION(BlueprintCallable, Category="Leaderboard")
28 bool GetCreateIfNotFound() const;
29 UFUNCTION(BlueprintCallable, Category="Leaderboard")
30 FString GetLeaderboardName() const;
31
32
33protected:
34 virtual bool Initialize() override;
35
36 UFUNCTION(BlueprintImplementableEvent, Category="Leaderboard")
37 void OnLeaderboardDataSet();
38
39 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Leaderboard|General")
41
42
43 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Leaderboard|Widgets")
44 class UTextBlock* NameTextBlock = nullptr;
45 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Leaderboard|Widgets")
46 UButton* SortButton = nullptr;
47
48 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta = (BindWidget), Category="Leaderboard|Widgets")
49 class UPanelWidget* LeaderboardPanel = nullptr;
50
51private:
52 UPROPERTY(EditDefaultsOnly, Category="Leaderboard|Widgets")
53 TSubclassOf<UUserWidget> LeaderboardEntryClass = nullptr;
54};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition LeaderboardData.h:119
Definition LeaderboardWidget.h:17
Definition LeaderboardData.h:91