2022-05-23 18:41:30 +00:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CommonUserWidget.h"
|
|
|
|
#include "Performance/LyraPerformanceStatTypes.h"
|
2022-09-13 07:18:28 +00:00
|
|
|
#include "UObject/UObjectGlobals.h"
|
2022-05-23 18:41:30 +00:00
|
|
|
|
|
|
|
#include "LyraPerfStatContainerBase.generated.h"
|
|
|
|
|
2022-09-13 07:18:28 +00:00
|
|
|
class UObject;
|
|
|
|
struct FFrame;
|
|
|
|
|
2022-05-23 18:41:30 +00:00
|
|
|
/**
|
|
|
|
* ULyraPerfStatsContainerBase
|
|
|
|
*
|
|
|
|
* Panel that contains a set of ULyraPerfStatWidgetBase widgets and manages
|
|
|
|
* their visibility based on user settings.
|
|
|
|
*/
|
|
|
|
UCLASS(Abstract)
|
|
|
|
class ULyraPerfStatContainerBase : public UCommonUserWidget
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ULyraPerfStatContainerBase(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
|
|
|
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
//~UUserWidget interface
|
|
|
|
virtual void NativeConstruct() override;
|
|
|
|
virtual void NativeDestruct() override;
|
|
|
|
//~End of UUserWidget interface
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void UpdateVisibilityOfChildren();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// Are we showing text or graph stats?
|
|
|
|
UPROPERTY(EditAnywhere, Category=Display)
|
|
|
|
ELyraStatDisplayMode StatDisplayModeFilter = ELyraStatDisplayMode::TextAndGraph;
|
|
|
|
};
|