2022-04-29 21:38:34 +00:00
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
#include "Blueprint/UserWidget.h"
|
|
|
|
#include "OverheadWidget.generated.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
UCLASS()
|
|
|
|
class BLASTER_API UOverheadWidget : public UUserWidget
|
|
|
|
{
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
UPROPERTY(meta = (BindWidget))
|
|
|
|
class UTextBlock* DisplayText;
|
|
|
|
|
|
|
|
void SetDisplayText(FString TextToDisplay);
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void ShowPlayerNetRole(APawn* InPawn);
|
2022-04-29 21:47:41 +00:00
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
|
|
void ShowPlayerName(APawn* InPawn);
|
2022-04-29 21:38:34 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
virtual void OnLevelRemovedFromWorld(ULevel* InLevel, UWorld* InWorld) override;
|
|
|
|
};
|