This commit is contained in:
John
2026-03-11 11:25:15 +05:30
parent bcd6f827d5
commit 0327abb1a0
77 changed files with 7689 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
// Copyright Epic Games, Inc. All Rights Reserved.
#include "ShooterBulletCounterUI.h"

View File

@@ -0,0 +1,26 @@
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "ShooterBulletCounterUI.generated.h"
/**
* Simple bullet counter UI widget for a first person shooter game
*/
UCLASS(abstract)
class AUDIOVIDEORECORD_API UShooterBulletCounterUI : public UUserWidget
{
GENERATED_BODY()
public:
/** Allows Blueprint to update sub-widgets with the new bullet count */
UFUNCTION(BlueprintImplementableEvent, Category="Shooter", meta=(DisplayName = "UpdateBulletCounter"))
void BP_UpdateBulletCounter(int32 MagazineSize, int32 BulletCount);
/** Allows Blueprint to update sub-widgets with the new life total and play a damage effect on the HUD */
UFUNCTION(BlueprintImplementableEvent, Category="Shooter", meta=(DisplayName = "Damaged"))
void BP_Damaged(float LifePercent);
};

View File

@@ -0,0 +1,5 @@
// Copyright Epic Games, Inc. All Rights Reserved.
#include "ShooterUI.h"

View File

@@ -0,0 +1,22 @@
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "ShooterUI.generated.h"
/**
* Simple scoreboard UI for a first person shooter game
*/
UCLASS(abstract)
class AUDIOVIDEORECORD_API UShooterUI : public UUserWidget
{
GENERATED_BODY()
public:
/** Allows Blueprint to update score sub-widgets */
UFUNCTION(BlueprintImplementableEvent, Category="Shooter", meta = (DisplayName = "Update Score"))
void BP_UpdateScore(uint8 TeamByte, int32 Score);
};