Space Plunder
Loading...
Searching...
No Matches
PingWidget.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 "Blueprint/UserWidget.h"
7#include "PingWidget.generated.h"
8
9UCLASS()
10class MENUSYSTEM_API UPingWidget : public UUserWidget
11{
12 GENERATED_BODY()
13
14public:
15
16 virtual bool Initialize() override;
17
18 UFUNCTION(BlueprintCallable, Category="Player State")
19 void UpdatePing(float Ping);
20protected:
21 // //- Not the owner Player, the player it's connected to //
22 // UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Player State")
23 // APlayerState* AssociatedPlayerState;
24 // UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Player State")
25 // float PingUpdateFrequency = 2.0f;
26
27 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System")
28 class UTextBlock* PingTextBlock;
29
30private:
31 // FTimerHandle PingUpdateTimerHandle;
32};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition PingWidget.h:11