mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-01 12:18:15 +00:00
Cog Sample: Make Area a component instead of an actor Cog Sample: Add Basic actor for Projectiles, Areas, etc... Cog Sample: Start to add Projectile Cog Sample: Start to add SpawnPrediction
33 lines
912 B
C++
33 lines
912 B
C++
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "CogWindow.h"
|
|
#include "CogEngineWindow_Stats.generated.h"
|
|
|
|
UCLASS()
|
|
class COGENGINE_API UCogEngineWindow_Stats : public UCogWindow
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
static ImVec4 GetFpsColor(float Value, float Good = 50.0f, float Medium = 30.0f);
|
|
|
|
static ImVec4 GetPingColor(float Value, float Good = 100.0f, float Medium = 200.0f);
|
|
|
|
static ImVec4 GetPacketLossColor(float Value, float Good = 10.0f, float Medium = 20.0f);
|
|
|
|
protected:
|
|
|
|
virtual void RenderHelp() override;
|
|
|
|
virtual void RenderContent() override;
|
|
|
|
virtual float GetMainMenuWidgetWidth(int32 SubWidgetIndex, float MaxWidth) override;
|
|
|
|
virtual void RenderMainMenuWidget(int32 SubWidgetIndex, float Width) override;
|
|
void RenderMainMenuWidgetPacketLoss(float Width);
|
|
void RenderMainMenuWidgetPing(float Width);
|
|
void RenderMainMenuWidgetFramerate(float Width);
|
|
};
|