Space Plunder
Loading...
Searching...
No Matches
KillFeedMessageWidget.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 "KillFeedMessageWidget.generated.h"
8
9UCLASS()
10class MENUSYSTEM_API UKillFeedMessageWidget : public UUserWidget
11{
12 GENERATED_BODY()
13
14
15public:
16
17 virtual bool Initialize() override;
18 virtual void NativeConstruct() override;
19
20 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Menu System|Kill Feed")
21 float FadeOutTime = 3.0f;
22
23
24 UFUNCTION(BlueprintCallable, Category="Menu System|Multiplayer")
25 void SetDeathIcon(UTexture2D* Icon);
26 UFUNCTION(BlueprintCallable, Category="Menu System|Multiplayer")
27 void SetNames(FString AttackerName, FString VictimName);
28
29 UFUNCTION(BlueprintCallable, Category="Menu System|Multiplayer")
30 void SetTeamColors(int32 AttackerTeamID, int32 VictimTeamID);
31
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Menu System|Kill Feed")
33 int32 MaxNameLength = 18;
34protected:
35 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Menu System|Kill Feed")
36 class UMaterialInterface* DeathIconMaterial;
37 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Menu System|Kill Feed")
38 class UMaterialInterface* TeamMaterial;
39 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Menu System|Kill Feed")
40 FName TeamParamName = "Color";
41
42 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System|Kill Feed")
43 class UTextBlock* AttackerNameText;
44 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System|Kill Feed")
45 class UTextBlock* VictimNameText;
46 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System|Kill Feed")
47 class UImage* AttackerGlowImage;
48 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System|Kill Feed")
49 class UImage* VictimGlowImage;
50
51 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(BindWidget), Category="Menu System|Kill Feed")
52 class UImage* DeathIcon;
53
54 UFUNCTION(BlueprintCallable, Category="Menu System|Multiplayer")
55 void FadeOut();
56 UFUNCTION(BlueprintImplementableEvent, Category="Menu System|Multiplayer")
57 void OnFadeOut();
58
59private:
60
61 FTimerHandle FadeOutTimerHandle;
62
63};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition KillFeedMessageWidget.h:11