#include <StatWidget.h>
◆ UStatWidget()
| UStatWidget::UStatWidget |
( |
const FObjectInitializer & | ObjectInitializer | ) |
|
|
explicit |
9 :Super(ObjectInitializer)
10{
11
12
13}
◆ CreateStat()
| void UStatWidget::CreateStat |
( |
const FSteamStat & | Data, |
|
|
const FString & | Unit = "" ) |
- Parameters
-
| Data | Pass in the Name, Friendly name and Type to get the data |
| Unit | is for stats with measurements, ie. 20m Travelled |
16{
21}
FString FriendlyStatName
Definition SteamRequests.h:34
◆ GetStatData()
◆ Initialize()
| bool UStatWidget::Initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
24{
25 const bool bSuccess = Super::Initialize();
28 if(!bSuccess) return false;
29 return true;
30}
◆ OnStatDataSet()
| void UStatWidget::OnStatDataSet |
( |
| ) |
|
|
protected |
◆ SetAverageStatData()
| void UStatWidget::SetAverageStatData |
( |
const float | Value | ) |
|
|
protected |
49{
50 const FText FormattedStat = FText::Format(NSLOCTEXT("","","{0}{1}"),
51 FText::AsNumber(Value),
54}
◆ SetFloatStatData()
| void UStatWidget::SetFloatStatData |
( |
const float | Value | ) |
|
|
protected |
41{
42 const FText FormattedStat = FText::Format(NSLOCTEXT("","","{0}{1}"),
43 FText::AsNumber(Value),
46}
◆ SetIntStatData()
| void UStatWidget::SetIntStatData |
( |
const int32 | Value | ) |
|
|
protected |
33{
34 const FText FormattedStat = FText::Format(NSLOCTEXT("","","{0}{1}"),
35 FText::AsNumber(Value),
38}
◆ NameTextBlock
| class UTextBlock* UStatWidget::NameTextBlock = nullptr |
|
protected |
◆ StatData
◆ StatTextBlock
| class UTextBlock* UStatWidget::StatTextBlock = nullptr |
|
protected |
◆ StatUnit
| FString UStatWidget::StatUnit = "" |
|
protected |
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/SteamStats/Source/StatsIntegration/Public/Widgets/StatWidget.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/SteamStats/Source/StatsIntegration/Private/Widgets/StatWidget.cpp